Re: [PHP-DEV] exec()'s output array overwritten in PHP 5

2004-07-02 Thread Daniel Convissor
Hi: Filed a bug about this: http://bugs.php.net/bug.php?id=28999 --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718

Re: [PHP-DEV] Re: Mbedthis AppWeb

2004-07-02 Thread Wez Furlong
PECL would be the ideal place for it; win32 build will already correctly build SAPI from a pecl checkout; unix build could do with a bit of a tweak for that though. (volunteers welcome ;-) --Wez. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/un

[PHP-DEV] Mem leak fix

2004-07-02 Thread Andi Gutmans
Hi, As Sterling and others have mentioned, PHP 5 HEAD was leaking badly. I just commited a fix which I hope works. Can you please check it out and let me know if there are any problems/crashes? Andi -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/

[PHP-DEV] Re: Mbedthis AppWeb

2004-07-02 Thread Michael O'Brien
Sara, Thanks for the quick feedback. I'll check out the coding standards and cross that off the list first. Regarding the applicability, we address two markets that may be of strong interest to the broader market. When we say "embedded" we mean embedded in devices or applications. We find that o

[PHP-DEV] [PATCH] destructors called after module shutdown

2004-07-02 Thread Florian Schaper
Currently object's destructors are called in the zend_deactivate function in main.c after the modules request_shutdown_func has been called (main.c - php_call_shutdown_functions(void); ) . Since no code should be executed after module request shutdown unexpected behaviour might occur like the one

[PHP-DEV] Re: Mbedthis AppWeb

2004-07-02 Thread Sara Golemon
> We've been supporting PHP4 and now PHP5 for a while and have a PHP handler > for our embedded web server. We are seeing growing interest and have quite > a few folks using this solution. > > Our goal has been to bring PHP effectively to embedded devices. Many > devices have larger memories (e.g.

[PHP-DEV] SAPI: Mbedthis AppWeb

2004-07-02 Thread Michael O'Brien
We've been supporting PHP4 and now PHP5 for a while and have a PHP handler for our embedded web server. We are seeing growing interest and have quite a few folks using this solution. Our goal has been to bring PHP effectively to embedded devices. Many devices have larger memories (e.g. industrial

Re: [PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread Marcus Boerger
Hello l0t3k, never ever mix static and non static methods! The only reason this is possible is for having BC for old bullshit concepts. Apart from that use ZEND_ACC_ALLOW_STATIC if you really want that behavior but before you do think twice and again and then again if there is no correct way... m

[PHP-DEV] small patch for implode() function

2004-07-02 Thread Alexander Valyalkin
there is such code in the php_implode() function: [snip] while (zend_hash_get_current_data_ex(Z_ARRVAL_P(arr), (void **) &tmp, &pos) == SUCCESS) { SEPARATE_ZVAL(tmp); convert_to_string(*tmp); [snip

Re: [PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread Andrey Hristov
Quoting l0t3k <[EMAIL PROTECTED]>: > in my extension, i have a class which has methods which work slightly > differently depending on whether or not they are called statically. > as an example : > >$original = new UnicodeString("HELLO WORLD","utf8"); >$lower = UnicodeString::toLowerCase($o

Re: [PHP-DEV] php.net on PHP5

2004-07-02 Thread Lester Caine
(been laid low for a few days) Wez Furlong wrote: sqlite is compiled statically into PHP 5. I have tried to get SQLite running on PHP5 / Windows but for some reason it's built with links to the PHP4 files. Anybody got a PHP5 version for Windows ? The whole engine? If it is then that is code I can

[PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread l0t3k
in my extension, i have a class which has methods which work slightly differently depending on whether or not they are called statically. as an example : $original = new UnicodeString("HELLO WORLD","utf8"); $lower = UnicodeString::toLowerCase($original);/* returns a new copy */ $lower

[PHP-DEV] Please confirm behaviour of ZEND_ACC_STATIC

2004-07-02 Thread l0t3k
in my extension, i have a class which has methods which work slightly differently depending on whether or not they are called statically. as an example : $original = new UnicodeString("HELLO WORLD","utf8"); $lower = UnicodeString::toLowerCase($original);/* returns a new copy */ $lower

Re: [PHP-DEV] Zend API: Correct way to terminate entire request from within function

2004-07-02 Thread Cris H
--- Wez Furlong <[EMAIL PROTECTED]> wrote: > Looking at the opcode handler for exit, it looks > like you can call > zend_bailout() to terminate the request. > > Note that since exit is an opcode and not a > function, > call_user_function won't work. Thank you very much. A similar thought occurre

Re: [PHP-DEV] Zend API: Correct way to terminate entire request from within function

2004-07-02 Thread Wez Furlong
Looking at the opcode handler for exit, it looks like you can call zend_bailout() to terminate the request. Note that since exit is an opcode and not a function, call_user_function won't work. --Wez. On Fri, 2 Jul 2004 10:00:32 +0100 (BST), Cris H <[EMAIL PROTECTED]> wrote: > I'm trying to ascer

[PHP-DEV] Zend API: Correct way to terminate entire request from within function

2004-07-02 Thread Cris H
Hi all, I've been working on an extension which contains a "debugging function". This function uses zend_printf() to print a list of extension-specific information / help instructions to the screen, in a similar manner to phpinfo(). It was pointed out to me that this might be a useful function to