]> granicus.if.org Git - php/commitdiff
Calling crypt() with a salt of *0 should always return *1.
authorAdam Harvey <aharvey@php.net>
Thu, 8 Jan 2015 19:13:23 +0000 (19:13 +0000)
committerAdam Harvey <aharvey@php.net>
Thu, 8 Jan 2015 19:13:23 +0000 (19:13 +0000)
ext/standard/tests/strings/crypt_des_error.phpt [new file with mode: 0644]

diff --git a/ext/standard/tests/strings/crypt_des_error.phpt b/ext/standard/tests/strings/crypt_des_error.phpt
new file mode 100644 (file)
index 0000000..f480efc
--- /dev/null
@@ -0,0 +1,16 @@
+--TEST--
+crypt(): *0 should return *1
+--SKIPIF--
+<?php
+if (!function_exists('crypt')) {
+       die("SKIP crypt() is not available");
+}
+?>
+--FILE--
+<?php
+
+var_dump(crypt('foo', '*0'));
+
+?>
+--EXPECT--
+string(2) "*1"