# PHP 5.2.11 Released!

- Thread: https://externals.io/message/45597
- Original archive: https://news-web.php.net/php.internals/45597
- Started by Ilia Alshanetsky on 2009-09-18T02:25:52+00:00
- Messages: 7
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45597 — Ilia Alshanetsky — 2009-09-18T02:25:52+00:00

URL: https://externals.io/message/45597#45597

The PHP development team would like to announce the immediate  
availability of PHP 5.2.11. This release focuses on improving the  
stability of the PHP 5.2.x branch with over 75 bug fixes, some of  
which are security related. All users of PHP 5.2 are encouraged to  
upgrade to this release.

Security Enhancements and Fixes in PHP 5.2.11:
	Fixed certificate validation inside  
php_openssl_apply_verification_policy. (Ryan Sleevi, Ilia)
	Fixed sanity check for the color index in imagecolortransparent().  
(Pierre)
	Added missing sanity checks around exif processing. (Ilia)
	Fixed bug #44683 (popen crashes when an invalid mode is passed).  
(Pierre)

Key enhancements in PHP 5.2.11 include:
       Fixed regression in cURL extension that prevented flush of data  
to output defined as a file handle.
       A number of fixes for the `FILTER_VALIDATE_EMAIL` validation rule
       Fixed bug #49361 (wordwrap() wraps incorrectly on end of line  
boundaries).
       Fixed bug #48696 (ldap_read() segfaults with invalid parameters)
       Fixed bug #48645 (mb_convert_encoding() doesn't understand  
hexadecimal html-entities).
       Fixed bug #48619 (imap_search ALL segfaults).
       Fixed bug #48400 (imap crashes when closing stream opened with  
OP_PROTOTYPE flag).
       Fixed bug #47351 (Memory leak in DateTime).
       Over 60 other bug fixes.


Ilia Alshanetsky
5.2 Release Master

---

## #45604 — Carsten Wiedmann — 2009-09-19T00:47:43+00:00

URL: https://externals.io/message/45597#45604 · In reply to: #45597

Ilia Alshanetsky schrieb:
> The PHP development team would like to announce the immediate 
> availability of PHP 5.2.11. ... All users of PHP 5.2 are encouraged to
> upgrade to this release.

So that's the next PHP release with a broken IPv6 support (after 5.2.10 and
5.3.0) and so it's not possible to update for some peoples.

| Carsten Wiedmann@CARSTEN-1 D:\
| # cd \PHP\php-5.2.11-win32
|
| Carsten Wiedmann@CARSTEN-1 D:\PHP\php-5.2.11-win32
| # php -n -i | grep "IPv6"
| IPv6 Support => enabled
|
| Carsten Wiedmann@CARSTEN-1 D:\PHP\php-5.2.11-win32
| # php -n -r "var_dump(fopen('http://[::1]', 'r'));"
|
| Warning: fopen(http://[::1]): failed to open stream: operation
|  failed in Command line code on line 1
| bool(false)


In contrast to:
| Carsten Wiedmann@CARSTEN-1 D:\PHP\php-5.2.11-win32
| # cd \PHP\php-5.2.9-2-win32
|
| Carsten Wiedmann@CARSTEN-1 D:\PHP\php-5.2.9-2-win32
| # php -n -i | grep "IPv6"
| IPv6 Support => enabled
|
| Carsten Wiedmann@CARSTEN-1 D:\PHP\php-5.2.9-2-win32
| # php -n -r "var_dump(fopen('http://[::1]', 'r'));"
| resource(7) of type (stream)

(and of course the same problem with fsockopen or stream_socket_client)

Regards,
Carsten

---

## #45605 — Kalle Sommer Nielsen — 2009-09-19T01:13:47+00:00

URL: https://externals.io/message/45597#45605 · In reply to: #45604

2009/9/19 Carsten Wiedmann <carsten_sttgt@gmx.de>:
> So that's the next PHP release with a broken IPv6 support (after 5.2.10 and
> 5.3.0) and so it's not possible to update for some peoples.

Is there a bug # on this so its not some unknown issue we suddenly
have to know about?

-- 
regrads,

Kalle Sommer Nielsen
kalle@php.net

---

## #45606 — Carsten Wiedmann — 2009-09-19T01:21:24+00:00

URL: https://externals.io/message/45597#45606 · In reply to: #45605

Kalle Sommer Nielsen schrieb:
> 2009/9/19 Carsten Wiedmann <carsten_sttgt@gmx.de>:
> > […]
> 
> Is there a bug # on this so its not some unknown issue we suddenly
> have to know about?

Sure [1]. But it seems if no one from the support team have the "knowledge"
to do a `fopen()` to a local test server.

(I assume that more/most people have a working linklocal or ::1  address,
then a real IPv6 internet connection to test this with a live server.)

Regards,
Carsten


[1] http://bugs.php.net/bug.php?id=48805

---

## #45608 — Adam Harvey — 2009-09-19T06:34:03+00:00

URL: https://externals.io/message/45597#45608 · In reply to: #45606

2009/9/19 Carsten Wiedmann <carsten_sttgt@gmx.de>
>
> Kalle Sommer Nielsen schrieb:
> > […]
>
> Sure [1]. But it seems if no one from the support team have the "knowledge"
> to do a `fopen()` to a local test server.
>
> (I assume that more/most people have a working linklocal or ::1  address,
> then a real IPv6 internet connection to test this with a live server.)

I've done some detective work on this, and it appears to have been
introduced by the fix for bug #48131. I've posted a patch in #48805
that does fix the problem, but basically "unfixes" #48131 (which was
to do with using the bindto context option to choose IPv4 or IPv6
transport) -- whoever "owns" the streams code will need to make a call
on the right way to fix this, since it's not immediately obvious to a
php-src neophyte like me.

Adam

---

## #45611 — Pierre Joye — 2009-09-19T10:44:31+00:00

URL: https://externals.io/message/45597#45611 · In reply to: #45604

hi,


> Ilia Alshanetsky schrieb:
> > […]
>
> So that's the next PHP release with a broken IPv6 support (after 5.2.10 and
> 5.3.0) and so it's not possible to update for some peoples.

It is enabled, but the files did not change since the last two RCs.
You know why RC exists right? :)

I will check again next week and see what's wrong.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #45612 — Pierre Joye — 2009-09-19T10:47:10+00:00

URL: https://externals.io/message/45597#45612 · In reply to: #45611

ah misread, I first thought it was

That's not something we can fix as far as I can tell. But please open
a bug for this issue with:

- windows version used for the tests
- which last PHP version works as you expected

Cheers,


> hi,
>
> 
> > […]
>
> It is enabled, but the files did not change since the last two RCs.
> You know why RC exists right? :)
>
> I will check again next week and see what's wrong.
>
> Cheers,
> --
> Pierre
>
> http://blog.thepimp.net | http://www.libgd.org
>



-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
