# towards the next 5.3 release

- Thread: https://externals.io/message/42896
- Original archive: https://news-web.php.net/php.internals/42896
- Started by Lukas Kahwe Smith on 2009-02-03T13:41:49+00:00
- Messages: 38
- Page 1 of 2: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/42896.md?page=2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #42896 — Lukas Kahwe Smith — 2009-02-03T13:41:49+00:00

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

Aloha,

So Johannes and I have chatted about what needs to happen before we  
can go to RC1. If there are no bigger issues the next version will  
indeed be RC1. Release sometime in the second half of February. No  
specific date has been set as of yet. One of the key questions before  
a date can be set is what kind of issues we still have left to fix:

1) http://bugs.php.net/search.php?status=Open&phpver=5.3&cmd=display
2) we have the phar issues for big endian systems
3) closures and especially reflection were changed just before beta1
4) memory leak in the re2c
5) upgrading guide
6) reorganize the bundled php.ini files to production/development  
recommendations
7) memleak in zend_object_handlers.c
8) PHP_5_3 missed merge from PHP_5_2 for write_func callback

I want to elaborate on point 1) a bit more. Of course we should fix as  
many bugs as possible. But we should also not burden 5.3.0 with being  
a bug fix release. Whatever gets fixed in terms of old bugs is  
welcome, but we RMs will focus on those introduced in 5.3.

Here is the list of unassigned bugs that are 5.3 specific
http://bugs.php.net/bug.php?id=46048 - SimpleXML
http://bugs.php.net/bug.php?id=46171 - `stream_bucket_new()`
http://bugs.php.net/bug.php?id=46897 - `ob_flush()`
http://bugs.php.net/bug.php?id=47019 - Namespace reflection
http://bugs.php.net/bug.php?id=47085 - phar `rename()`
http://bugs.php.net/bug.php?id=47137 - libxml
http://bugs.php.net/bug.php?id=47265 - phar and safe_mode
http://bugs.php.net/bug.php?id=45432 - PDO persistent connections
http://bugs.php.net/bug.php?id=46817 - tokenizer
http://bugs.php.net/bug.php?id=47230 - phar
http://bugs.php.net/bug.php?id=46984 - `E_STRICT` 

We would appreciate it of people could quickly assign themselves to  
the above tickets, so that we know who to talk to.

assigned bugs where I am not sure if the developer in question is  
still actively on the issue:
http://bugs.php.net/bug.php?id=47198 - ticks and ext/pcntl
http://bugs.php.net/bug.php?id=42641 - `ob_start()`
http://bugs.php.net/bug.php?id=47206 - XSLT

Other important assigned bugs are assigned to andrey/mysql, derick,  
pierre, dmitry, scott. i assume you guys will let us know if you need  
help, cannot fix the issue etc.

So I am sure there are still things off in other places too. Please  
speak up what you feel needs to be addressed.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

PS: Just FYI .. I will be 99% offline from Feb. 14th until March 5th,  
as I am traveling to Tanzania for vacation

---

## #42897 — Lukas Kahwe Smith — 2009-02-03T14:02:34+00:00

URL: https://externals.io/message/42896#42897 · In reply to: #42896

Hi,

I also just reopened:
http://bugs.php.net/bug.php?id=46026

Not sure if Greg has time ..

regards,
Lukas

---

## #42898 — Greg Beaver — 2009-02-03T17:14:13+00:00

URL: https://externals.io/message/42896#42898 · In reply to: #42896

Lukas Kahwe Smith wrote:
> Aloha,
> 
> So Johannes and I have chatted about what needs to happen before we can
> go to RC1. If there are no bigger issues the next version will indeed be
> RC1. Release sometime in the second half of February. No specific date
> has been set as of yet. One of the key questions before a date can be
> set is what kind of issues we still have left to fix:
> 
> 1) http://bugs.php.net/search.php?status=Open&phpver=5.3&cmd=display
> 2) we have the phar issues for big endian systems

I don't have access to any big endian systems, so I am appealing to
those who do to help me fix these (Scott had mentioned them, but I don't
have much information to be able to fix them, or even exactly what they
are).

> http://bugs.php.net/bug.php?id=47085 - phar `rename()`

I'll handle this one, didn't realize it was there.

> http://bugs.php.net/bug.php?id=47265 - phar and safe_mode

ditto

> http://bugs.php.net/bug.php?id=47230 - phar

I can't fix this one, no sparc available.  Any takers?

Greg

---

## #42899 — Greg Beaver — 2009-02-03T17:15:28+00:00

URL: https://externals.io/message/42896#42899 · In reply to: #42897

Lukas Kahwe Smith wrote:
> Hi,
> 
> I also just reopened:
> http://bugs.php.net/bug.php?id=46026
> 
> Not sure if Greg has time ..

Anyone can do this, the 3 lines that need removal are correct, I simply
forgot about it at commit time, and for the last erm, several months.... :)

Greg

---

## #42900 — Scott MacVicar — 2009-02-03T17:17:34+00:00

URL: https://externals.io/message/42896#42900 · In reply to: #42898

Greg Beaver wrote:
> Lukas Kahwe Smith wrote:
> > […]
> 
> I don't have access to any big endian systems, so I am appealing to
> those who do to help me fix these (Scott had mentioned them, but I don't
> have much information to be able to fix them, or even exactly what they
> are).

https://www.opensolaris.org/register.jspa

And then speak to dsp for getting your account added to the test machine.

Scott

---

## #42901 — Daniel Convissor — 2009-02-03T17:39:08+00:00

URL: https://externals.io/message/42896#42901 · In reply to: #42896

Hi:

I just reopend http://bugs.php.net/bug.php?id=43817 (opendir() fails on 
Windows...) and marked the version 5.3.0beta1.

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409

---

## #42902 — Greg Beaver — 2009-02-03T18:41:31+00:00

URL: https://externals.io/message/42896#42902 · In reply to: #42897

Lukas Kahwe Smith wrote:
> Hi,
> 
> I also just reopened:
> http://bugs.php.net/bug.php?id=46026
> 
> Not sure if Greg has time ..

Actually, this was more complex than originally stated, in that this
code is incorrect:

if (SUCCESS == zend_hash_find(HASH_OF(filterparams), "concatenated",
sizeof("concatenated"), (void **) &tmpzval) ) {
-    SEPARATE_ZVAL(tmpzval);
-    convert_to_boolean_ex(tmpzval);
     data->expect_concatenated = Z_LVAL_PP(tmpzval);
-    zval_ptr_dtor(tmpzval);
     tmpzval = NULL;
}

The reason being that it incorrectly uses whatever the zval is, thus any
hash table or object would evaluate to true, even an empty array or object.

Thus, the correct fix is the one implemented in zlib_filter.c, and I've
ported it over.  It involves using a temporary zval, zval_copy_ctor()ing
it, and then convert_to_boolean_ex()ing it, which leaves the original
zval alone (the SEPARATE_ZVAL call does not do this properly), and
provides a valid boolean value.  I'll commit momentarily.

Greg

---

## #42903 — Stanislav Malyshev — 2009-02-03T19:42:51+00:00

URL: https://externals.io/message/42896#42903 · In reply to: #42896

Hi!

> http://bugs.php.net/bug.php?id=46984 - `E_STRICT` 

I think overriding foo($x) with foo($x, $y) - with both parameters 
required - leads to calls to foo with one argument be wrong for child - 
thus violating LSP and warranting E_STRICT.
-- 
Stanislav Malyshev, Zend Software Architect
stas@zend.com   http://www.zend.com/
(408)253-8829   MSN: stas@zend.com

---

## #42904 — Derick Rethans — 2009-02-03T19:49:30+00:00

URL: https://externals.io/message/42896#42904 · In reply to: #42903

> > […]
> 
> I think overriding foo($x) with foo($x, $y) - with both parameters required -
> leads to calls to foo with one argument be wrong for child - thus violating
> LSP and warranting E_STRICT.

I agree with that Stas, this shouldn't change.

regards,
Derick

-- 
http://derickrethans.nl | http://ezcomponents.org | http://xdebug.org
twitter: derickrethans

---

## #42905 — Greg Beaver — 2009-02-03T19:52:45+00:00

URL: https://externals.io/message/42896#42905 · In reply to: #42903

Stanislav Malyshev wrote:
> Hi!
> 
> > […]
> 
> I think overriding foo($x) with foo($x, $y) - with both parameters
> required - leads to calls to foo with one argument be wrong for child -
> thus violating LSP and warranting E_STRICT.

I agree.  If $y were optional, the LSP is no longer violated, and the
 `E_STRICT` disappears, as expected.

Opn->Bgs

Greg

---

## #42906 — Lukas Kahwe Smith — 2009-02-03T19:58:50+00:00

URL: https://externals.io/message/42896#42906 · In reply to: #42905

> Stanislav Malyshev wrote:
> > […]
>
> I agree.  If $y were optional, the LSP is no longer violated, and the
> `E_STRICT` disappears, as expected.
>
> Opn->Bgs


I agree. This is exactly what we have `E_STRICT` for ..

regards,
Lukas Kahwe Smith
mls@pooteeweet.org

---

## #42911 — david.zuelke@bitextender.com — 2009-02-04T12:12:44+00:00

URL: https://externals.io/message/42896#42911 · In reply to: #42896

Am 03.02.2009 um 14:41 schrieb Lukas Kahwe Smith:

> http://bugs.php.net/bug.php?id=47206 - XSLT

I looked through the CVS logs, could you confirm I understand it right:

The type hint was added in 5.2.6, and will be gone again in 5.2.9, so  
the only PHP releases with DOMDocument type hints there are 5.2.6,  
5.2.7 and 5.2.8?

Thanks,

- David

---

## #42913 — Sebastian Bergmann — 2009-02-04T14:16:58+00:00

URL: https://externals.io/message/42896#42913

Rob Richards wrote:
> The addition in 5.2.6 was a BC break and is fixed in 5.2.9

 Removing the type-hint is only a short-term fix, IMHO. A better solution
 would be to introduce a marker interface that is implemented by the
 respective classes of the XML extensions involved and use said
 interface in the type hint.

-- 
Sebastian Bergmann                          http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #42914 — Rob Richards — 2009-02-04T14:27:34+00:00

URL: https://externals.io/message/42896#42914 · In reply to: #42913

Sebastian Bergmann wrote:
> Rob Richards wrote:
>   
> > […]
>
>  Removing the type-hint is only a short-term fix, IMHO. A better solution
>  would be to introduce a marker interface that is implemented by the
>  respective classes of the XML extensions involved and use said
>  interface in the type hint.
>
>   
If that's the route this is going to go, I'd rather be able to set an 
anytype hint where the developer could possibly restrict this further 
with a more specific type if they extend the class.

Rob

---

## #42915 — pstradomski@gmail.com — 2009-02-04T14:33:08+00:00

URL: https://externals.io/message/42896#42915 · In reply to: #42914

W liście Rob Richards z dnia środa 04 lutego 2009:

> If that's the route this is going to go, I'd rather be able to set an
> anytype hint where the developer could possibly restrict this further
> with a more specific type if they extend the class.

But that would break Liskov's principle...


-- 
Paweł Stradomski

---

## #42916 — Rob Richards — 2009-02-04T14:46:27+00:00

URL: https://externals.io/message/42896#42916 · In reply to: #42915

Paweł Stradomski wrote:
> W liście Rob Richards z dnia środa 04 lutego 2009:
>
>   
> > […]
>
> But that would break Liskov's principle...
>
>
>   
I might agree if PHP were strictly an OO language, but it's not. 
Although SimpleXML is currently the only other extension that shares 
nodes with DOM, there are potential for others and not everything is OO 
(i.e. both xmlReader and writer have procedural interfaces).

Rob

---

## #42917 — david.zuelke@bitextender.com — 2009-02-04T14:47:54+00:00

URL: https://externals.io/message/42896#42917 · In reply to: #42913

Am 04.02.2009 um 15:16 schrieb Sebastian Bergmann:

> Rob Richards wrote:
> > […]
>
> Removing the type-hint is only a short-term fix, IMHO. A better  
> solution
> would be to introduce a marker interface that is implemented by the
> respective classes of the XML extensions involved and use said
> interface in the type hint.

And then code breaks code *again*.

The problem with the previous change, the fix for it and the fix you  
suggest is that it cannot be handled at runtime using a version check.  
My class Foo extends XsltProcessor, and it cannot have different  
method signatures for different PHP versions.

Good argument for adding a preprocessor, isn't it? :D

- David

---

## #42921 — Sebastian Bergmann — 2009-02-04T19:40:09+00:00

URL: https://externals.io/message/42896#42921 · In reply to: #42916

Rob Richards wrote:
> I might agree if PHP were strictly an OO language, but it's not.

 I think part of the problem is that the same information, arginfo, is
 used for things: provide metadata for the Reflection API and type
 hinting of internal functions/methods.

 When I added the arginfo metadata to XSLTProcessor last year I was not
 aware of the latter purpose. I only wanted to fix the "missing metadata
 for reflection" issue.

-- 
Sebastian Bergmann                          http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #42938 — johannes@schlueters.de — 2009-02-05T16:32:23+00:00

URL: https://externals.io/message/42896#42938 · In reply to: #42911

> Am 03.02.2009 um 14:41 schrieb Lukas Kahwe Smith:
> 
> > […]
> 
> I looked through the CVS logs, could you confirm I understand it right:
> 
> The type hint was added in 5.2.6, and will be gone again in 5.2.9, so  
> the only PHP releases with DOMDocument type hints there are 5.2.6,  
> 5.2.7 and 5.2.8?

I think independently from what we do in 5.3 we will have
incompatibilities between versions here which can't be worked-around in
userland (I don't consider if (version_compare(...)) { class ... } else
{ class ... } a proper workaround)

So here are three choices:
- The DOMDoument typehint is certainly wrong. 
- Adding an interface is lots of additional trouble (user code will
  break again, no proper way for users to be 5.2 and 5.3 compatible)
- No typehint, as it is now, #47206 "Expected / to be documented",
  incompatible with 5.2.6-5.2.8 but compatible with most other 5.2
  versions

After reading this thread and some limited private discussion I think
the last option is the best.

johannes

---

## #42939 — david.zuelke@bitextender.com — 2009-02-05T16:33:43+00:00

URL: https://externals.io/message/42896#42939 · In reply to: #42938

> 
> > […]
>
> I think independently from what we do in 5.3 we will have
> incompatibilities between versions here which can't be worked-around  
> in
> userland (I don't consider if (version_compare(...)) { class ... }  
> else
> { class ... } a proper workaround)
>
> So here are three choices:
> - The DOMDoument typehint is certainly wrong.
> - Adding an interface is lots of additional trouble (user code will
>  break again, no proper way for users to be 5.2 and 5.3 compatible)
> - No typehint, as it is now, #47206 "Expected / to be documented",
>  incompatible with 5.2.6-5.2.8 but compatible with most other 5.2
>  versions
>
> After reading this thread and some limited private discussion I think
> the last option is the best.

+1

---

## #42941 — Sebastian Bergmann — 2009-02-05T18:36:52+00:00

URL: https://externals.io/message/42896#42941 · In reply to: #42938

Johannes Schlüter wrote:
> - No typehint, as it is now, #47206 "Expected / to be documented",
>   incompatible with 5.2.6-5.2.8 but compatible with most other 5.2
>   versions

 Could we extend the arginfo system to allow for multiple typehints? Of
 course the Reflection API would have to support this :-/

-- 
Sebastian Bergmann                          http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #42942 — johannes@php.net — 2009-02-05T19:02:47+00:00

URL: https://externals.io/message/42896#42942 · In reply to: #42941

> Johannes Schlüter wrote:
> > […]
> 
>  Could we extend the arginfo system to allow for multiple typehints? Of
>  course the Reflection API would have to support this :-/

Of course we could, we'd "just" have to change a structure and
zend_verify_arg_class_kind() and of course the language syntax to allow
something like "function foo(A|B $bar) {}" but this still would mean to
break source compatibility in a bad way here as the user's code would
have to follow the signature and won't be able to be 5.2 and 5.3
compatible in one file.

johannes

---

## #42943 — Sebastian Bergmann — 2009-02-05T19:06:22+00:00

URL: https://externals.io/message/42896#42943 · In reply to: #42942

Johannes Schlüter wrote:
> Of course we could, we'd "just" have to change a structure and
> zend_verify_arg_class_kind() and of course the language syntax to allow
> something like "function foo(A|B $bar) {}" but this still would mean to

 This should, of course, only be for built-in functions and methods. But
 yeah, it probably does more harm than good.

 It just sucks, IMHO, that some functions and methods will not have
 Reflection API metadata because the same arginfo structure is used for
 two things. But I will shut up now.

-- 
Sebastian Bergmann                          http://sebastian-bergmann.de/
GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69

---

## #42945 — Christian Stocker — 2009-02-05T19:15:16+00:00

URL: https://externals.io/message/42896#42945 · In reply to: #42938

> 
> > […]
> 
> I think independently from what we do in 5.3 we will have
> incompatibilities between versions here which can't be worked-around in
> userland (I don't consider if (version_compare(...)) { class ... } else
> { class ... } a proper workaround)
> 
> So here are three choices:
> - The DOMDoument typehint is certainly wrong. 
> - Adding an interface is lots of additional trouble (user code will
>   break again, no proper way for users to be 5.2 and 5.3 compatible)
> - No typehint, as it is now, #47206 "Expected / to be documented",
>   incompatible with 5.2.6-5.2.8 but compatible with most other 5.2
>   versions
> 
> After reading this thread and some limited private discussion I think
> the last option is the best.

As one of the maintainer of ext/xsl, here's my +1  on the third option

chregu

---

## #42947 — johannes@schlueters.de — 2009-02-05T19:53:18+00:00

URL: https://externals.io/message/42896#42947 · In reply to: #42943

> Johannes Schlüter wrote:
> > […]
> 
>  This should, of course, only be for built-in functions and methods. But
>  yeah, it probably does more harm than good.

Doing this for built-in stuff won't help the issue here is about
overloading an internal method. So we'd have to give it to userland.

>  It just sucks, IMHO, that some functions and methods will not have
>  Reflection API metadata because the same arginfo structure is used for
>  two things. But I will shut up now.

So reflection should use other data than the engine thus leading to
inconsistencies? Reflection's purpose is to give the engine's
information to userland ...

johannes

---

Next page: https://externals.io/message/42896.md?page=2
