#44010 [Com]: Function: strstr() and stristr()

From: Date: Fri, 01 Feb 2008 08:23:18 +0000
Subject: #44010 [Com]: Function: strstr() and stristr()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-121853@lists.php.net to get a copy of this message
ID: 44010 Comment by: rabbi at naglfar dot hu Reported By: diemuzi at gmail dot com Status: Open Bug Type: Strings related Operating System: Archlinux PHP Version: 5.2.5 New Comment: Or it's will be added in the 6.0.0 version... Previous Comments: ------------------------------------------------------------------------ [2008-02-01 01:52:15] diemuzi at gmail dot com Description: ------------ Using these two functions strstr() and stristr(). The bug occurs only while using "true" when cutting characters from a string to return the value before the cut. Reproduce code: --------------- $email = 'name@example.com'; $domain = strstr($email, '@', true); echo $domain; Expected result: ---------------- name Actual result: -------------- Warning: Wrong parameter count for strstr() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44010&edit=1

« previous php.bugs (#121853) next »