|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-05-31 15:00 UTC] mike@php.net
-Status: Open
+Status: Feedback
[2010-05-31 15:00 UTC] mike@php.net
[2010-08-09 01:11 UTC] felipe@php.net
-Status: Feedback
+Status: Closed
-Assigned To:
+Assigned To: felipe
[2010-08-09 01:11 UTC] felipe@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 12 19:00:01 2025 UTC |
Description: ------------ numeric string begining by a zero are casted to int. for example "0123456" will be output "123456" in the stream. Test script: --------------- $fp = fopen("php://memory", 'wrb+'); fputcsv($fp, array('0123456'), ';'); rewind($fp); $stream = stream_get_contents($fp); fclose($fp); echo $stream; Expected result: ---------------- Output : "0123456;\n" Actual result: -------------- "123456;\n"