[PHP-DEV] php_module_startup: more than one additional_module impossible?

2004-09-11 Thread Norbert Wagner
Hi, I need to load more than one additional_module in my self-made SAPI-module. Looking around at the php/zend-API, I thought that the php_module_startup(...) function provides such functionality: int php_module_startup(sapi_module_struct *sf, zend_module_entry *additional_modules, uint

Re: [PHP-DEV] php_module_startup: more than one additional_module impossible?

2004-09-11 Thread Wez Furlong
You might be right about that. The current prototype does allow this though: zend_module_entry modules[2] = { { ... first module ... }, { ... second module ... } }; php_module_startup(sapimodule, modules, sizeof(modules)/sizeof(modules[0])); There are other ways to fire up additional modules

[PHP-DEV] Why zend_shutdown_constants not called from executor_globals_dtor?

2004-09-11 Thread Kamesh Jayachandran
Hi All, I could see in executor_globals_ctor calling zend_startup_constants which allocates one hash table. Later to free this hash table zend_shutdown_constants is called from zend_shutdown rather than executor_globals_dtor. This may not cause a memory leak in Non ZTS environment where

[PHP-DEV] Re: [PATCH] zend_operators DVAL_TO_LVAL fix

2004-09-11 Thread Ard Biesheuvel
Joe Orton wrote: The DVAL_TO_LVAL macro is quite weird, I'm not sure exactly what it's supposed to be doing but it probably isn't doing it. If the integral part of d is outside the range of a long, the conversion has undefined behaviour by the C99 standard; an explicit cast makes no difference

[PHP-DEV] Re: [PATCH] zend_operators DVAL_TO_LVAL fix

2004-09-11 Thread Ard Biesheuvel
Joe Orton wrote: The DVAL_TO_LVAL macro is quite weird, I'm not sure exactly what it's supposed to be doing but it probably isn't doing it. If the integral part of d is outside the range of a long, the conversion has undefined behaviour by the C99 standard; an explicit cast makes no difference

Re: [PHP-DEV] unserialize() and pear

2004-09-11 Thread Nuno Lopes
Hello Marcus, PHP prints an error for every file in /usr/local/lib/php/.registry One of those files: http://testes.aborla.net/pear.reg prints: Notice: unserialize(): Error at offset 121 of 8404 bytes in test.php on line 5 Nuno - Original Message - Hello Nuno, can you sent me he code it

[PHP-DEV] win32 build broken

2004-09-11 Thread Nuno Lopes
Hello, It seems that the php 5 win32 build is broken. From http://snaps.php.net/win32/snapshot.log : Enabling extension ..\pecl\db [shared] c:\php4build\snap\configure.js(3879, 1) Microsoft JScript runtime error: 'PHP_DBDO' is undefined Nuno -- PHP Internals - PHP Runtime Development Mailing

Re: [PHP-DEV] unserialize() and pear

2004-09-11 Thread Greg Beaver
Nuno Lopes wrote: Hello Marcus, PHP prints an error for every file in /usr/local/lib/php/.registry One of those files: http://testes.aborla.net/pear.reg prints: Notice: unserialize(): Error at offset 121 of 8404 bytes in test.php on line 5 This file is truncated, please verify that it indeed does

Re: [PHP-DEV] unserialize() and pear

2004-09-11 Thread Nuno Lopes
Nuno Lopes wrote: Hello Marcus, PHP prints an error for every file in /usr/local/lib/php/.registry One of those files: http://testes.aborla.net/pear.reg prints: Notice: unserialize(): Error at offset 121 of 8404 bytes in test.php on line 5 This file is truncated, please verify that it indeed does

Re: [PHP-DEV] win32 build broken

2004-09-11 Thread Sebastian Bergmann
Nuno Lopes wrote: It seems that the php 5 win32 build is broken. Should be fixed. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP Internals - PHP Runtime Development Mailing List To

[PHP-DEV] Re: cvs: php-src /ext/standard array.c ZendEngine2 zend_operators.c zend_operators.h

2004-09-11 Thread Sebastian Bergmann
Derick Rethans wrote: derickSat Sep 11 10:22:36 2004 EDT Modified files: /ZendEngine2 zend_operators.c zend_operators.h /php-src/ext/standard array.c Log: - MFB: Added the sorting flag SORT_LOCALE_STRING to the sort() functions

Re: [PHP-DEV] __set __get __call in internal class

2004-09-11 Thread Frédéric LECOINTRE
hello Marcus, well, i knew for zend_try but i hoped that they could do something for user exception. ( i saw a piece of code in soap.c) unfortunately, my problem is the same: catch user exception or at least, know if an exception is thrown. I read zend_exception.c line by line ( word by word :)