[PHP-DEV] [PHP4] Logging native PHP function calls

2007-06-13 Thread Markus Fischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've this very very special problems and would ask for some hints, any helpful response is very appreciated :) The usual story: old system, big, clunky, legacy, PHP4, can't upgrade. We're having serious problems with MySQL and too many connectio

[PHP-DEV] FW: php fastcgi

2007-06-13 Thread Dmitry Stogov
Hi, Current time most PHP instalations use setting 'display_error=0'. This setting hides errors from user but may send to him just a blank page. The proposed patch sends HTTP 500 response on errors instead of blank pages. The pages that already wrote something are not affectd. Any objections or

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Richard Quadling
I think that's a good idea. But wouldn't letting this be controlled in userland via set_error_handler / set_exception_handler be just as good? On 13/06/07, Dmitry Stogov <[EMAIL PROTECTED]> wrote: Hi, Current time most PHP instalations use setting 'display_error=0'. This setting hides errors

Re: [PHP-DEV] [PHP4] Logging native PHP function calls

2007-06-13 Thread Alexey Zakhlestin
http://xdebug.org/ On 6/13/07, Markus Fischer <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I've this very very special problems and would ask for some hints, any helpful response is very appreciated :) The usual story: old system, big, clunky, legacy, PHP4, can

Re: [PHP-DEV] [PHP4] Logging native PHP function calls

2007-06-13 Thread Markus Fischer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello Alexey, Stefan, first thanks for the replies! Actually I'm in general aware of xdebug, however I didn't know it met my criteria. The thing is: I need to know specific information of the mysql operations: 1) host,user,pass of connects/pconnect

Re: [PHP-DEV] [PHP4] Logging native PHP function calls

2007-06-13 Thread Stefan Priebsch
Hi Markus, > The thing is: I need to know specific information of the mysql operations: > > 1) host,user,pass of connects/pconnects (and which type of connect), > count of connects this very request already had > 2) sql statement on query, execution time, count of how many statements > this very

[PHP-DEV] Windows and Memory Limit of -1

2007-06-13 Thread Richard Quadling
Hi. Are there any special concerns for setting memory_limit to -1 in PHP.INI on Windows (using Sambar Server, not IIS/Apache). I'm getting "Out of memory" errors recently. Memory is good. Admittedly the code is trying to add a 12MG file as an attachment (using htmlmimemail5 from phpguru.org). 5

[PHP-DEV] Building on Windows

2007-06-13 Thread Zoe Slattery
Hi Has anyone built PHP6 using Visual C++ Express Edition V8? The symptoms I get are pretty well described in http://bugs.php.net/bug.php?id=39130 and I'm just wondering if this was fixed for PHP5 and not PHP6? Zoe Slattery IBM UK -- PHP Internals - PHP Runtime Development Mailing List To u

[PHP-DEV] apache_child_terminate on Apache 2.x

2007-06-13 Thread Brian Moon
So, Gentoo has removed Apache 1.3 from Portage. RedHat and others has not installed it for years. Frankly, the only reason we have for sticking with 1.3 is the lack of apache_child_terminate support in PHP for Apache 2. Does Apache 2 simply not provide this anymore? Was it left out for a p

[PHP-DEV] Re: apache_child_terminate on Apache 2.x

2007-06-13 Thread Scott MacVicar
It's simply not supported within the Apache API any more, they removed it between 1.3 and 2.0 due to the new MPM structure where a child process was no longer serving only one request but could be serving dozens. With the Worker MPM by default each child serves 25 requests, so it wasn't practical

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 2:07 am, Dmitry Stogov wrote: > Current time most PHP instalations use setting 'display_error=0'. > This setting hides errors from user but may send to him just a blank > page. > > The proposed patch sends HTTP 500 response on errors instead of blank > pages. > The pages that

Re: [PHP-DEV] Windows and Memory Limit of -1

2007-06-13 Thread Richard Quadling
It's an intranet server. I rebooted and it is working. It IS saying "out of memory" [13-Jun-2007 11:38:51] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 12729537 bytes) in C:\PHP\PHP5\Includes\htmlMimeMail5\htmlMimeMail5.php on line 940 [13-Jun-2007 11:40:02] PHP Fatal e

RE: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Dmitry Stogov
Configuaratin option make sense, but PHP already has too many configuration options especialliy for error reprting. I would like to avoid new ones. Thanks. Dmitry. > -Original Message- > From: Richard Lynch [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 13, 2007 8:17 PM > To: Dmitry S

Re: [PHP-DEV] Windows and Memory Limit of -1

2007-06-13 Thread Richard Lynch
On Wed, June 13, 2007 7:09 am, Richard Quadling wrote: > Hi. > > Are there any special concerns for setting memory_limit to -1 in > PHP.INI on Windows (using Sambar Server, not IIS/Apache). > > I'm getting "Out of memory" errors recently. Memory is good. > Admittedly the code is trying to add a 1

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Stanislav Malyshev
Configuaratin option make sense, but PHP already has too many configuration options especialliy for error reprting. I would like to avoid new ones. set_error_code(500) (or set_error_code(404)) might help? -- Stanislav Malyshev, Zend Products Engineer [EMAIL PROTECTED] http://www.zend.com/ -- P

RE: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Uwe Schindler
Where is the propsed patch? I was thinking about a (not SAPI specific the subject indicates) modification to the php-output parts that sends a HTTP status "500" when a fatal error occurs and no output was yet send (SAPI did not start the response). I think there is no need for a configuration s

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread David Coallier
On 6/13/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Configuaratin option make sense, but PHP already has too many configuration > options especialliy for error reprting. > I would like to avoid new ones. set_error_code(500) (or set_error_code(404)) might help? -- I am with set_error_co

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Nicolas Bérard-Nault
Returning 404 (or any other code other than 500) does not make sense. If an user sees a Page not found error, he probably won't bother and won't come back / delete his bookmark. On the other hand, if a search engine bot stumbles upon one of these, the page is automatically erased from the index, n

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Andrei Nigmatulin
On Wednesday 13 June 2007 21:45, Nicolas Bérard-Nault wrote: > Returning 404 (or any other code other than 500) does not make sense. If an > user sees a Page not found error, he probably won't bother and won't come > back / delete his bookmark. On the other hand, if a search engine bot > stumbles u

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Nicolas Bérard-Nault
Hmm, maybe you're talking about 503, which is not exactly the same thing as 500. Take a look at RFC 2616, section 10. On 6/13/07, Andrei Nigmatulin <[EMAIL PROTECTED]> wrote: On Wednesday 13 June 2007 21:45, Nicolas Bérard-Nault wrote: > Returning 404 (or any other code other than 500) does no

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Andrei Nigmatulin
On Wednesday 13 June 2007 22:17, Nicolas Bérard-Nault wrote: > Hmm, maybe you're talking about 503, which is not exactly the same thing as > 500. > > Take a look at RFC 2616, section 10. 10.5.4 503 Service Unavailable The server is currently unable to handle the request due to a temporary o

RE: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Dmitry Stogov
Oh, sorry. The patch was filtered :) I am sendig it again. It is sapi independent. Thanks. Dmitry. > -Original Message- > From: Uwe Schindler [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 13, 2007 9:08 PM > To: 'Dmitry Stogov'; [EMAIL PROTECTED] > Cc: 'internals Mailing List'; 'Stan

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Stanislav Malyshev
Oh, sorry. The patch was filtered :) I am sendig it again. It is sapi independent. I think we could extend it by allowing people to specify the error code (and maybe also error string - though not sure it's needed) - something like set_error_code() function. -- Stanislav Malyshev, Zend Produ

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Hannes Magnusson
On 6/13/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote: > Oh, sorry. The patch was filtered :) > I am sendig it again. > > It is sapi independent. I think we could extend it by allowing people to specify the error code (and maybe also error string - though not sure it's needed) - something lik

Re: [PHP-DEV] FW: php fastcgi

2007-06-13 Thread Stanislav Malyshev
I thought the goal of the patch was to display an error page on things like syntax errors? Sure, one of. in that case, set_error_code() would never be called..., even if it Why not? PHP scripts often consist of dozens of files, and the fatal error could happen in any of them beofre any outp