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
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
Sounds good.
At 10:07 AM 6/4/2005 -0400, Greg Beaver wrote:
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
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.
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.
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:
-
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. -
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? -
Is 5.1 coming out without filtering?
-
I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things. -
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
Hi,
- 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...
- I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things.
+10
- 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
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
On Sun, 5 Jun 2005 22:29:13 +0200 (CEST)
derick@php.net (Derick Rethans) wrote:
Is there progress with the new date stuff? I'd really like to
have dates before 1970.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
Marcus Boerger wrote:
- 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
Hello Andi,
i forgot to mention one major problem. The current implementation of
extension dependency requires gnu-awk. If another awk implementation is
being used to generate php then the result is an immediate segfaulting
php binary. We should either make gawk checked by configure or rewrite
the exetension dependency by tables in the module struct so a dependent
extension doesn't get MINITed before its dependencies are initialized.
Probably we can go require way for 5.1 and have the other one done for
5.2.
Sunday, June 5, 2005, 7:18:26 PM, you wrote:
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:
- 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.
- 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?
- Is 5.1 coming out without filtering?
- I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things.
- 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
--
Best regards,
Marcus mailto:mail@marcus-boerger.de
I think the problem is only present if they have mawk installed under
the name 'awk'. Magnus and I spent a fair bit if time trying things
out with different awk implementations, as usual, with minimal
feedback from anyone else, either in the internals community or
outside of it.
How about having someone with mawk tweak the script so that it does
work? There is nothing in there that really requires a specific awk
implementation, and gawk certainly isn't installed on systems such as
Solaris, where the dependency script works just fine.
So, if you have mawk, get your finger out.
--Wez.
Hello Andi,
i forgot to mention one major problem. The current implementation of
extension dependency requires gnu-awk. If another awk implementation is
being used to generate php then the result is an immediate segfaulting
php binary. We should either make gawk checked by configure or rewrite
the exetension dependency by tables in the module struct so a dependent
extension doesn't get MINITed before its dependencies are initialized.
Probably we can go require way for 5.1 and have the other one done for
5.2.Sunday, June 5, 2005, 7:18:26 PM, you wrote:
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:
- 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.
- 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?
- Is 5.1 coming out without filtering?
- I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things.
- 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--
Best regards,
Marcus mailto:mail@marcus-boerger.de
At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote:
There are a few things i'd like to address before:
- 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.
- 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?
- 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...
- 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...
- 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
Hello Andi,
Sunday, June 5, 2005, 9:13:52 PM, you wrote:
At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote:
- 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?
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.
- Is 5.1 coming out without filtering?
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 :-)
- 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 (...). 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
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
Hello Andi,
I have to strongly disagree with your ifsetor() comment. the use
for ifsetor is in no way eliminated with filtering.
I write very clean code and have taught all my developers to write
very clean code. We run the latest stable PHP version with maximum
error reporting. We do this so we can have more secure code with
fewer logic errors.
However, running in E_STRICT
makes life rather miserable for simple
things such as accessing any array key that may or may not have been
included. I'm finding myself having the need for the ifsetor()
construct in all areas of programming - not just in _POST or _GET.
Even though you don't see yourself using it much, there are many
developers on this list who DO see the use for it, and there are
countless developers off this list who don't even know about it, but
would find it useful for migrating to E_ALL
| E_STRICT
error
reporting.
If there was any way to accommodate this with userland PHP code, I
would have already done it. However it is an engine level function
that has to be added to the core of PHP.
+ALot
Thanks.
--
Best regards,
Jason mailto:jason@ionzoft.com
Sunday, June 5, 2005, 3:13:52 PM, you wrote:
- I still want the ifsetor operator since it is very helpfull and again
simplifies a lot of things.
AG> I don't think ifsetor() shortcut is a big deal nor needed in PHP. I've said
AG> it numerous times. Once we have a filtering API there will be even less
AG> times where it will be applicable. Write an extra 10 characters or so...
AG> Andi
Jason Garber wrote:
If there was any way to accommodate this with userland PHP code, I
would have already done it. However it is an engine level function
that has to be added to the core of PHP.
For the record, I also find ifsetor useful, but what you want can be
accomplished like this:
$email = isset($_GET['email']) ? $_GET['email'] : 'no email address';
ifsetor would make this much nicer, but there /is/ a way to accomplish
what you want in userland.
S
Hello Sean,
I should have clarified this -- The following is how I do it all the
time. It's just a bit longhanded for something that is done so
often.
$email = (isset($_GET['email']) ? $_GET['email'] : '');
It get's even messier when you want to get something like this:
$value = (integer) (isset($myBigArray['SomeKey1']['SomeOtherKey']) ?
$myBigArray['SomeKey1']['SomeOtherKey'] : 0);
where
$value = ifsetor($myBigArray['SomeKey1']['SomeOtherKey'], 0);
is a bit cleaner.
Thanks.
--
Best regards,
Jason mailto:jason@ionzoft.com
Monday, June 6, 2005, 1:22:11 PM, you wrote:
SC> Jason Garber wrote:
If there was any way to accommodate this with userland PHP code, I
would have already done it. However it is an engine level function
that has to be added to the core of PHP.
SC> For the record, I also find ifsetor useful, but what you want can be
SC> accomplished like this:
SC> $email = isset($_GET['email']) ? $_GET['email'] : 'no email address';
SC> ifsetor would make this much nicer, but there /is/ a way to accomplish
SC> what you want in userland.
SC> S
(recall: eliminating warning is as important as dealing with errors. u
can't figure out which warning is relative to the problem if there's
too many noise warning.)
all of u in -internals is expert. u might have forgot how ppl learn
php. "simple" is the spirit of php, but is adding feature always make
php complex? in the following example, it's actually much simple, it's
not the problem we type how much letters it's 'how' we code, how the
beginner will code.
*** if u give the beginners "ifsetor", they will use it happily, not
the "isset + ?:" one.
u might say "hey, beginners should always learn not to be one". but i
would say, no. there're many beginners who write many big
programms(and bad), they even share it with others but don't even know
he should do this that way and do that this way.(think of why there is
non-addslashed code which lead to sql injection, and use of eval which
lead to php injection, and .. )
+1 for "ifsetor"
but btw, "ifsetor" might be complex for non-englishs. "default" might be better.
$value = (integer) (isset($myBigArray['SomeKey1']['SomeOtherKey']) ?
$myBigArray['SomeKey1']['SomeOtherKey'] : 0);where
$value = ifsetor($myBigArray['SomeKey1']['SomeOtherKey'], 0);
is a bit cleaner.
no, it's a lot!Thanks.
Xuefer wrote:
+1 for "ifsetor"
but btw, "ifsetor" might be complex for non-englishs. "default" might be better.
'default' is a reserved word.
Hello Andi,
Sunday, June 5, 2005, 9:13:52 PM, you wrote:
At 07:18 PM 6/5/2005 +0200, Marcus Boerger wrote:
There are a few things i'd like to address before:
- 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...
One of the major features of "ifsetor()" against "isset()?:" is that the first
can be twice as fast and is much more readable.
You also said numerous times it has nothing to do with input filtering :-)
marcus