php-src/ext/standard/tests/strings/bug37262.phpt
Derick Rethans 5a14715596 - Fixed Bug #42272 (var_export() incorrectly escapes char(0)).
- Also fixed var_export() in unicode mode, as the function would actually
  generate non-parsable strings which defeats the purpose of var_export().
2007-12-09 16:54:30 +00:00

10 lines
181 B
PHP

--TEST--
Bug #37262 (var_export() does not escape \0 character)
--FILE--
<?php
$func = create_function('$a', 'return $a;');
var_export($func);
?>
--EXPECT--
'' . "\0" . 'lambda_1'