Notes |
|
(0002828)
|
etzel
|
03-06-08 00:12
|
|
|
|
(0002829)
|
pablorg
|
03-06-08 06:12
|
|
Agreed. PHP doesnt respect the docs. I'd like to close the bug, but Mantis doesnt give me the option. |
|
|
(0002830)
|
nam
|
03-06-08 06:42
|
|
pablorg, you have a good point. In the PHP docs, they say that strpos may or may not return FALSE when the needle is not found (though I am not sure if we want to track down all the cases where PHP is not returning FALSE).
But in your test case, PHP's strpos does indeed return the type FALSE. The problem is that Quercus is evaulating 'FALSE > -1' as being true. |
|
|
(0002831)
|
etzel
|
03-06-08 08:30
|
|
|
|
(0002832)
|
nam
|
03-06-08 09:14
|
|
Thanks etzel for the heads-up. At Caucho, we cannot look at the PHP source for copyright reasons. Our only references are PHP's behavior and the docs. |
|
|
(0002834)
|
nam
|
03-06-08 16:40
|
|
Fixed 'FALSE > -1':
php/035p
php/035q |
|