Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread Wez Furlong
On Tue, 23 Nov 2004 08:28:03 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The bottom line, is that in PHP there is no simple and consistent > cross-platform way to create a detached child process. > Being a system programmer, this shouldn't be too much of an obstacle > for me, but at thi

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread Wez Furlong
On Mon, 22 Nov 2004 18:30:34 -0800, Jed Smith <[EMAIL PROTECTED]> wrote: > Sure it does, it's just a different model. > http://msdn.microsoft.com/";> > ... That's not fork() ;) > If it will, CreateProcess() will work, like I said. Look into What do you think proc_open() does? :) > http://pecl.p

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread Jed Smith
[EMAIL PROTECTED] wrote: Unfortunately no. On win32 for instance, fork() doesn't exist at all. Sure it does, it's just a different model. http://msdn.microsoft.com/";> One of the largest areas of difference is in the process model. UNIX has fork; Win32 does not. Depending on the use of fork and th

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

2004-11-22 Thread Andi Gutmans
I understand the illusion part. With foreach() I can see the gain and how it improves readability and the code. But with count() I just don't see it. Maybe because the foreach() alternative is not only $obj->foreach() but something much uglier :) So yeah, I think there's quite a substantial dif

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

2004-11-22 Thread Christian Schneider
Andi Gutmans wrote: Why can't people who implement the Countable interface use $obj->count() instead of count($obj)? I guess the idea of SPL is hide the difference between real arrays and some homebrewed containers. The question is how much you want to maintain this illusion, i.e. what operation

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

2004-11-22 Thread Andi Gutmans
I guess I'm missing something basic. Why can't people who implement the Countable interface use $obj->count() instead of count($obj)? I just don't see any reason to overload count() in this scenario. It does set a precendent to overload all of array.c and as I mention, there is no reason why cou

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2(PHP_5_0) / zend_execute_API.c php-src NEWS

2004-11-22 Thread Andi Gutmans
At 09:18 AM 11/20/2004 -0500, Wez Furlong wrote: Is this the commit that prompted Rob to adjust the COM extension today? If so, we've broken binary compat within the 5.0.x series by changing the method signature; somebody needs to "fix" a whole bunch of OO extensions now. (either that or I'm missin

[PHP-DEV] Re: Segfault in PHP_5_0 and HEAD

2004-11-22 Thread Sebastian Bergmann
Sebastian Bergmann wrote: > As with most segfaults I discover while working on PHPUnit2 I could not > reproduce it with a small standalone script. Here is the correct stacktrace. -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4

[PHP-DEV] Segfault in PHP_5_0 and HEAD

2004-11-22 Thread Sebastian Bergmann
The following code from PHPUnit2 causes a segfault with PHP_5_0 and HEAD. public function run(PHPUnit2_Framework_Test $test) { $this->currentTest = $test; $this->startTest($test); set_error_handler(array($this, 'errorHandler')); try { $test->runB

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread Christian Schneider
Wez Furlong wrote: Will "app &" work do what you want on unix and "start app" do what you want on win32? On unix you probably want to do something like "nohup app /dev/null 2&1 &" to completely detach. - Chris -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://ww

Re: [PHP-DEV] php_iconv_string export

2004-11-22 Thread Rasmus Lerdorf
Please do. I'm going to need it too at some point. -Rasmus On Mon, 22 Nov 2004, Derick Rethans wrote: > Hello! > > While working on the translit extension I am in need of using the iconv > functions which are not exported at all from our extensions. > > Does somebody object if I make it exporta

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread [EMAIL PROTECTED]
I've tried it all, actually, on Win32. "start app" will start another console window for console applications, and wait until it closes. for windowed applications it would wait for the application to finish. same with "start /b app". I would write an implementation myself, but I'm not familiar wi

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread Wez Furlong
On Mon, 22 Nov 2004 10:47:10 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Unfortunately no. > On win32 for instance, fork() doesn't exist at all. > > There is a need for a cross-platform unified interface. I suspect that such a thing is a myth in the case of PHP; we already have cruft fo

[PHP-DEV] php_iconv_string export

2004-11-22 Thread Derick Rethans
Hello! While working on the translit extension I am in need of using the iconv functions which are not exported at all from our extensions. Does somebody object if I make it exportable in all branches? regards, Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org

Re: [PHP-DEV] creating detached processes in PHP

2004-11-22 Thread [EMAIL PROTECTED]
Unfortunately no. On win32 for instance, fork() doesn't exist at all. There is a need for a cross-platform unified interface. P.S. please always "reply to all" On Mon, 22 Nov 2004 02:38:41 -0600, Jeremy Johnstone <[EMAIL PROTECTED]> wrote: > If I am following you right, wouldn't a fork() followe

[PHP-DEV] PHP 5 Bug Summary Report

2004-11-22 Thread internals
PHP 5 Bug Database summary - http://bugs.php.net Num Status Summary (436 total including feature requests) ===[*Compile Issues]== 28103 Open During ./configure you get png error instead of iodbc 28700 Open yaz recode conflic