addcslashes seems to use the octal form to escape nils
authorMichael Wallner <mike@php.net>
Wed, 9 Jul 2014 18:19:06 +0000 (20:19 +0200)
committerMichael Wallner <mike@php.net>
Wed, 9 Jul 2014 18:19:06 +0000 (20:19 +0200)
tests/params006.phpt

index 5c6455c7d20ca9dd840022227741ecf496fa8f1f..f0f05658d064469eff1288682a9f68fefae14589 100644 (file)
@@ -19,7 +19,7 @@ $c = array(
        )
 );
 var_dump($c === $p->params);
-var_dump("form-data;name=upload;filename=\"trick\\\"\\0\\\"ed\"" === (string) $p);
+var_dump("form-data;name=upload;filename=\"trick\\\"\\000\\\"ed\"" === (string) $p);
 ?>
 DONE
 --EXPECT--