[PHP-DEV] Re: mysql_connect('localhost') should use tcp/ip instead of socket

2004-10-02 Thread Sara Golemon
> When using 'localhost' in mysql_connect(), php tries to > use a socket to connect to the mysql daemon. Is there > a way to force php to resolve the hostname of localhost, > maybe by patching some source file? The reason is that > a socket is not avaible because mysql and apache are > running in d

[PHP-DEV] mysql_connect('localhost') should use tcp/ip instead of socket

2004-10-02 Thread Roland Tapken
Hi! When using 'localhost' in mysql_connect(), php tries to use a socket to connect to the mysql daemon. Is there a way to force php to resolve the hostname of localhost, maybe by patching some source file? The reason is that a socket is not avaible because mysql and apache are running in differen

Re: [PHP-DEV] Variable fetch optimization

2004-10-02 Thread Thies C . Arntzen
before: 34.430 after: 20.126 do i need to say more? (if it really works, which i haven't tested yet) great andi! re, tc PS: i really think that the vm should be generated by a script! looking at what makes most of the patch i really think that we're making hacking the engine more complex than nee

[PHP-DEV] Imrpvement for array functions

2004-10-02 Thread Marcus Boerger
Hello internals, Hello Andi, here's another major speed improvement for array functions which is probably also valid for other functions, too. The point is that we have several functions not forcing parameters by reference because they not only accept variables but also parameters by value and