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 5c6455c..f0f0565 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--