ID:               43930
 Updated by:       [EMAIL PROTECTED]
 Reported By:      Jille at quis dot cx
-Status:           Open
+Status:           Bogus
 Bug Type:         Scripting Engine problem
 Operating System: FreeBSD 6.2
 PHP Version:      5.2.5
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Don't use parentheses with language constructs that don't need them.
They give a false sense of precedence.

require("foo")."bar" is executed like require "foo"."bar";

Another example: print (2*2)+3; is supposed to print 7 and not 4.


Previous Comments:
------------------------------------------------------------------------

[2008-01-24 20:18:20] Jille at quis dot cx

Description:
------------
Well, as said in the Summary (sorry, couldn't make a normal sentence of
it)

echo "Blah".require("file.php")."\n";
tries to include "file.php\n";

If parentheses are used after a language construct, I`d expect it to
"end reading" the (eg) filename there.

Reproduce code:
---------------
<?PHP
  echo "Blah".require("file.php")."\n";
?>

Expected result:
----------------
like:
<?PHP
  echo "Blah".(require("file.php"))."\n";
?>

include file.php, and don't give a parse error



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=43930&edit=1

Reply via email to