PHP 4.0 Bug #5913: preg_match_all makes script generate no output
| From: | verx at iq dot pl | Date: | Wed, 02 Aug 2000 01:25:42 +0000 |
| Subject: | PHP 4.0 Bug #5913: preg_match_all makes script generate no output | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-27376@lists.php.net to get a copy of this message | ||
From: verx@iq.pl
Operating system: Linux 2.2
PHP version: 4.0 Latest CVS (02/08/2000)
PHP Bug Type: Scripting Engine problem
Bug description: preg_match_all makes script generate no output
//script is using mysql to connect to database
// $match doesn't matter - tried different patterns
$match = '/a/';
//if the following line is disabled everything goes as usual
//also the third element ($bout) is not the problem - tried
//without it - script won't run at all (no output - no
//errors)
preg_match_all($match, $body, $bout);
it seems like it dies after the first preg_match_all.
$body is fetched via mysql_fetch_array - it seems like preg_match_all doesn't like data from
sql - if i pass a string (in the same script) - everything goes well...
strange it is :)