var_export fails to escape quotes
| Bug #25758 | var_export fails to escape quotes | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-10-06 07:15 UTC | Modified: | 2003-10-07 21:15 UTC |
|
||||||
| From: | hiroki at asakawa dot net | Assigned: | ||||||||
| Status: | Closed | Package: | Variables related | |||||||
| PHP Version: | 4.3.3 | OS: | Widows2000 | |||||||
| Private report: | No | CVE-ID: | None | |||||||
[2003-10-06 07:15 UTC] hiroki at asakawa dot net
Description: ------------ Using var_export, single quotes in keys are not be escaped. Reproduce code: --------------- $test = array( "quote'" => array( "quote'" ) ); echo var_export($test,true); Expected result: ---------------- output: array ( 'quote\'' => array ( 0 => 'quote\'', ), ) Actual result: -------------- output: array ( 'quote'' => array ( 0 => 'quote\'', ), )
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2003-10-07 07:26 UTC] hiroki at asakawa dot net
[2003-10-07 21:15 UTC] iliaa@php.net