|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-10-30 11:09 UTC] felipe@php.net
[2008-10-30 11:32 UTC] jaume dot bosch at atrapalo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 01 20:00:01 2025 UTC |
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