|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-05-01 16:10 UTC] derick@php.net
[2006-07-22 12:33 UTC] sniper@php.net
[2006-10-09 18:09 UTC] iliaa@php.net
[2007-12-09 14:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ var_export() outputs \0 in variables as is, messing browser Reproduce code: --------------- $func = create_function('$a', 'return $a;'); var_export($func); Expected result: ---------------- identical to: $func = create_function('$a', 'return $a;'); $output = addcslashes(var_export($func, true), "\0"); echo $output;