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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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] [EMAIL PROTECTED]
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