ID: 42272 Updated by: [EMAIL PROTECTED] Reported By: pilots at rambler dot ru -Status: Assigned +Status: Closed Bug Type: Variables related Operating System: WindowsXP PHP Version: 5.2.4RC1 Assigned To: derick New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2007-08-11 15:50:22] pilots at rambler dot ru Description: ------------ var_export() incorrectly escapes char(0) in strings. It returns '\000' in single quotes, therefore then this string can not be imported correctly. Reproduce code: --------------- eval('echo '.var_export("\0",true).';'); Expected result: ---------------- // chr(0) Actual result: -------------- \000 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42272&edit=1