PHP 4.0 Bug #6814 Updated: Error from require_once when path contains a php variable like $DOCUMENT_ROOT

From: Date: Wed, 20 Sep 2000 22:12:24 +0000
Subject: PHP 4.0 Bug #6814 Updated: Error from require_once when path contains a php variable like $DOCUMENT_ROOT
Groups: php.dev 
Request: Send a blank email to php-dev+get-33587@lists.php.net to get a copy of this message
ID: 6814 Updated by: stas Reported By: tep@sportbug.net Status: Closed Bug Type: Filesystem function related Assigned To: Comments: Fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2000-09-20 09:37:04] tep@sportbug.net The following code : <?php $test = ""; require_once($test."test.inc"); ?> where test.inc is just: <?php echo "HERE"; ?> produces this error when run: Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' ..... on line 3 If you removing the $test varible or change the function require_once() to require(), include(), or include_once(), the error goes away. Not sure if this is the intended. Using PHP 4.0.2 (not the latest snap shot) on Red Hat 6.2 with Apache. Tim Pfafman --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=6814

« previous php.dev (#33587) next »