PHP 4.0 Bug #5193: functions strstr and stristr always return 0 or false

From: Date: Thu, 22 Jun 2000 19:21:54 +0000
Subject: PHP 4.0 Bug #5193: functions strstr and stristr always return 0 or false
Groups: php.dev 
Request: Send a blank email to php-dev+get-22084@lists.php.net to get a copy of this message
From: spence@research.att.com Operating system: Solaris 2.7 PHP version: 4.0 Latest CVS (22/06/2000) PHP Bug Type: Misbehaving function Bug description: functions strstr and stristr always return 0 or false The following snippets of code do not return the rest of the string after the match: printf( "RESULT: %s<br>", strstr( "is", "this is a test" ) ); or printf( "RESULT: %s<br>", stristr( "is", "this is a test" ) ); They both always return 0/false

« previous php.dev (#22084) next »