[PHP-DEV] [PATCH] proc_open() invokes unnecessary instances of CMD.EXE on Win32 for *each* started process, even if it's not necessary

2004-11-14 Thread [EMAIL PROTECTED]
Here's a patch, which logic is pretty simple: 1st try to invoke without CMD.EXE (this will work for executable files), and if that fails - invoke with CMD.EXE. Shouldn't be too much of a burden for the CPU, but saves memory. It also allows to kill processes later, which wouldn't happen if CMD.EXE

Re: [PHP-DEV] [PATCH] pg_result_error_field

2004-11-14 Thread Antony Dovgal
On Sun, 14 Nov 2004 00:22:35 +0300 Илья Кантор <[EMAIL PROTECTED]> wrote: > > In many situations one needs to know what caused the error > And probably receive additional information about it > (e.g which foreign key constraint failed). > > I attach tiny patches giving access to > PQresultErro

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Sean Coates
http://php.net/pcntl S overight wrote: Hello What about fork() in php ? I have tried to understand c language yesterday, and I have write that in /ext/standard/basic_functions.c: PHP_FUNCTION(php_fork){ fork(); } (and a few lines to decalare this function) And it's work ! Now I can fork my ph

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Derick Rethans
On Sun, 14 Nov 2004, overight wrote: > Hello > > What about fork() in php ? http://nl.php.net/pcntl_fork Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Paul G
- Original Message - From: <[EMAIL PROTECTED]> To: "Derick Rethans" <[EMAIL PROTECTED]> Cc: "overight" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, November 14, 2004 10:55 AM Subject: Re: [PHP-DEV] php_fork(); > Can't it be emulated? the semantics of fork() and CreateProcess(

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Andrey Hristov
Try pcntl_fork() and the ext/pcntl extension (*nix only but I heard someting about cygphp which uses Cygwin and has ext/pcntl for windows). Andrey overight wrote: Hello What about fork() in php ? I have tried to understand c language yesterday, and I have write that in /ext/standard/basic_functi

Re: [PHP-DEV] php_fork();

2004-11-14 Thread [EMAIL PROTECTED]
Any chance to see fork() support for Win32 in the near future? On Sun, 14 Nov 2004 16:48:14 +0100 (CET), Derick Rethans <[EMAIL PROTECTED]> wrote: > On Sun, 14 Nov 2004, overight wrote: > > > Hello > > > > What about fork() in php ? > > http://nl.php.net/pcntl_fork > > Derick > > -- > Derick

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Andrey Hristov
But as you said support for spoon() can be added. :-) Andrey Steph wrote: It's not easy to support something that doesn't exist... - Original Message - From: <[EMAIL PROTECTED]> To: "Derick Rethans" <[EMAIL PROTECTED]> Cc: "overight" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday,

Re: [PHP-DEV] [PATCH] pg_result_error_field

2004-11-14 Thread Marcus Boerger
Hello Antony, Sunday, November 14, 2004, 2:15:07 PM, you wrote: > On Sun, 14 Nov 2004 00:22:35 +0300 > Илья Кантор <[EMAIL PROTECTED]> wrote: >> >> In many situations one needs to know what caused the error >> And probably receive additional information about it >> (e.g which foreign key const

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Steph
It's not easy to support something that doesn't exist... - Original Message - From: <[EMAIL PROTECTED]> To: "Derick Rethans" <[EMAIL PROTECTED]> Cc: "overight" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Sunday, November 14, 2004 5:49 PM Subject: Re: [PHP-DEV] php_fork(); > Any chanc

Re: [PHP-DEV] php_fork();

2004-11-14 Thread [EMAIL PROTECTED]
Can't it be emulated? On Sun, 14 Nov 2004 16:53:53 +0100 (CET), Derick Rethans <[EMAIL PROTECTED]> wrote: > On Sun, 14 Nov 2004, [EMAIL PROTECTED] wrote: > > > Any chance to see fork() support for Win32 in the near future? > > No, win32 has no such concept. > > > > Derick > > -- > Derick R

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Derick Rethans
On Sun, 14 Nov 2004, [EMAIL PROTECTED] wrote: > Any chance to see fork() support for Win32 in the near future? No, win32 has no such concept. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubsc

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Derick Rethans
On Sun, 14 Nov 2004, [EMAIL PROTECTED] wrote: > Can't it be emulated? The *concept* doesn't exist on Windows, so no. Derick -- Derick Rethans http://derickrethans.nl | http://ez.no | http://xdebug.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.p

Re: [PHP-DEV] php_fork();

2004-11-14 Thread [EMAIL PROTECTED]
The *concept* of copying the address space of a process to another process doesn't exist? How does the Win32 loader work? Btw, I'm not aware of if the PHP engine is multithreaded, but if it's possible to run multiple scripts in multiple threads of the same process, that could do the trick. On Sun

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Derick Rethans
On Sun, 14 Nov 2004, [EMAIL PROTECTED] wrote: > The *concept* of copying the address space of a process to another > process doesn't exist? How does the Win32 loader work? No clue - it's not open source you know. But it does NOT fork something. > Btw, I'm not aware of if the PHP engine is multit

[PHP-DEV] php_fork();

2004-11-14 Thread overight
Hello What about fork() in php ? I have tried to understand c language yesterday, and I have write that in /ext/standard/basic_functions.c: PHP_FUNCTION(php_fork){ fork(); } (and a few lines to decalare this function) And it's work ! Now I can fork my php scripts with the php_fork() function

Re: [PHP-DEV] php_fork();

2004-11-14 Thread overight
Ok, thanks to all :) Andrey Hristov a écrit : Try pcntl_fork() and the ext/pcntl extension (*nix only but I heard someting about cygphp which uses Cygwin and has ext/pcntl for windows). Andrey overight wrote: Hello What about fork() in php ? I have tried to understand c language yesterday, and I

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Aaron Wormus
Derick Rethans wrote: On Sun, 14 Nov 2004, [EMAIL PROTECTED] wrote: Can't it be emulated? The *concept* doesn't exist on Windows, so no. Perl emulates it pretty nicely on windows http://www.perldoc.com/perl5.8.4/pod/perlfork.html Aaron

Re: [PHP-DEV] php_fork();

2004-11-14 Thread [EMAIL PROTECTED]
My point exactly. However, I *know* that perl emulates it using threads. But, when thinking of it, Cygwin emulates fork() by copying the address space of a process to a newly created process. It's a bit slow, but at least it works. Guess getting into the kernel mode driver land to create *actual*

[PHP-DEV] Re[2]: [PECL-CVS] cvs: pecl /pdf package.xml pdf.c pdf.dsp pdf4.h php_pdf.h php_pdf4.h

2004-11-14 Thread Derick Rethans
On Sun, 14 Nov 2004, Rainer Schaaf wrote: > Hello Derick, > > Sunday, November 14, 2004, 9:26:13 PM, you wrote: > > > On Sun, 14 Nov 2004, Rainer Schaaf wrote: > > >> rjsSun Nov 14 15:20:30 2004 EDT > >> > >> Added files: > >> /pecl/pdf pdf4.h php_pdf4.h > > > Why did yo

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Wez Furlong
On Sun, 14 Nov 2004 22:05:16 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My point exactly. > However, I *know* that perl emulates it using threads. Which we don't support. > But, when thinking of it, Cygwin emulates fork() by copying the > address space of a process to a newly created

Re: [PHP-DEV] [PATCH] proc_open() invokes unnecessary instances of CMD.EXE on Win32 for *each* started process, even if it's not necessary

2004-11-14 Thread Wez Furlong
I can see the need for this kind of thing, but I'm not so sure about the implementation. It's also important to consider backward compatibility and security before adjusting this function. Needs some brains on it; mine is currently occupied, but I'll try and think on it over the next week. --Wez.

Re: [PHP-DEV] php_fork();

2004-11-14 Thread [EMAIL PROTECTED]
Heh, ActiveState did it after they received funding from Microsoft. Guess that's not gonna happen with PHP. Ever. On Sun, 14 Nov 2004 19:25:09 -0500, Wez Furlong <[EMAIL PROTECTED]> wrote: > On Sun, 14 Nov 2004 22:05:16 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: > > My point exactly.

Re: [PHP-DEV] php_fork();

2004-11-14 Thread Wez Furlong
If they paid me (or the company I work for) to do it, I would. On Mon, 15 Nov 2004 02:28:45 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Heh, ActiveState did it after they received funding from Microsoft. > Guess that's not gonna happen with PHP. Ever. -- PHP Internals - PHP Runtime Dev

[PHP-DEV] Doh! Wrong CVSROOT

2004-11-14 Thread =?ISO-8859-1?Q?Andr=E9_Luis_Ferreira_da_Silva_Bacci?=
Hi, I was helping a friend to setup a cvsd, and in the tests I imported a module in cvs.php.net... My bad :( Can some one remove it? Is /src. Sorry for mistake. []s André AE -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] debug_backtrace and static methods.

2004-11-14 Thread Jason Sweat
I am not sure if this should be considered a bug. If it should be, I would be happy to report it. I did a search for debug_backtrace and static and found no hits in the bug database. If you call a static method from inside of another classes method, debug_backtrace reports the calls as being a me