Bug #3806: PCRE not working as expected

From: Date: Sat, 11 Mar 2000 05:30:07 +0000
Subject: Bug #3806: PCRE not working as expected
Groups: php.dev 
Request: Send a blank email to php-dev+get-16675@lists.php.net to get a copy of this message
From: chrisbolt@home.com Operating system: Linux 2.2.13 PHP version: 3.0.15 PHP Bug Type: Misbehaving function Bug description: PCRE not working as expected First, my perl code: #!/usr/bin/perl $template = "\$include blah"; if ($template =~ /\$include/i) { print "matched"; } The above returns "matched" as expected. <? $template = "\$include blah"; if (preg_match("/\$include/i", $template)) { print "matched"; } ?> The corresponding PHP code does not. Tested on PHP 3.0.15 and 4.0 b4 pl1

« previous php.dev (#16675) next »