|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-07-06 09:12 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 11:00:02 2025 UTC |
Description: ------------ I think this should not be a parse error, this should work. It seems the concatenation of LOGIK_CONFIG_FILE to the string: "<span class=\"error\"><strong></strong> couldn't be opened for reading.<br />Check file permissions.</span>" is causing the parse error. Reproduce code: --------------- define( "LOGIK_DIRECTORY", $_SERVER['DOCUMENT_ROOT'] . "/" ); define( "LOGIK_CONFIG_DIRECTORY", "config/" ); define( "LOGIK_CONFIG_FILE", LOGIK_DIRECTORY . LOGIK_CONFIG_DIRECTORY . "logikconfig.xml" ); define( "LOGIK_CONFIG_FILE_FOPEN_ERROR", 3 ); static $errors = array( LOGIK_CONFIG_FILE_FOPEN_ERROR => "<span class=\"error\"><strong>" . LOGIK_CONFIG_FILE . "</strong> couldn't be opened for reading.<br />Check file permissions.</span>" ); The above array() creation syntax is what throws the parse error. Expected result: ---------------- This shouldn't be a parse error because it is valid string concatenation syntax. Actual result: -------------- PHP reprts the following error: Parse error: parse error, unexpected '.', expecting ')'