|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-03-11 21:46 UTC] nikic@php.net
[2016-03-11 21:46 UTC] nikic@php.net
-Status: Open
+Status: Closed
[2016-03-12 05:13 UTC] requinix@php.net
-Assigned To:
+Assigned To: requinix
[2016-03-12 05:13 UTC] requinix@php.net
[2016-03-12 05:13 UTC] requinix@php.net
-Assigned To: requinix
+Assigned To: nikic
[2016-03-12 09:59 UTC] nikic@php.net
[2016-07-20 11:33 UTC] davey@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 11:00:02 2025 UTC |
Description: ------------ If the source contains digits starting with 0, php_strip_whitespace() fails to process the source and produces the parser error. <?php echo 0987654321; ?> This source will generate the following error: PHP Parse error: Invalid numeric literal in testfile.php on line 2 Test script: --------------- testfile.php <?php echo 0987654321; ?> test.php: <?php $test = php_strip_whitespace('testfile.php'); ?> Expected result: ---------------- php_strip_whitespace processes the file without any errors. Actual result: -------------- php_strip_whitespace generates PHP Parse error: Invalid numeric literal in testfile.php on line 2