PHP 5.1 Beta 2

php.internals

Andi Gutmans

21 years ago
Hi, You can reach Beta 2 at http://snaps.php.net/~andi/ If there are no surprise show stoppers I'll put it live tomorrow evening. Andi

Sebastian Nohn

21 years ago
Andi Gutmans wrote:
> You can reach Beta 2 at http://snaps.php.net/~andi/ > If there are no surprise show stoppers I'll put it live tomorrow evening.
http://bugs.php.net/33420 Sebastian

Derick Rethans

21 years ago
On Tue, 21 Jun 2005, Sebastian Nohn wrote:
> Andi Gutmans wrote: > > > You can reach Beta 2 at http://snaps.php.net/~andi/ > > If there are no surprise show stoppers I'll put it live tomorrow evening. > > http://bugs.php.net/33420
The whole directory ext/date is missing from the tarball. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Andi Gutmans

21 years ago
OK I'll check into it. Thanks, Andi At 11:47 AM 6/21/2005 +0200, Derick Rethans wrote:

Andi Gutmans

21 years ago
Please check new packages at http://snaps.php.net/~andi Will release tomorrow if there's not another major screwup :) Thanks. Andi At 07:15 AM 6/21/2005 -0700, Andi Gutmans wrote:

Sebastian Nohn

21 years ago
It compiles fine. Andi Gutmans wrote:

Rasmus Lerdorf

21 years ago
Sebastian Nohn wrote:
> It compiles fine. > > Andi Gutmans wrote: > >>Please check new packages at http://snaps.php.net/~andi >>Will release tomorrow if there's not another major screwup :)
There are still some strtotime() issues to work out. echo date("m d Y",strtotime("Jan 14, 2004")); correctly gives: 01 14 2004 echo date("m d Y",strtotime("Jan.14, 2004")); gives: 06 21 2005 This broke one of my apps in a rather hard-to-debug way. -Rasmus

Derick Rethans

21 years ago
On Tue, 21 Jun 2005, Rasmus Lerdorf wrote:
> There are still some strtotime() issues to work out. > > echo date("m d Y",strtotime("Jan.14, 2004")); > > gives: 06 21 2005
Fixed in CVS. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Nuno Lopes

21 years ago
> Sebastian Nohn wrote: >> It compiles fine. >> >> Andi Gutmans wrote: >> >>>Please check new packages at http://snaps.php.net/~andi >>>Will release tomorrow if there's not another major screwup :) > > There are still some strtotime() issues to work out. > > echo date("m d Y",strtotime("Jan 14, 2004")); > > correctly gives: 01 14 2004 > > echo date("m d Y",strtotime("Jan.14, 2004")); > > gives: 06 21 2005 > > This broke one of my apps in a rather hard-to-debug way. > > -Rasmus
There are also a couple of tests related with strtotime() (or date()) that fail on Solaris: http://mega.ist.utl.pt/~ncpl/php_test_results_20050621_2035.txt Nuno

Derick Rethans

21 years ago
On Tue, 21 Jun 2005, Nuno Lopes wrote:
> There are also a couple of tests related with strtotime() (or date()) that > fail on Solaris: > http://mega.ist.utl.pt/~ncpl/php_test_results_20050621_2035.txt
That is a broken date() implementation AFAICT. That's next on my todo list. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Andi Gutmans

21 years ago
Hi, I just talked to Derick, and we think it's best to post Beta 2 regardless to get more feedback and testing. In any case, this is definitely something that should be addressed (although it seems that it was never documented). Thanks, Andi At 07:28 PM 6/21/2005 +0200, Rasmus Lerdorf wrote:

Rasmus Lerdorf

21 years ago
Andi Gutmans wrote:
> Hi, > > I just talked to Derick, and we think it's best to post Beta 2 > regardless to get more feedback and testing. > In any case, this is definitely something that should be addressed > (although it seems that it was never documented).
My worry is mostly that this is a brand new strtotime implementation so stuff that used to work in PHP 4.3.x/5.0.x now suddenly doesn't. What we really need is an extensive set of tests for the old implementation and try to systematically make sure it works in the new one. I know there are a number of tests there already, but I bet someone out there has an exchaustive list of strtotime tests. -Rasmus

Derick Rethans

21 years ago
On Tue, 21 Jun 2005, Rasmus Lerdorf wrote:
> Andi Gutmans wrote: > > Hi, > > > > I just talked to Derick, and we think it's best to post Beta 2 > > regardless to get more feedback and testing. > > In any case, this is definitely something that should be addressed > > (although it seems that it was never documented). > > My worry is mostly that this is a brand new strtotime implementation so > stuff that used to work in PHP 4.3.x/5.0.x now suddenly doesn't. What > we really need is an extensive set of tests for the old implementation > and try to systematically make sure it works in the new one. I know > there are a number of tests there already, but I bet someone out there > has an exchaustive list of strtotime tests.
I do, it has over 200 formats. And it's on the todo to port that to .phpt format... Just didn't have the time yet. Derick
-- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Rasmus Lerdorf

21 years ago
Derick Rethans wrote:
> On Tue, 21 Jun 2005, Rasmus Lerdorf wrote: > > >>Andi Gutmans wrote: >> >>>Hi, >>> >>>I just talked to Derick, and we think it's best to post Beta 2 >>>regardless to get more feedback and testing. >>>In any case, this is definitely something that should be addressed >>>(although it seems that it was never documented). >> >>My worry is mostly that this is a brand new strtotime implementation so >>stuff that used to work in PHP 4.3.x/5.0.x now suddenly doesn't. What >>we really need is an extensive set of tests for the old implementation >>and try to systematically make sure it works in the new one. I know >>there are a number of tests there already, but I bet someone out there >>has an exchaustive list of strtotime tests. > > > I do, it has over 200 formats. And it's on the todo to port that to > .phpt format... Just didn't have the time yet.
Perhaps stick it up somewhere and let a worker bee have at it. -Rasmus

Andi Gutmans

21 years ago
Yeah it's definitely worrying. I am hoping that Derick will get those tests sorted out as I was hoping to RC in a short time frame. Hopefully when Beta 2 gets out there we'll get some more testing. Andi At 08:41 PM 6/21/2005 +0200, Rasmus Lerdorf wrote:

Joerg Behrens

21 years ago
Andi Gutmans schrieb:
> Please check new packages at http://snaps.php.net/~andi > Will release tomorrow if there's not another major screwup :) >
Hi Andi, more than 160 tests failed on the IRIX 6.5 platform. Test results are under http://www.irixworld.net/php_test_results_20050621_2239.txt TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 36 Exts tested : 50 --------------------------------------------------------------------- Number of tests : 1907 1636 Tests skipped : 271 ( 14.2%) -------- Tests warned : 1 ( 0.1%) ( 0.1%) Tests failed : 162 ( 8.5%) ( 9.9%) Tests passed : 1473 ( 77.2%) ( 90.0%) regards Joerg

Ilia A.

21 years ago
A large chunk of tests fails because PHP cannot run them, missing DB connection. This is true for MySQLi tests and PDO_ODBC tests, the latter requires a patch to prepare.inc, that only IBMers can apply. Ilia

Wez Furlong

21 years ago
On 6/21/05, Ilia Alshanetsky <ilia@prohost.org> wrote:
> A large chunk of tests fails because PHP cannot run them, missing DB > connection. This is true for MySQLi tests and PDO_ODBC tests, the latter > requires a patch to prepare.inc, that only IBMers can apply.
^^^^ Well, technically IBM can't touch it either. Send me any patches and I'll be sure to apply them in the morning (BST), including that config.m4 patch that should probably find its way into beta 2 (sorry Andi; it slipped my mind). --Wez.

Andi Gutmans

21 years ago
What config.m4 patch? Is it crucial for Beta 2? I don't want to keep Beta 2 delayed indefinitely... It's only worth it if it's a critical bug. Andi At 06:30 PM 6/21/2005 -0400, Wez Furlong wrote:

Wez Furlong

21 years ago
It's a build related tweak, so it really does need to get in there; commited it this morning. --Wez. On 6/21/05, Andi Gutmans <andi@zend.com> wrote:

Nuno Lopes

21 years ago
I still have a problem in the configure script. With the package you post: checking for embedded SAPI library support... no ./configure: syntax error at line 9265: `;' unexpected checking that line, there is a problem indeed: header_path=sapi/embed/php_embed.h for header_file in ; do hp_hf="$header_path/$header_file" With latest cvs and with my autoconf/automake tools: checking for embedded SAPI library support... no ./configure: line 10030: syntax error near unexpected token `;' ./configure: line 10030: ` for header_file in ; do' This is on a Solaris 9 box. Nuno ----- Original Message -----

Jani Taskinen

21 years ago
Fixed in CVS. --Jani On Tue, 21 Jun 2005, Nuno Lopes wrote:
> I still have a problem in the configure script. > > With the package you post: > checking for embedded SAPI library support... no > ./configure: syntax error at line 9265: `;' unexpected > > checking that line, there is a problem indeed: > header_path=sapi/embed/php_embed.h > for header_file in ; do > hp_hf="$header_path/$header_file" > > > With latest cvs and with my autoconf/automake tools: > checking for embedded SAPI library support... no > ./configure: line 10030: syntax error near unexpected token `;' > ./configure: line 10030: ` for header_file in ; do' > > > This is on a Solaris 9 box. > > Nuno > > > ----- Original Message ----- >> Hi, >> >> You can reach Beta 2 at http://snaps.php.net/~andi/ >> If there are no surprise show stoppers I'll put it live tomorrow evening. >> >> Andi > >
-- Donate @ http://pecl.php.net/wishlist.php/sniper

Nuno Lopes

21 years ago
Thanks. It now compiles, but fails a couple of tests :) The report: http://mega.ist.utl.pt/~ncpl/php_test_results_20050621_1205.txt But at least the 'Zend/tests/unset_cv07.phpt' test is borked, because it expects errors in html, and it doesn't set the 'html_errors=1', and 'docref_root' and 'docref_ext' to "" in the INI section. Nuno ----- Original Message -----

Ilia A.

21 years ago
Hi Andi, The date extension does not appear to have been tagged and consequently not part of the release. Ilia Andi Gutmans wrote:

Davey

21 years ago
Andi, I have 15 failed tests on Ubuntu Hoary Full details: http://news.php.net/php.qa/25118 - Davey Andi Gutmans wrote:

Andrey Hristov

21 years ago
Andi Gutmans wrote:
> Hi, > > You can reach Beta 2 at http://snaps.php.net/~andi/ > If there are no surprise show stoppers I'll put it live tomorrow evening. > > Andi >
SuSE 9.1 (9.2 packages) ./configure --disable-cgi --enable-cli --with-mysql=/usr/local/mysql --with-mysqli=/usr/local/mysql/bin/mysql_config --with-sysvmsg --with-sysvsem --with-sysvshm --with-shmop --with-gd --with-png-dir=/usr --with-zlib-dir=/usr --with-gettext --with-gmp --with-jpeg-dir=/usr --enable-exif --with-mcrypt --with-mhash --enable-mbstring --enable-ftp --with-zlib=/usr --enable-pcntl --enable-sockets --with-freetype-dir=/usr ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 55 Exts tested : 29 --------------------------------------------------------------------- Number of tests : 1907 1161 Tests skipped : 746 ( 39.1%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 18 ( 0.9%) ( 1.6%) Tests passed : 1143 ( 59.9%) ( 98.4%) --------------------------------------------------------------------- Time taken : 229 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test for buffering in core functions with implicit flush off [tests/func/008.phpt] Bug #33389 (double free() when exporting a ReflectionClass) [tests/reflection/bug33389.phpt] Bug #32086 (strtotime don't work in DST) [ext/date/tests/bug32086.phpt] Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt] Bug #16069 [ext/iconv/tests/bug16069.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_output_handler() (Shift_JIS) [ext/mbstring/tests/mb_output_handler_shift_jis.phpt] mb_send_mail() test 5 (lang=Simplified Chinese) [ext/mbstring/tests/mb_send_mail05.phpt] mb_send_mail() test 6 (lang=Traditional Chinese) [ext/mbstring/tests/mb_send_mail06.phpt] mb_send_mail() test 7 (lang=Korean) [ext/mbstring/tests/mb_send_mail07.phpt] mysqli autocommit/commit/rollback [ext/mysqli/tests/014.phpt] Bug #29992 (foreach by reference corrupts the array) [ext/standard/tests/array/bug29992.phpt] various fputcsv() functionality tests [ext/standard/tests/file/fputcsv.phpt] strtotime() function [ext/standard/tests/time/002.phpt] Bug #27780 (strtotime(+1 xxx) returns a wrong date/time) [ext/standard/tests/time/bug27780.phpt] Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt] Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect) [ext/xml/tests/bug32001.phpt] ===================================================================== Andrey

Marcus Boerger

21 years ago
Hello Andi, current head with a few more exts all build in: ===================================================================== TIME END 2005-06-21 20:56:57 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 45 Exts tested : 52 --------------------------------------------------------------------- Number of tests : 2007 1686 Tests skipped : 321 ( 16.0%) -------- Tests warned : 1 ( 0.0%) ( 0.1%) Tests failed : 24 ( 1.2%) ( 1.4%) Tests passed : 1661 ( 82.8%) ( 98.5%) --------------------------------------------------------------------- Time taken : 951 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test for buffering in core functions with implicit flush off [tests/func/008.phpt] Bug #31177 (Memory leak) [Zend/tests/bug31177.phpt] Bug #32086 (strtotime don't work in DST) [ext/date/tests/bug32086.phpt] Test 5: HTML Test [ext/dom/tests/dom005.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] HTML input/output [ext/mbstring/tests/htmlent.phpt] mb_output_handler() (Shift_JIS) [ext/mbstring/tests/mb_output_handler_shift_jis.phpt] mb_send_mail() test 5 (lang=Simplified Chinese) [ext/mbstring/tests/mb_send_mail05.phpt] mb_send_mail() test 6 (lang=Traditional Chinese) [ext/mbstring/tests/mb_send_mail06.phpt] mb_send_mail() test 7 (lang=Korean) [ext/mbstring/tests/mb_send_mail07.phpt] mysqli connect [ext/mysqli/tests/003.phpt] mysqli bind_param/bind_result date [ext/mysqli/tests/020.phpt] set character set [ext/mysqli/tests/065.phpt] PDO_MySQL: PDO_FETCH_BOUND [ext/pdo_mysql/tests/pdo_016.phpt] PDO_MySQL: PDO::beginTransaction / PDO::rollBack [ext/pdo_mysql/tests/pdo_017.phpt] Bug #31422 No Error-Logging on SoapServer-Side [ext/soap/tests/bugs/bug31422.phpt] SOAP Interop Round2 base 004 (php/direct): echoString(entities) [ext/soap/tests/interop/Round2/Base/r2_base_004p.phpt] SOAP Interop Round2 base 004 (soap/direct): echoString(entities) [ext/soap/tests/interop/Round2/Base/r2_base_004s.phpt] SOAP Interop Round2 base 004 (php/wsdl): echoString(entities) [ext/soap/tests/interop/Round2/Base/r2_base_004w.phpt] Bug #31213 (Sideeffects caused by bug #29493) [ext/standard/tests/array/bug31213.phpt] Bug #22414 (passthru() does not read data correctly) [ext/standard/tests/file/bug22414.phpt] various fputcsv() functionality tests [ext/standard/tests/file/fputcsv.phpt] microtime() function [ext/standard/tests/time/001.phpt] (warn: system dependent) Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt] Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect) [ext/xml/tests/bug32001.phpt] ===================================================================== The two pdo mysql tests: PDO_MySQL: PDO_FETCH_BOUND [ext/pdo_mysql/tests/pdo_016.phpt] PDO_MySQL: PDO::beginTransaction / PDO::rollBack [ext/pdo_mysql/tests/pdo_017.phpt] fail because of some feature the mysql driver does not support. We don't check for that support right now simply because we can't right now. But i have an idea how to be able to do so which i would implement after 5.1 is out - say for 5.1.1 - if then still we have that *old* driver. Old because it uses the old mysql api and does not support all the new and fast features ext/mysqli can and does support. best regards marcus Tuesday, June 21, 2005, 4:30:54 AM, you wrote:
> Hi,
> You can reach Beta 2 at http://snaps.php.net/~andi/ > If there are no surprise show stoppers I'll put it live tomorrow evening.
> Andi
-- Best regards, Marcus mailto:mail@marcus-boerger.de

Magnus Maatta

21 years ago
Hi Andi, On Tuesday 21 June 2005 04.30, Andi Gutmans wrote:
> Hi, > > You can reach Beta 2 at http://snaps.php.net/~andi/ > If there are no surprise show stoppers I'll put it live tomorrow > evening.
Here are some test results from various systems: FreeBSD 5.4 alpha: Number of tests : 1907 984 Tests skipped : 923 ( 48.4%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 26 ( 1.4%) ( 2.6%) Tests passed : 958 ( 50.2%) ( 97.4%) http://php.novell.stoldgods.nu/freebsd_5.4_alpha_20050622_0544.txt FreeBSD 5.4 x86: Number of tests : 1907 984 Tests skipped : 923 ( 48.4%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 22 ( 1.2%) ( 2.2%) Tests passed : 962 ( 50.4%) ( 97.8%) http://php.novell.stoldgods.nu/freebsd_5.4_x86_20050622_0544.txt HP-UX 11.23 ia64: Number of tests : 1907 929 Tests skipped : 978 ( 51.3%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 43 ( 2.3%) ( 4.6%) Tests passed : 886 ( 46.5%) ( 95.4%) http://php.novell.stoldgods.nu/hp-ux_11.23_ia64_20050622_0544.txt HP-UX 11.23 pa-risc: Number of tests : 1907 984 Tests skipped : 923 ( 48.4%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 36 ( 1.9%) ( 3.7%) Tests passed : 948 ( 49.7%) ( 96.3%) http://php.novell.stoldgods.nu/hp-ux_11.23_pa-risc_20050622_0544.txt SuSE ES9 amd64: Number of tests : 1907 982 Tests skipped : 925 ( 48.5%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 11 ( 0.6%) ( 1.1%) Tests passed : 971 ( 50.9%) ( 98.9%) http://php.novell.stoldgods.nu/suse_es9_amd64_20050622_0544.txt SuSE ES9 ia64: Number of tests : 1907 989 Tests skipped : 918 ( 48.1%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 12 ( 0.6%) ( 1.2%) Tests passed : 977 ( 51.2%) ( 98.8%) http://php.novell.stoldgods.nu/suse_es9_ia64_20050622_0544.txt RedHat ES4 ia64: Number of tests : 1907 989 Tests skipped : 918 ( 48.1%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 10 ( 0.5%) ( 1.0%) Tests passed : 979 ( 51.3%) ( 99.0%) http://php.novell.stoldgods.nu/redhat_es4_ia64_20050622_0544.txt Tru64 5.1B alpha (without Jani's patch, bug #33433): Number of tests : 1907 982 Tests skipped : 925 ( 48.5%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 53 ( 2.8%) ( 5.4%) Tests passed : 929 ( 48.7%) ( 94.6%) http://php.novell.stoldgods.nu/tru64_5.1B_alpha_20050622_0544.txt Tru64 5.1B alpha (with Jani's patch, bug #33433): Number of tests : 1907 982 Tests skipped : 925 ( 48.5%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 29 ( 1.5%) ( 3.0%) Tests passed : 953 ( 50.0%) ( 97.0%) http://php.novell.stoldgods.nu/tru64_5.1B_alpha_20050622_0609.txt Magnus
-- Spouse, n.: Someone who'll stand by you through all the trouble you wouldn't have had if you'd stayed single.

Markus Lervik

21 years ago
On Tuesday 21 June 2005 05:30, Andi Gutmans wrote:
> Hi, > > You can reach Beta 2 at http://snaps.php.net/~andi/ > If there are no surprise show stoppers I'll put it live tomorrow evening.
../configure --with-apxs=/usr/local/apache/bin/apxs --with-openssl --with-curl --with-zlib --with-bz2 --enable-exif --with-pgsql=/usr --enable-soap --enable-wddx --without-sqlite --with-xsl --with-jpeg-dir=/usr/local/ --with-png-dir=/usr/local/ --without-mysql --with-iconv --with-xslt-sablot --with-gd --enable-debug ===================================================================== TIME END 2005-06-22 19:40:46 ===================================================================== TEST RESULT SUMMARY --------------------------------------------------------------------- Exts skipped : 59 Exts tested : 25 --------------------------------------------------------------------- Number of tests : 1907 1355 Tests skipped : 552 ( 28.9%) -------- Tests warned : 0 ( 0.0%) ( 0.0%) Tests failed : 12 ( 0.6%) ( 0.9%) Tests passed : 1343 ( 70.4%) ( 99.1%) --------------------------------------------------------------------- Time taken : 139 seconds ===================================================================== ===================================================================== FAILED TEST SUMMARY --------------------------------------------------------------------- Test for buffering in core functions with implicit flush off [tests/func/008.phpt] Bug #33389 (double free() when exporting a ReflectionClass) [tests/reflection/bug33389.phpt] Bug #31177 (Memory leak) [Zend/tests/bug31177.phpt] Bug #32086 (strtotime don't work in DST) [ext/date/tests/bug32086.phpt] Bug #22544 (TrueColor transparency in PNG images). [ext/gd/tests/bug22544.phpt] iconv stream filter [ext/iconv/tests/iconv_stream_filter.phpt] Bug #29992 (foreach by reference corrupts the array) [ext/standard/tests/array/bug29992.phpt] various fputcsv() functionality tests [ext/standard/tests/file/fputcsv.phpt] strtotime() function [ext/standard/tests/time/002.phpt] Bug #27780 (strtotime(+1 xxx) returns a wrong date/time) [ext/standard/tests/time/bug27780.phpt] Bug #26614 (CDATA sections skipped on line count) [ext/xml/tests/bug26614.phpt] Bug #32001 (xml_parse*() goes into infinite loop when autodetection in effect) [ext/xml/tests/bug32001.phpt] =====================================================================
-- Markus Lervik Chief Technology Officer Necora Systems Oy http://www.necora.fi