[PHP-DEV] dl() usage for cli php5

2004-12-31 Thread Alan Knowles
I'm getting segfaults at shutdown when using dl() with my extension - works perfectly if it's in php.ini (or if I run when compiled with --enable-debug a) is this a known issue? b) is it fixable for cli usage? I'm guessing this is because modules are destroyed before the objects that they crea

[PHP-DEV] possible bug with static variables?

2004-12-31 Thread Greg Beaver
Hi, I have discovered some odd behavior with static variables, and wonder if it is a bug. In both PHP4 and PHP5, the code below prints: not registered, class pear_common not registered, class archive_tar I.e., because the PEAR function is called with $this->PEAR(), the static variable is reset

[PHP-DEV] Re: Hi there !

2004-12-31 Thread Wez Furlong
[EMAIL PROTECTED] wrote: The actual question/s : The code below is some simple example, what I am interesting in, is does zend eval work safe in multi threading environment and do we need to write some special code into php extensions to achiev mt safety. 1) Php extensions have have an s

[PHP-DEV] [PATCH] Get the internet family of an address

2004-12-31 Thread Nicolas Bérard Nault
Hi, URL: http://www.lapsus-engineer.org/inet_getaddrfam.diff The new function (int inet_getaddrfam(address)) will return AF_INET or AF_INET6, depending of the family of the address. If it does not seem to be a correct address, FALSE is returned. All sorts of comments will be appreciated. Thank

Re: [PHP-DEV] generate ltmain.sh?

2004-12-31 Thread Gareth Ardron
Rasmus Lerdorf wrote: I get libs/libphp4 without an extension created. Same for shared modules. This happens on both FreeBSD and Linux with libtool-1.5.2. Removing the bundled ltmain.sh and running libtoolize --force it fixes it. I tracked it down to that shared_ext not being defined in our ltma