note 25718 added to function.stristr

From: Date: Thu, 03 Oct 2002 02:36:01 +0000
Subject: note 25718 added to function.stristr
Groups: php.notes 
Request: Send a blank email to php-notes+get-37592@lists.php.net to get a copy of this message
There was a change in PHP 4.2.3 that can cause a warning message to be generated when using stristr(), even though no message was generated in older versions of PHP. The following will generate a warning message in 4.0.6 and 4.2.3: stristr("haystack", ""); OR $needle = ""; stristr("haystack", $needle); This will _not_ generate an "Empty Delimiter" warning message in 4.0.6, but _will_ in 4.2.3: unset($needle); stristr("haystack", $needle); Here's a URL that documents what was changed: http://groups.google.ca/groups?selm=cvshholzgra1031224321%40cvsserver -- http://www.php.net/manual/en/function.stristr.php http://master.php.net/manage/user-notes.php?action=edit+25718 http://master.php.net/manage/user-notes.php?action=delete+25718 http://master.php.net/manage/user-notes.php?action=reject+25718

« previous php.notes (#37592) next »