The 5.2.0 release is turning to be quite an adventure, we can't seem to get the bloody thing out. Hopefully RC6 will be the last release candidate, but given that I've said that about the last 3RCs, who knows...
This said, the delays were not entirely unproductive and every time more bugs were fixed and language was generally made better, so it is not all bad. The release snapshots is available here: http://downloads.php.net/ilia/php-5.2.0RC6.tar.bz2 (md5: 5a146c08f85d8535c76fe6219281a06e) and win32 binaries will be made available shortly be Edin.
As always I'd like to ask everyone to give this release a try to make sure no regressions were introduced and to make sure that your applications can still work with this release. If no major issues are uncovered, maybe, just maybe 5.2.0 in a week.
Probably for 5.2.1, however I may wait with the upgrade until the 2nd itteration of the text search (a much faster one) is deployed. This means we may wait until 3.3.9 before synchronizing the bundled lib.
it seems that RC6 has some slowdown in processing time compared to older RC's. My testpage renders now in an average of 127ms compared to 120ms in older RC's (i tried from RC3 on without APC cache).
The test page pokes heavily arround with DOM/XSL stuff. Time measurement method is getting the time in microseconds at script start / end and reporting the difference.
Obviously, the difference isn't really dramatic, but is there a compile time / run time optimizing option which I had to enable especially in RC6 or is it just of internal changes in PHP which I can't influence?
richard@hippo:~/tarbs/php-5.1.0RC6$ cat /proc/version
Linux version 2.6.8-2-686-smp (email@example.com) (gcc version 3.3.5 (Debian 1:3.3.5-13)) #1SMP Tue Aug 16 12:08:30 UTC 2005
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x2a): In function `zm_startup_pdo_mysql':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:78: undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x4c):/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:79: undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x6e):/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:80: undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x90):/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:81: undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0xb2):/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:82: undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0xde): In function `zm_shutdown_pdo_mysql':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:92: undefined reference to `php_pdo_unregister_driver'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0xc4): In function `zm_startup_pdo_mysql':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/pdo_mysql.c:84: undefined reference to `php_pdo_register_driver'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x5f4): In function `_pdo_mysql_error':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/mysql_driver.c:109: undefined reference to `php_pdo_get_exception'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x875): In function `mysql_handle_preparer':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/mysql_driver.c:178: undefined reference to `pdo_parse_params'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0xb08): In function `pdo_mysql_last_insert_id':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/mysql_driver.c:259: undefined reference to `php_pdo_int64_to_str'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0xee2): In function `pdo_mysql_handle_factory':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/mysql_driver.c:412: undefined reference to `php_pdo_parse_data_source'
ext/pdo_mysql/.libs/mysql_statement.o(.text+0x907): In function `pdo_mysql_stmt_param_hook':
/home/richard/tarbs/php-5.1.0RC6/ext/pdo_mysql/mysql_statement.c:338: undefined reference to `pdo_raise_impl_error'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
My bad: --enable-pdo=shared and --with-pdo-mysql are incompatible. php5.1.6 catches this error at ./configure time.
Managed to get RC6 running but my code fails when it tries to call pdo->setAttribute(PDO::ATTR_EMULATE_PREPARES, true); (worked in 5.1.x, still documented as valid in the manual although that also seems to contain a lot of 5.2.0 stuff now.)
Any idea if __toString is supposed to work if called as print("$myObj"); ?
It works when called as print($myObj);