#45994 [Opn]: "\" directive in php.ini, DISABLES ALL non-built-in php extensions

From: Date: Thu, 04 Sep 2008 20:46:42 +0000
Subject: #45994 [Opn]: "\" directive in php.ini, DISABLES ALL non-built-in php extensions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-128689@lists.php.net to get a copy of this message
ID: 45994 Updated by: jani@php.net Reported By: ipseno at yahoo dot com Status: Open Bug Type: *Configuration Issues Operating System: Windows XP SP3 PHP Version: 5.3.0alpha2 New Comment: As mentioned on the internals list, this should cause a syntax error. Much like in PHP code this would not work: <?php $foo = "bar\"; ?> Previous Comments: ------------------------------------------------------------------------ [2008-09-04 16:22:54] johannes@php.net We're talking about ini files here, we always had different rules in ini files than regular code! Not sure if this is caused by Jani's improvements in the parsing or by some re2c work, but it should certainly work as before else many Windows users will have this issue! ------------------------------------------------------------------------ [2008-09-04 14:46:00] ipseno at yahoo dot com Wait, wait... Now I know, why did I posted this question... Now I reverted PHP to version 5.2.6 And there is NO problems with: upload_tmp_dir = "E:\" BUT, when i copy that php.ini file to PHP 5.3 alpha2 THEN upload_tmp_dir = "E:\" causes behavior as explained above. That is a reason why did I cretaed this "bug" report In 5.2.6 "\" doesn't escape, but in 5.3 alpha2 it does! How come?! ------------------------------------------------------------------------ [2008-09-04 14:35:58] ipseno at yahoo dot com Yes, I've found it out too. It escapes string in php.ini. Just 've been too tired I guess... ------------------------------------------------------------------------ [2008-09-04 14:28:13] pajoye@php.net > Actually... "\" at the END of ANY directive in php.ini > breaks configuration under WinXP What do you not understand behind escape sequence? it IS an escape sequence and means that you escape the double quotes and do not close the string. There is no bug and please choose another channel to get support, thanks for your understanding. ------------------------------------------------------------------------ [2008-09-04 14:28:04] tularis@php.net Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php You're escaping your ending quote (\" is an escape sequence for a double-quote character). Compare the same to a php-script which does <?php $foo = "bar\"; [...] What would you expect here? A parse error. What happens when you do the same in php.ini? it breaks Seems pretty obvious to me ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/45994 -- Edit this bug report at http://bugs.php.net/?id=45994&edit=1

« previous php.bugs (#128689) next »