mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
5a14715596
- Also fixed var_export() in unicode mode, as the function would actually generate non-parsable strings which defeats the purpose of var_export().
10 lines
181 B
PHP
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'
|