#32312 [Fbk->Opn]: Error in PCRE

From: Date: Sat, 19 Mar 2005 00:24:12 +0000
Subject: #32312 [Fbk->Opn]: Error in PCRE
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-75506@lists.php.net to get a copy of this message
ID: 32312 User updated by: xanthor at xanthor dot tk Reported By: xanthor at xanthor dot tk -Status: Feedback +Status: Open Bug Type: PCRE related -Operating System: GNU/Linux +Operating System: GNU/Linux, Windows™ PHP Version: 4.3.10 New Comment: Yes. Some other tests : Bug verified on another Linux box with PHP 4.3.10, but also on Windows XP with PHP 5.0.0. And the same regular expression in Perl returns true for both strings, as expected. Previous Comments: ------------------------------------------------------------------------ [2005-03-19 00:39:57] sniper@php.net Yes, it makes a difference when I add a regression test to this bug. I need to know the exact correct output. So, it returns int(1) with PHP 4.3.2 ? (only 1 match) ------------------------------------------------------------------------ [2005-03-19 00:32:14] xanthor at xanthor dot tk Well, then it's int(0) instead of false, and int(1) instead of true. Does that really make a difference ? (By the way, I tested on 4 different computers, and the bug is verified) ------------------------------------------------------------------------ [2005-03-19 00:07:33] sniper@php.net No, it doesn't return 'bool(true)' as preg_match() returns an integer. Try with something like 'var_dump(preg_match...' Also RTFM. ------------------------------------------------------------------------ [2005-03-18 22:50:07] xanthor at xanthor dot tk As I just said before, it returns true... ------------------------------------------------------------------------ [2005-03-17 10:02:00] sniper@php.net What DOES it return with PHP 4.3.2 ? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/32312 -- Edit this bug report at http://bugs.php.net/?id=32312&edit=1

« previous php.bugs (#75506) next »