|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2015-03-16 07:41 UTC] demon@php.net
-Status: Open
+Status: Not a bug
[2015-03-16 07:41 UTC] demon@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 06 04:00:01 2025 UTC |
Description: ------------ With an array that contains an array, the var_export adds an extra space at end of line => It forces post treatment to suppress those extra spaces, before saving output to a file As spaces at end of line is not a recommended practice... Test script: --------------- <?php $test = array('string' =>array('foo')); var_export($test); ?> Expected result: ---------------- array ( 'string' =>// <= the line should end with '=>', and not with a space e.g '=> ' array ( 0 => 'foo', ), ) Actual result: -------------- array ( 'string' => // <= there's a space after the '=>' symbol array ( 0 => 'foo', ), )