ID: 46428
Updated by: [EMAIL PROTECTED]
Reported By: jaume dot bosch at atrapalo dot com
-Status: Open
+Status: Bogus
Bug Type: Scripting Engine problem
Operating System: FreeBSD
PHP Version: 5.2.6
New Comment:
See: $foo=substr($foo(0 <--------- ,strlen($foo)-2));
Previous Comments:
------------------------------------------------------------------------
[2008-10-30 11:08:17] jaume dot bosch at atrapalo dot com
Description:
------------
In the code below, you can see a string called 'foo', if you try to
make a strstr, strpos, ereg, ..., to this string you get this error:
It seems that a string ending with '==' it's understand as a function
call.
Reproduce code:
---------------
<?php
$foo='asdfdgfsg==';
if (strstr($foo,'==')) $foo=substr($foo(0,strlen($foo)-2));
echo $foo;
?>
Expected result:
----------------
asdfdgfsg
Actual result:
--------------
PHP Fatal error: Call to undefined function asdfdgfsg==() in
/usr/home/myuser/test.php on line 3
PHP Stack trace:
PHP 1. {main}() /usr/home/myuser/test.php:0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46428&edit=1