Re: [PHP-DEV] double val to long val conversion issue
If you find some interests on looking at the remaining ppc64 issues, I have uploaded the 16 failed tests results http://blog.famillecollet.com/public/reports/failures-5.4.11-ppc64.tgz (this is 5.4.11, but with ppc64 patches applied, 46 failures before) Remi. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] RFC mysqlnd.localhost_override
https://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. I believe it would make life easier on system administrators and distributions with varying defaults. Working patch at: https://github.com/php/php-src/pull/275 It is backward compatible by falling back to earlier behaviour if mysqlnd.localhost_override is not set Any comments welcome. -- Vennlig hilsen for Interhost AS Asbjørn Sannes konsulent www.interhost.no m...@interhost.no +47 21 42 01 12 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC mysqlnd.localhost_override
On Tue, 2013-02-12 at 12:51 +0100, Asbjørn Sannes wrote: https://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. The localhost behavior is already confusing enough. If you want to have such behavor for your system I suggest a plugin like described in http://schlueters.de/blog/archives/146-mysqlnd-plugins-for-PHP-in-practice.html but not as a core feature. johannes -- Johannes Schlüter, MySQL Engineering Team, Oracle -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC mysqlnd.localhost_override
2013/2/12 Asbjørn Sannes asbjorn.san...@interhost.no https://wiki.php.net/rfc/**mysqlnd_localhost_overridehttps://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. I believe it would make life easier on system administrators and distributions with varying defaults. Working patch at: https://github.com/php/php-**src/pull/275https://github.com/php/php-src/pull/275 It is backward compatible by falling back to earlier behaviour if mysqlnd.localhost_override is not set Any comments welcome. Hi, On the one side it seems, that PDO already support DSN-alias [1], that covers your use-case. On the other side I don't think it is useful to redefine a hostname (and 'localhost' is nothing else than a hostname), especially because it is only in this context, but in other contexts 'localhost' remains the same. localhost is localhost and everything else only leads to confusion. Regards, Sebastian [1] php.net/pdo.configuration#ini.pdo.dsn -- Vennlig hilsen for Interhost AS Asbjørn Sannes konsulent www.interhost.no m...@interhost.no +47 21 42 01 12 -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- github.com/KingCrunch
Re: [PHP-DEV] RFC mysqlnd.localhost_override
On Tue, Feb 12, 2013 at 12:51 PM, Asbjørn Sannes asbjorn.san...@interhost.no wrote: https://wiki.php.net/rfc/**mysqlnd_localhost_overridehttps://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. I believe it would make life easier on system administrators and distributions with varying defaults. Working patch at: https://github.com/php/php-**src/pull/275https://github.com/php/php-src/pull/275 It is backward compatible by falling back to earlier behaviour if mysqlnd.localhost_override is not set Any comments welcome. Hi, I didn't tested it, but wouldn't mysql.default_host and sql.safe_mode already provide a way to override the connect values if required? -- Ferenc Kovács @Tyr43l - http://tyrael.hu
Re: [PHP-DEV] RFC mysqlnd.localhost_override
Am 12.02.2013 12:51, schrieb Asbjørn Sannes: https://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. localhost meaning is a MySQL legacy (http://dev.mysql.com/doc/refman/5.6/en/connecting.html). I am no big fan of redefining the meaning of a standard MySQL legacy setting at library level as it will confuse many users. Why are the existing API level configuration settings mysqli.default_socket respectively pdo_mysql.default_socket not enough? php -d mysqli.default_socket=/tmp/mysql56.sock -r '$mysqli = new mysqli(localhost, root); var_dump($mysqli);' Ulf -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC mysqlnd.localhost_override
Hi, On 02/12/2013 12:51 PM, Asbjørn Sannes wrote: https://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. I am definitely -1 localhost to be redefined to TCP. It is known since ages that for MySQL localhost on *nix is resolved to Unix Socket. I suppose that actual global variable is not needed, as no mysql extension, to my knowledge uses one for such a thing. mysqli has an ini option default_socket, but it is used when NULL or is provided as socket name, when doing the connect. All three extensions know how to use --with-mysql-sock=DIR MySQL/MySQLi/PDO_MYSQL: Location of the MySQL unix socket pointer. If unspecified, the default locations are searched So, a possible solution is to enable mysqlnd to use this configure setting too, thus allowing non-patched sources to be built by the distributions. I believe it would make life easier on system administrators and distributions with varying defaults. Working patch at: https://github.com/php/php-src/pull/275 It is backward compatible by falling back to earlier behaviour if mysqlnd.localhost_override is not set Any comments welcome. Best, Andrey -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] RFC mysqlnd.localhost_override
Am 12.02.2013 13:11, schrieb Johannes Schlüter: On Tue, 2013-02-12 at 12:51 +0100, Asbjørn Sannes wrote: https://wiki.php.net/rfc/mysqlnd_localhost_override I propose we introduce a new option called mysqlnd.localhost_override which enables a system administrator or php distributor to configure how localhost should be overridden. The localhost behavior is already confusing enough. If you want to have such behavor for your system I suggest a plugin like described in http://schlueters.de/blog/archives/146-mysqlnd-plugins-for-PHP-in-practice.html but not as a core feature. Abusing PECL/mysqlnd_ms is also possible... nixnutz@linux-0v4u:~/php-src/pecl/mysqlnd_ms/trunk/examples cat s1.json { localhost: { master: { alias_name: { host: 192.168.2.28, port: 3306, db: test } }, slave : {} } } nixnutz@linux-0v4u:~/php-src/pecl/mysqlnd_ms/trunk/examples php -d mysqlnd_ms.enable=1 -d mysqlnd_ms.disable_rw_split -d mysqlnd_ms.force_config_usage=1 -d mysqlnd_ms.config_file=s1.json -r '$mysqli = new mysqli(localhost, root); var_dump($mysqli-query(SELECT 1)-fetch_assoc()); var_dump($mysqli-query(DROP TABLE IF EXISTS test)); var_dump($mysqli-host_info);' array(1) { [1]= string(1) 1 } bool(true) string(23) 192.168.2.28 via TCP/IP Ulf -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution
hi Zeev, On Tue, Jan 29, 2013 at 9:03 AM, Zeev Suraski z...@zend.com wrote: Any news on this front? It's becoming harder and harder to consider it in 5.5 if we have to wait longer. There are enough volunteers to help, open it now :) Cheers, Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution
We're trying to do exactly that. It's taking a bit longer than expected but I'm hopeful we'll open the initial code base tomorrow. Zeev -Original Message- From: Pierre Joye [mailto:pierre@gmail.com] Sent: Tuesday, February 12, 2013 3:48 PM To: Zeev Suraski Cc: PHP internals Subject: Re: [PHP-DEV] [RFC] Integrating Zend Optimizer+ into the PHP distribution hi Zeev, On Tue, Jan 29, 2013 at 9:03 AM, Zeev Suraski z...@zend.com wrote: Any news on this front? It's becoming harder and harder to consider it in 5.5 if we have to wait longer. There are enough volunteers to help, open it now :) Cheers, Pierre -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Tokyo/Kyoto Cabinet support in DBA extension
Just wondering if anyone can tell me if Kyoto Cabinet support will be added to the DBA extension in the near future at all. I noticed this thread ( http://marc.info/?l=php-internalsm=133389756213354w=2http://grokbase.com/t/php/php-internals/119yvjcjwr/tokyo-kyoto-cabinet-in-5-4) which mentions that there has been support added but looking in the DBA extension README file in the source code I can't see any mention of Tokyo/Kyoto Cabinet, just the qdbm predecessor. Cheers for any help :)
Re: [PHP-DEV] Tokyo/Kyoto Cabinet support in DBA extension
On Tue, Feb 12, 2013 at 11:08 AM, Chris MacPherson ch...@kombine.co.uk wrote: Just wondering if anyone can tell me if Kyoto Cabinet support will be added to the DBA extension in the near future at all. I noticed this thread ( http://marc.info/?l=php-internalsm=133389756213354w=2http://grokbase.com/t/php/php-internals/119yvjcjwr/tokyo-kyoto-cabinet-in-5-4) which mentions that there has been support added but looking in the DBA extension README file in the source code I can't see any mention of Tokyo/Kyoto Cabinet, just the qdbm predecessor. Tokyo Cabinet support shipped with PHP 5.4.0. Enable it by compiling PHP with --with-tcadb -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Tokyo/Kyoto Cabinet support in DBA extension
Cool thanks for the info, couldn't find any mention of this anywhere. Great news though :) On 12 February 2013 19:53, Hannes Magnusson hannes.magnus...@gmail.comwrote: On Tue, Feb 12, 2013 at 11:08 AM, Chris MacPherson ch...@kombine.co.uk wrote: Just wondering if anyone can tell me if Kyoto Cabinet support will be added to the DBA extension in the near future at all. I noticed this thread ( http://marc.info/?l=php-internalsm=133389756213354w=2 http://grokbase.com/t/php/php-internals/119yvjcjwr/tokyo-kyoto-cabinet-in-5-4 ) which mentions that there has been support added but looking in the DBA extension README file in the source code I can't see any mention of Tokyo/Kyoto Cabinet, just the qdbm predecessor. Tokyo Cabinet support shipped with PHP 5.4.0. Enable it by compiling PHP with --with-tcadb -Hannes