From:             php at frusti dot com
Operating system: Windows 2000
PHP version:      4.3.0
PHP Bug Type:     PCRE related
Bug description:  preg_match have BUG ???

!!! I have a urgence problem !!!

Please show this statements:

$sql = "UPDATE TFrusti SET entity='FAN', SYSFLD001='Test with Clob-Data
Entity just for test!' WHERE SYSPID = 411";
preg_match("/^UPDATE\s(\w+)\sSET\s(.*?)([WHERE.*|$])/s",$sql,$matches);

my problem now is, if in the subject (here the value of the $sql) is the
word "Entity" this expression deliver just a truncated match, but if the
word "entity" ist in lower-case inside the $sql-Variable the expression
deliver the correct matches!!!!

Results:
$matches[2] with lower-case "entity" shows following value: "entity='FAN',
SYSFLD001='Test with Clob-Data Entity just for test!'"

$matches[2] with upper-case "Entity" shows this values:
entity='FAN', SYSFLD001='Test with Clob-Data"

Have anyone a answer or know this problems?

Thanks and best regards,
Frast Andreas

-- 
Edit bug report at http://bugs.php.net/?id=22320&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22320&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22320&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22320&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22320&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22320&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22320&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22320&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22320&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22320&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22320&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22320&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22320&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22320&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22320&r=gnused

Reply via email to