Buggy PHP5.2 is used in XAMPP1.5.5

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Buggy PHP5.2 is used in XAMPP1.5.5

Postby heigazen » 27. November 2006 09:45

I upgraded my XAMPP from 1.5.4a to 1.5.5 and found that PHP5.2 with the following bug was used in XAMPP 1.5.5.

http://bugs.php.net/bug.php?id=39364

[3 Nov 5:38pm UTC] christoph at ziegenberg dot de

Description:
------------
as described in the more important bug #39361 i compared strstr() and
mb_strstr().

mb_strstr() produces the following error when using an empty haystack:

Warning: mb_strstr() [function.mb-strstr]:
Empty haystack in X on line Y

but strstr() doesn't.

Reproduce code:
---------------
<?php
strstr('', ',');
mb_strstr('', ',');
?>

Expected result:
----------------
no error message - because haystack does not contain needle, so the
function should return false, as described in the documentation. the
different behavior produces a lot of errors when using function
overloading (although i know using it is not a good idea... ;).

Actual result:
--------------
Warning: mb_strstr() [function.mb-strstr]: Empty haystack in X on line
Y

[3 Nov 7:56pm UTC] iliaa@php.net

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.

Thank you for your interest in PHP.

dupe of 39361

[3 Nov 8:19pm UTC] christoph at ziegenberg dot de

No, that is not the same bug!

Bug #39361 is about that the ini settings for function overloading are
"cached" and still active when changing the directory.

Bug #39364 is about the different behavior of mb_strstr() and strstr().

I found bug number one when checking the second one, but that not the
same bug... so which one did you fix?

[3 Nov 8:38pm UTC] iliaa@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

Thank you for the report, and for helping us make PHP better.

According to this, fixed version has already been available.
Can I use the fixed version of PHP5.2 instead of the currently included one?
heigazen
 
Posts: 8
Joined: 08. November 2006 05:18
Location: Japan

Postby Kristian Marcroft » 27. November 2006 10:49

Hi,

thank you for your inquiry.
Though this bug was not fixed in 5.2 but in CVS.
We do not use CVS versions of PHP in our releases.

However you may if you wish. For this you can download the CVS version of PHP5
and compile it yourself. The required configure scripts are available at /opt/lampp/share/lampp/configures.tar.gz.

Good Luck!
Regards,
Kristian Marcroft
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf

Fixed in PHP-5.2.1

Postby heigazen » 09. February 2007 08:45

This bug was fixed in PHP-5.2.1.
I wish this version is included in the next XAMPP release :D
heigazen
 
Posts: 8
Joined: 08. November 2006 05:18
Location: Japan

Re: Fixed in PHP-5.2.1

Postby Kristian Marcroft » 09. February 2007 08:57

heigazen wrote:This bug was fixed in PHP-5.2.1.
I wish this version is included in the next XAMPP release :D


Hi heigazen,

it will. For sure :)

Regards,
Kristian Marcroft
User avatar
Kristian Marcroft
AF Moderator
 
Posts: 2962
Joined: 03. January 2003 12:08
Location: Diedorf


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 12 guests