|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19929 var_export fails to escape quotes in key
Submitted: 2002-10-16 04:31 UTC Modified: 2002-10-16 04:43 UTC
From: chuck at visc dot us Assigned:
Status: Closed Package: Output Control
PHP Version: 4.2.1 OS: FreeBSD
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: chuck at visc dot us
New email:
PHP Version: OS:


 [2002-10-16 04:31 UTC] chuck at visc dot us
When using var_export($arr,1) apostrophes in the key are not escaped. The generated php code thus generates a syntax error.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-16 04:43 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Dec 05 05:03:37 2021 UTC