Re: [PHP-DEV] Problem connecting to mysql with latest windows snapshots

2009-10-29 Thread holografix
Hi Pierre Thanks for the tip. It works now. Both working and no-working box are Windows Vista 32 and both have Apache/2.2.13 (Win32) from apachelounge.com. There was some change since september 27th because both boxes are equal: same OS, same Apache and same Mysql version (5.1.40-community). T

Re: [PHP-DEV] Problem connecting to mysql with latest windows snapshots

2009-10-29 Thread Pierre Joye
hi, On Thu, Oct 29, 2009 at 10:57 PM, holografix wrote: > Hi > Thanks for answering. Same problem with > php-5.3.2-dev-nts-Win32-VC9-x86-200910281000. Forgot to say that in another > windows box there is a snapshot from September 27th and it is working > without problems. Please try again with c

Re: [PHP-DEV] Problem connecting to mysql with latest windows snapshots

2009-10-29 Thread holografix
Hi Thanks for answering. Same problem with php-5.3.2-dev-nts-Win32-VC9-x86-200910281000. Forgot to say that in another windows box there is a snapshot from September 27th and it is working without problems. From phpinfo() in that box Build Date Sep 27 2009 01:57:01 Compiler MSVC9 (Visual C+

Re: [PHP-DEV] Problem connecting to mysql with latest windows snapshots

2009-10-29 Thread Pierre Joye
hi, Can you try a snaps from yesterday please? But I doubt this fix affects windows. http://windows.php.net/downloads/snaps/ Cheers, On Thu, Oct 29, 2009 at 8:06 PM, holo wrote: > Hi > Don´t know if it is a bug but latest Windows snapshot fails to connect to > mysql. pdo_mysql gives SQLSTATE[H

[PHP-DEV] Problem connecting to mysql with latest windows snapshots

2009-10-29 Thread holo
Hi Don´t know if it is a bug but latest Windows snapshot fails to connect to mysql. pdo_mysql gives SQLSTATE[HY000] [2002] and even a simple mysql_connect("host", "user", "pass") fails with error [2002] (trying to connect via tcp://localhost:3306 Maybe it is related with bug #50023 ? Didn't try

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 17:37 +0100, Patrick ALLAERT a écrit : > Yes, but as far as a PHP extension may take hundreds time to develop > than a PHP function. > If the PHP version is fast enough, you will win a huge amount of time, > if not, you will only lose less than 1% of the overall dev time.

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 17:35 +0100, Patrick ALLAERT a écrit : > 2009/10/29 Samuel ROZE : > > Le jeudi 29 octobre 2009 à 14:03 +0300, Alexey Zakhlestin a écrit : > >> Usually, it is a good idea to write it in PHP at first and then port > >> to C, if performance is poor > > > > But I lose some ti

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Patrick ALLAERT
2009/10/29 Samuel ROZE : > Le jeudi 29 octobre 2009 à 14:03 +0300, Alexey Zakhlestin a écrit : >> Usually, it is a good idea to write it in PHP at first and then port >> to C, if performance is poor > > But I lose some time ! (Reposting with ML included.) Yes, but as far as a PHP extension may ta

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Le jeudi 29 octobre 2009 à 14:03 +0300, Alexey Zakhlestin a écrit : > Usually, it is a good idea to write it in PHP at first and then port > to C, if performance is poor But I lose some time ! -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/un

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Alexey Zakhlestin
On 29.10.2009, at 12:34, Samuel ROZE wrote: Hi, I'll have to develop a function like "parse_url", but "parse_referrer" which provides informations about the URL (the referrer): provider, keywords, type of search (search, cache, translation, ...), real page url... I don't really know how I'll

Re: [PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Ferenc Kovacs
On Thu, Oct 29, 2009 at 10:34 AM, Samuel ROZE wrote: > Hi, > > I'll have to develop a function like "parse_url", but "parse_referrer" > which provides informations about the URL (the referrer): provider, > keywords, type of search (search, cache, translation, ...), real page > url... > > I don't r

[PHP-DEV] PHP modules (pecl) and PHP codes (pear)

2009-10-29 Thread Samuel ROZE
Hi, I'll have to develop a function like "parse_url", but "parse_referrer" which provides informations about the URL (the referrer): provider, keywords, type of search (search, cache, translation, ...), real page url... I don't really know how I'll do that: using a .ini file like "get_browser" ?

Re: [PHP-DEV] Performance question about create_function

2009-10-29 Thread Karsten Dambekalns
Hi. On 26.10.09 15:25, Mathieu Suen wrote: > I am more asking about performance. I would have been ready to sacrifice performance if it saved money. But according to my quick tests, it does not. See http://tr.im/DrsH for details... oh, this is on PHP 5.3. Any other insights on this welcome! Reg