# PHP 5.1

- Thread: https://externals.io/message/16375
- Original archive: https://news-web.php.net/php.internals/16375
- Started by Andi Gutmans on 2005-06-04T05:58:13+00:00
- Messages: 69
- Page 1 of 3: messages 1 to 25 (25 per page, add `?page=N` to the URL)
- Next page: https://externals.io/message/16375.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

---

## #16375 — Andi Gutmans — 2005-06-04T05:58:13+00:00

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

Hey,

There have been a lot of questions and discussion regarding status of PHP 5.1.
In the past few weeks, many have been fixing lots of bugs and PDO seems to 
have reached a pretty stable state.
In parallel, a lot of work has been done offline by Andrei, Dmitry and 
others, to enable Unicode support in PHP and the Zend Engine.
I believe it is time now to move 5.1 forward at a much faster pace. I'd 
like to roll a beta of it towards the end of next week such as Thursday 
(giving a chance for some last minute fixes), and then hopefully RC within 
a week or two.
Once we RC PHP 5.1, we should branch it off to PHP_5_1 and make HEAD the 
Unicode development stream (merging Unicode changes into HEAD).

Hopefully, by going at this pace, we can have a pretty decent Unicode 
version of PHP out there within a few months; and have PDO out there almost 
immediately.

So I envision:
End of June - PHP 5.1. Main feature PDO, Improved ZEII and other improvements.
Q3.2005 - Beta of PHP 5.5/6.0 featuring Unicode support.
Thanks,

Andi

---

## #16377 — Greg Beaver — 2005-06-04T14:07:37+00:00

URL: https://externals.io/message/16375#16377 · In reply to: #16375

Andi Gutmans wrote:
> Hey,
> 
> There have been a lot of questions and discussion regarding status of 
> PHP 5.1.
> In the past few weeks, many have been fixing lots of bugs and PDO seems 
> to have reached a pretty stable state.
> In parallel, a lot of work has been done offline by Andrei, Dmitry and 
> others, to enable Unicode support in PHP and the Zend Engine.
> I believe it is time now to move 5.1 forward at a much faster pace. I'd 
> like to roll a beta of it towards the end of next week such as Thursday 
> (giving a chance for some last minute fixes), and then hopefully RC 
> within a week or two.
> Once we RC PHP 5.1, we should branch it off to PHP_5_1 and make HEAD the 
> Unicode development stream (merging Unicode changes into HEAD).
> 
> Hopefully, by going at this pace, we can have a pretty decent Unicode 
> version of PHP out there within a few months; and have PDO out there 
> almost immediately.
> 
> So I envision:
> End of June - PHP 5.1. Main feature PDO, Improved ZEII and other 
> improvements.
> Q3.2005 - Beta of PHP 5.5/6.0 featuring Unicode support.

Judging by the importance of the 5.5/6.0 release, I think shooting for a 
stable PEAR 1.4.0 in that release would make sense as well.  I will of 
course run this by the other PEAR folks since they probably care a 
little more about the details of this decision :).  It will not be ready 
for a stable release in a week or two, there's still some wrangling over 
features.

One thing to note: I've been working on PHP_Archive with Davey Shafik, 
which will allow PEAR to be distributed in a single file, and this means 
the CVS sync nightmare that is PEAR in the unix build can be eliminated 
by this solution.  This also will not be ready in a week or two, so 
5.5/6.0 it is.

Thanks,
Greg

---

## #16378 — Andi Gutmans — 2005-06-04T14:54:46+00:00

URL: https://externals.io/message/16375#16378 · In reply to: #16375

Sounds good.

At 10:07 AM 6/4/2005 -0400, Greg Beaver wrote:
>Andi Gutmans wrote:
> > […]
>
>Judging by the importance of the 5.5/6.0 release, I think shooting for a 
>stable PEAR 1.4.0 in that release would make sense as well.  I will of 
>course run this by the other PEAR folks since they probably care a little 
>more about the details of this decision :).  It will not be ready for a 
>stable release in a week or two, there's still some wrangling over features.
>
>One thing to note: I've been working on PHP_Archive with Davey Shafik, 
>which will allow PEAR to be distributed in a single file, and this means 
>the CVS sync nightmare that is PEAR in the unix build can be eliminated by 
>this solution.  This also will not be ready in a week or two, so 5.5/6.0 it is.
>
>Thanks,
>Greg

---

## #16383 — magnus@php.net — 2005-06-05T16:59:52+00:00

URL: https://externals.io/message/16375#16383 · In reply to: #16375

Hi Andi,


> I'd like to roll a beta of it towards the end of next week such as
> Thursday (giving a chance for some last minute fixes), and then
> hopefully RC within a week or two.
> Once we RC PHP 5.1, we should branch it off to PHP_5_1 and make
> HEAD the Unicode development stream (merging Unicode changes into
> HEAD).

What about ifsetor for 5.1 ?

> So I envision:
> End of June - PHP 5.1. Main feature PDO, Improved ZEII and other
> improvements. Q3.2005 - Beta of PHP 5.5/6.0 featuring Unicode
> support.

And the much needed goto for the next one (5.2/5.5/6.0 or whatever it 
will be) ?

And please, no "this and that professor told me/wrote/said goto is 
bad", and so on, replies =)


Magnus Määttä

-- 
jogger, n.:
	An odd sort of person with a thing for pain.

---

## #16384 — Marcus Boerger — 2005-06-05T17:18:26+00:00

URL: https://externals.io/message/16375#16384 · In reply to: #16375

Hello Andi,

Saturday, June 4, 2005, 7:58:13 AM, you wrote:

> Hey,

> There have been a lot of questions and discussion regarding status of PHP 5.1.
> In the past few weeks, many have been fixing lots of bugs and PDO seems to
> have reached a pretty stable state.
> In parallel, a lot of work has been done offline by Andrei, Dmitry and 
> others, to enable Unicode support in PHP and the Zend Engine.
> I believe it is time now to move 5.1 forward at a much faster pace. I'd 
> like to roll a beta of it towards the end of next week such as Thursday 
> (giving a chance for some last minute fixes), and then hopefully RC within
> a week or two.
> Once we RC PHP 5.1, we should branch it off to PHP_5_1 and make HEAD the 
> Unicode development stream (merging Unicode changes into HEAD).

> Hopefully, by going at this pace, we can have a pretty decent Unicode 
> version of PHP out there within a few months; and have PDO out there almost
> immediately.

There are a few things i'd like to address before:

1) return by reference at c-level. This is already taken care of by dmitry
who is currently working on a better patch than mine. However i need this
to finalizy ArrayAccess interface. And i need a bit of a time to experiment
with the result and maybe others want to give their input as well. At the
moment the problem is that it cannot deal with references at all but there
is already coe out with 5.0 that used that issue. So here is just somewhat
work and testing needed.

2) PHP is all about the putting out text so nearly all objects created in
PHP are meant to put something onto the generated pages. Thus i think i am
not alone to suggest we put back the magic __toString function in place as
we said when we dropped it's support from 5.0. Also it is very hard to
explain why "echo $a . $obj" and "echo $a, $obj" output different things
when one is an object. Both is pretty much against the spirit of PHP -
easiness isn't it?

3) Is 5.1 coming out without filtering?

4) I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things.

5) tons of other stuff i menationed offline and in public - since i lost
the energy in tracking all that issues i guess the work and time in those
wasn't worse the effort and they can wait anyway :-)

best regards
marcus

---

## #16386 — Andi Gutmans — 2005-06-05T19:13:52+00:00

URL: https://externals.io/message/16375#16386 · In reply to: #16375

At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote:
>There are a few things i'd like to address before:
>
>1) return by reference at c-level. This is already taken care of by dmitry
>who is currently working on a better patch than mine. However i need this
>to finalizy ArrayAccess interface. And i need a bit of a time to experiment
>with the result and maybe others want to give their input as well. At the
>moment the problem is that it cannot deal with references at all but there
>is already coe out with 5.0 that used that issue. So here is just somewhat
>work and testing needed.

I saw some work of Dmitry's on this issue. Will look what's happening with it.

>2) PHP is all about the putting out text so nearly all objects created in
>PHP are meant to put something onto the generated pages. Thus i think i am
>not alone to suggest we put back the magic __toString function in place as
>we said when we dropped it's support from 5.0. Also it is very hard to
>explain why "echo $a . $obj" and "echo $a, $obj" output different things
>when one is an object. Both is pretty much against the spirit of PHP -
>easiness isn't it?

I thought you were going to write a patch up. Did you look into it?

>3) Is 5.1 coming out without filtering?

Obviously not. I don't see anyone actively working on it. I am hoping to 
allocate resources to it in the near future but it'll come out when it 
comes out, especially as it's an extension. It might even live in PECL 
until everyone is happy with it. I want to try and work on an API proposal 
first because I believe the API is where the issue is and not the coding...

>4) I still want the ifsetor operator since it is very helpfull and again
>simplifies a lot of things.

I don't think ifsetor() shortcut is a big deal nor needed in PHP. I've said 
it numerous times. Once we have a filtering API there will be even less 
times where it will be applicable. Write an extra 10 characters or so...

>5) tons of other stuff i menationed offline and in public - since i lost
>the energy in tracking all that issues i guess the work and time in those
>wasn't worse the effort and they can wait anyway :-)

Yes, many bugs have been fixed and issues have been addressed. Like always, 
there will always be open issues. It has been like this with every PHP 
release. Most important is to make sure that PHP 5.1 is only better and not 
worse than PHP 5.0, which I'm confident it is. And bringing PDO to the PHP 
community, and allowing for Unicode work to fold into PHP dev tree is the 
most important goal.

Andi

---

## #16387 — Johannes Schlueter — 2005-06-05T19:30:16+00:00

URL: https://externals.io/message/16375#16387 · In reply to: #16384

Hi,


> 2) PHP is all about the putting out text so nearly all objects created in
> PHP are meant to put something onto the generated pages. Thus i think i am
> not alone to suggest we put back the magic __toString function in place as
> we said when we dropped it's support from 5.0. Also it is very hard to
> explain why "echo $a . $obj" and "echo $a, $obj" output different things
> when one is an object. Both is pretty much against the spirit of PHP -
> easiness isn't it?

Especially with "echo $a . $obj" and "echo $a, $obj" it's really annoying. 
Many people are concating when printing stuff and it's hard to explain why 
the results differ...

> 4) I still want the ifsetor operator since it is very helpfull and again
> simplifies a lot of things.

+10

> 5) tons of other stuff i menationed offline and in public - since i lost
> the energy in tracking all that issues i guess the work and time in those
> wasn't worse the effort and they can wait anyway :-)

Is there progress with the new date stuff? I'd really like to have dates 
before 1970.

johannes
-- 
Johannes Schlüter                           Mayflower GmbH / ThinkPHP
http://thinkphp.de                            http://blog.thinkphp.de

---

## #16388 — Marcus Boerger — 2005-06-05T19:54:02+00:00

URL: https://externals.io/message/16375#16388 · In reply to: #16386

Hello Andi,

Sunday, June 5, 2005, 9:13:52 PM, you wrote:

> At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote:
> > […]

> I thought you were going to write a patch up. Did you look into it?

Sure but i lost track of all my patches. Maybe i should start a list
that stores their review state so i can bug you more :-) Joke aside
i forgot to do that so thanks for the reminder. You'll find it attached.

> > […]

> Obviously not. (...). I want to try and work on an API proposal
> first because I believe the API is where the issue is and not the coding...

Cool :-)

> > […]

> Yes (...). Most important is to make sure that PHP 5.1 is only better and not
> worse than PHP 5.0, which I'm confident it is. And bringing PDO to the PHP
> community, and allowing for Unicode work to fold into PHP dev tree is the 
> most important goal.

It is already much faster and i heared many people claiming 5.0 was to slow.
Also going for unicode seems very important.

marcus

---

## #16390 — Derick Rethans — 2005-06-05T20:29:13+00:00

URL: https://externals.io/message/16375#16390 · In reply to: #16387

> Is there progress with the new date stuff? I'd really like to have dates 
> before 1970.

Should go in this week.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16391 — Rasmus Lerdorf — 2005-06-05T20:29:55+00:00

URL: https://externals.io/message/16375#16391 · In reply to: #16386

Andi Gutmans wrote:
> Obviously not. I don't see anyone actively working on it. I am hoping to
> allocate resources to it in the near future but it'll come out when it
> comes out, especially as it's an extension. It might even live in PECL
> until everyone is happy with it. I want to try and work on an API
> proposal first because I believe the API is where the issue is and not
> the coding...

pecl/filter

The framework for it is in place.  I'll try to get some actual filters
implemented this week.  It's fine as a pecl extension for now.  The
hooks have been in place for a while, so it shouldn't hold up 5.1.

-Rasmus

---

## #16392 — Pierre-Alain Joye — 2005-06-05T21:55:17+00:00

URL: https://externals.io/message/16375#16392 · In reply to: #16390

On Sun, 5 Jun 2005 22:29:13 +0200 (CEST)
derick@php.net (Derick Rethans) wrote:

> 
> 
> > […]
> 
> Should go in this week.

Finally :)

If Derick's TZ and new strtotime go in this week, then pecl/date
will be updated accordingly and ready to go to ext as well. If not,
it will be ready with its own TZ support in the wait of Derick's
one.

Again in pecl, xmlwriter is be ready as well, I only have the OO
interface to commit.

Regards,

--Pierre

---

## #16395 — magnus@php.net — 2005-06-05T23:15:36+00:00

URL: https://externals.io/message/16375#16395

> 
> > […]
>
>      I've found a lot of cases where this would have been nice to
> have and simplified the code too..
>
>      So +1 from me. (wasn't there a patch for this already
> somewhere?)

Yes, Sara made a patch for it.. 
http://pecl.org/patches/opcode_goto_5.1.0.diff
I don't know if this is the latest one or not.


Magnus Määttä

-- 
I cannot and will not cut my conscience to fit this year's fashions.
		-- Lillian Hellman

---

## #16398 — Ilia Alshanetsky — 2005-06-06T02:59:58+00:00

URL: https://externals.io/message/16375#16398 · In reply to: #16395

> Yes, Sara made a patch for it.. 
> http://pecl.org/patches/opcode_goto_5.1.0.diff
> I don't know if this is the latest one or not.

+1 for the goto patch in 5.1

Ilia

---

## #16399 — Olivier Hill — 2005-06-06T03:23:18+00:00

URL: https://externals.io/message/16375#16399 · In reply to: #16398

Hi,

I'm +1 on the goto patch aswell. What was the consent on the limit of
a goto statement? Should it be able to jump outside a control block?
Can it jump anywhere?

Sincerely,
Olivier


> 
> +1 for the goto patch in 5.1

---

## #16401 — Lukas Smith — 2005-06-06T06:45:08+00:00

URL: https://externals.io/message/16375#16401 · In reply to: #16384

Marcus Boerger wrote:

> 4) I still want the ifsetor operator since it is very helpfull and again
> simplifies a lot of things.

+1

+1 for goto as well

regards,
Lukas

---

## #16402 — Andrey Hristov — 2005-06-06T06:51:23+00:00

URL: https://externals.io/message/16375#16402 · In reply to: #16398

Quoting Ilia Alshanetsky <ilia@prohost.org>:

> > […]
>
> +1 for the goto patch in 5.1
>
> Ilia
>
> -- 
> 
>
>

+1 from here too

Andrey

---

## #16404 — Sascha Schumann — 2005-06-06T07:04:56+00:00

URL: https://externals.io/message/16375#16404

>    So +1 from me. (wasn't there a patch for this already somewhere?)

     PHP has enough horrid language misfeatures.  It does not need
     another one.  Seeing the potential damage of adding goto to
     the language, I can only give it a -1.

     - Sascha

---

## #16405 — Derick Rethans — 2005-06-06T07:09:53+00:00

URL: https://externals.io/message/16375#16405

> > […]
> 
>     I've found a lot of cases where this would have been nice to have
>     and simplified the code too..
> 
>     So +1 from me. (wasn't there a patch for this already somewhere?)

For me too: +1.

Derick

---

## #16407 — ondrej@kmit.sk — 2005-06-06T08:08:15+00:00

URL: https://externals.io/message/16375#16407

Jani Taskinen wrote:
> > […]
>     I've found a lot of cases where this would have been nice to have
>     and simplified the code too..
> 
>     So +1 from me. (wasn't there a patch for this already somewhere?)

When I move from functional to OO or generic programing I don't need use
'goto' statement anymore.

I think, better (cleaner) way is extend 'break' and 'continue' to accept
string as label name in local scope. (like java :)).

Implement 'goto' with possibility to jump anywhere is a step backwards...

So -1 from me to goto.

--
Ondrej Ivanic
(ondrej@kmit.sk)

---

## #16408 — Derick Rethans — 2005-06-06T08:22:08+00:00

URL: https://externals.io/message/16375#16408 · In reply to: #16407

> Jani Taskinen wrote:
> > […]
> 
> When I move from functional to OO or generic programing I don't need use
> 'goto' statement anymore.
> 
> I think, better (cleaner) way is extend 'break' and 'continue' to accept
> string as label name in local scope. (like java :)).
> 
> Implement 'goto' with possibility to jump anywhere is a step backwards...

It's exactly the same as "break <label>"... goto can only jump in the 
same scope with a label. So I don't see the difference.

Derick

-- 
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org

---

## #16413 — George Schlossnagle — 2005-06-06T11:29:32+00:00

URL: https://externals.io/message/16375#16413 · In reply to: #16405

> 
>
>
> > […]
> For me too: +1.

+1 here as well.

George

---

## #16424 — Wez Furlong — 2005-06-06T12:22:52+00:00

URL: https://externals.io/message/16375#16424 · In reply to: #16383

> And the much needed goto for the next one (5.2/5.5/6.0 or whatever it
> will be) ?

+1 (for the "limited" version that Sara and Andi already worked out
last time this came up)

> And please, no "this and that professor told me/wrote/said goto is
> bad", and so on, replies =)

Amen :)

--Wez.

---

## #16427 — Mark Krenz — 2005-06-06T12:28:31+00:00

URL: https://externals.io/message/16375#16427 · In reply to: #16404

I agree

I give it a -1 too.


On Mon, Jun 06, 2005 at 07:04:56AM GMT, Sascha Schumann [sascha@schumann.cx] said the following:
> > […]
> 
>     PHP has enough horrid language misfeatures.  It does not need
>     another one.  Seeing the potential damage of adding goto to
>     the language, I can only give it a -1.
> 
>     - Sascha
> 
> -- 
> 
> 
> 


-- 
Mark S. Krenz
IT Director
Suso Technology Services, Inc.
http://suso.org/

---

## #16441 — ondrej@kmit.sk — 2005-06-06T14:34:44+00:00

URL: https://externals.io/message/16375#16441 · In reply to: #16408

Derick Rethans wrote:
> > […]
> 
> 
> It's exactly the same as "break <label>"... goto can only jump in the 
> same scope with a label. So I don't see the difference.
> 
> Derick
> 
It's not same, but it's same, look:

for( ... ) {
	while( ... ) {
		if(cond) goto exit;
	}
}
exit:

is equivalent with:

exit:
for( ... ) {
	while( ... ) {
		if(cond) break exit;
	}
}

or

for( ... ) {
	while( ... ) {
		if(cond) break 2;
	}
}

goto <label>:
- we can jump into another loop, not so good

break/continue <label>
- little confusing syntax: break terminate executing labeled statement
and transfer control to the next statement.

I don't need 'goto' but I prefer to extend break/continue. Always if
possible to set a flag in loop and use it to escape...  :)

goto can help, but mostly create unreadable code...

-- 
Ondrej Ivanic
(ondrej@kmit.sk)

---

## #16444 — Stanislav Malyshev — 2005-06-06T14:38:21+00:00

URL: https://externals.io/message/16375#16444 · In reply to: #16441

OI>>break/continue <label>
OI>>- little confusing syntax: break terminate executing labeled statement
OI>>and transfer control to the next statement.

I can see a value in this one, if it can be implemented correctly, meaning 
it won't allow just jumping around but only exiting blocks and label would 
be used just not to count blocks. I don't know if it can work good, but if 
it can - it's OK with me. 
-- 
Stanislav Malyshev, Zend Products Engineer   
stas@zend.com  http://www.zend.com/ +972-3-6139665 ext.115

---

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