#37662 [Fbk->Bgs]: "Call to undefined function ()" when with strpos("\r")

From: Date: Thu, 01 Jun 2006 08:54:06 +0000
Subject: #37662 [Fbk->Bgs]: "Call to undefined function ()" when with strpos("\r")
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-97901@lists.php.net to get a copy of this message
ID: 37662 Updated by: derick@php.net Reported By: mg at evolution515 dot net -Status: Feedback +Status: Bogus Bug Type: Unknown/Other Function Operating System: Debian/Sarge PHP Version: 5.1.4 New Comment: Bug update collision, setting back to bogus. Previous Comments: ------------------------------------------------------------------------ [2006-06-01 08:47:33] derick@php.net Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2006-06-01 08:42:38] tony2001@php.net # php /tmp/2.php strpos() has been successfuly run! I'm sure you don't need a class to check if strpos() finds '\r' or '\n' in strings. ------------------------------------------------------------------------ [2006-06-01 08:38:52] mg at memedia dot de Have you replaced... $lfPos = strpos($this->magicBuffer, "\n"); ....with... $lfPos = strpos($this->magicBuffer, "\r"); ...? ------------------------------------------------------------------------ [2006-06-01 08:37:36] mg at evolution515 dot net Ok, and strpos() doesn't find any \n on the search string although there are surely \n in there. I've just seen that was another bug. So this bug is surely realted, but please fix that "undefined function ()" in "if ($a || $b)" at last!! ------------------------------------------------------------------------ [2006-06-01 08:36:23] tony2001@php.net Works just fine here. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/37662 -- Edit this bug report at http://bugs.php.net/?id=37662&edit=1

« previous php.bugs (#97901) next »