#43882 [Asn->Opn]: Include_path escape sequences problem

From: Date: Mon, 04 Feb 2008 20:04:38 +0000
Subject: #43882 [Asn->Opn]: Include_path escape sequences problem
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-501@lists.php.net to get a copy of this message
ID: 43882 Updated by: jani@php.net Reported By: dutow at nwi dot hu -Status: Assigned +Status: Open -Bug Type: *General Issues +Bug Type: Documentation problem Operating System: Windows XP SP2 PHP Version: 5.3CVS-2008-01-17 (snap) Assigned To: jani New Comment: This needs to be documented. From PHP 5.3 and above you should either use single quotes or \\ to get same effect. This is required for allowing to use \" and some cases \n \r \t in quoted strings in php.ini. This will expand to whatever FOO is set (either in environment or before in the php.ini file): foobar = "Some text.\n\t\"${FOO}\" is set in env or in this ini file before this line." This will be as is: foobar = 'Some text.\n\t\"${FOO}\" is set in env or in this ini file before this line.' Pretty much like it is with PHP scripts too.. :) Previous Comments: ------------------------------------------------------------------------ [2008-01-18 01:21:56] jani@php.net Unfortunate side-effect of allowing it elsewhere. You can always use single quotes though..iirc. :) I'll see what I can do about it. ------------------------------------------------------------------------ [2008-01-17 19:03:49] dutow at nwi dot hu Description: ------------ PHP escapes escape sequences in include_path. Reproduce code: --------------- include_path = ".;d:\web\php\pear;d:\web\nowww" <?php ini_get('include_path'); ?> Expected result: ---------------- .;d:\web\php\pear;d:\web\nowww Actual result: -------------- .;d:\web\php\pear;d:\web owww ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43882&edit=1

« previous php.doc.bugs (#501) next »