[PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Pierre-Alain Joye
Hello, I'm trying to see why $ make install-pear-packages segfaults with HEAD. I hope I'll commit the fixes today. I suspect references problem... I got new messages (which where not displayed before): : var: Deprecated. Please use the public/private/protected modifiers in XXX.php on line XX

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Pierre-Alain Joye
On Thu, 18 Dec 2003 12:43:03 +0100 Pierre-Alain Joye [EMAIL PROTECTED] wrote: Hello, I'm trying to see why $ make install-pear-packages segfaults with HEAD. I hope I'll commit the fixes today. I suspect references problem... I got new messages (which where not displayed before): : var:

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Pierre-Alain Joye wrote: Ok segfault is on line pear/PEAR/Registry.php line 345. This is a call to unserialize. I do not know yet why it fails. Maybe (again) the serialized data is corrupted. Anyway unserialize should never segfault. Can you put the datafile + serialize

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Pierre-Alain Joye
On Thu, 18 Dec 2003 13:50:10 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: On Thu, 18 Dec 2003, Pierre-Alain Joye wrote: Ok segfault is on line pear/PEAR/Registry.php line 345. This is a call to unserialize. I do not know yet why it fails. Maybe (again) the serialized data is

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Marcus Boerger
Hello Pierre-Alain, Thursday, December 18, 2003, 12:43:03 PM, you wrote: Hello, I'm trying to see why $ make install-pear-packages segfaults with HEAD. I hope I'll commit the fixes today. I suspect references problem... I got new messages (which where not displayed before): : var:

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Pierre-Alain Joye
On Thu, 18 Dec 2003 14:44:29 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: Guesso... can you try to run it in valgrind, it should show all memory overruns etc.. Already done, no overuns, and obviously non freed mem after the crash ;) Important note (dunno why I did not say that before

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Greg Beaver
The only call to error_reporting() is in pearcmd.php: error_reporting(E_ALL ~E_NOTICE); I added a var_dump(error_reporting()); and got 2039 out, as expected, but I am still getting E_STRICT warnings galore. I wonder if E_STRICT is on no matter what in head? I added ~E_STRICT (which of

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Daniel Convissor
On Thu, Dec 18, 2003 at 11:44:27AM -0500, Greg Beaver wrote: I wonder if E_STRICT is on no matter what in head? It's not. Something in the pear install scripts is turning it on. --Dan -- FREE scripts that make web and database programming easier

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Greg Beaver
Unless it is possible to turn on E_STRICT without using the error_reporting() function, then this is not true - there is only 1 error_reporting() in all of the .php files that make up the PEAR core, try grep if you don't believe me. Greg Daniel Convissor wrote: On Thu, Dec 18, 2003 at

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Christian Schneider
Daniel Convissor wrote: It's the custom error handler in pearcmd.php. PHP doesn't pay attention to any error_reporting() settings when a custom error handler is established. Then, error_handler() doesn't account for the new warning level. Is it just me or is this undesired behaviour? I noticed

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Brad Fisher
Personally, I both like and dislike this behavior. I like it for debugging purposes, since it allows me full control over whether I ignore error_reporting level or perhaps just log disabled levels instead of displaying them, etc. On the other hand, there is a minor performance issue, but if you

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Christian Schneider wrote: Daniel Convissor wrote: It's the custom error handler in pearcmd.php. PHP doesn't pay attention to any error_reporting() settings when a custom error handler is established. Then, error_handler() doesn't account for the new warning level.

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Greg Beaver
At the least, this needs to be added to the thin-changes file, as it will bork any script that uses a custom error handler and has PHP 4 objects. Thanks for the catch Dan, that fixes it. Greg Christian Schneider wrote: Daniel Convissor wrote: It's the custom error handler in pearcmd.php. PHP

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Magnus Määttä
On Thursday 18 December 2003 18.25, Christian Schneider wrote: Daniel Convissor wrote: It's the custom error handler in pearcmd.php. PHP doesn't pay attention to any error_reporting() settings when a custom error handler is established. Then, error_handler() doesn't account for the new

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Greg Beaver wrote: At the least, this needs to be added to the thin-changes file, as it will bork any script that uses a custom error handler and has PHP 4 objects. It won't bork all scripts with a custom errorhandler if their default action is to ignore core and other

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Zeev Suraski
Any chance you can dissect it to the smallest piece of code that still produces the crash? At 14:46 18/12/2003, Pierre-Alain Joye wrote: On Thu, 18 Dec 2003 12:43:03 +0100 Pierre-Alain Joye [EMAIL PROTECTED] wrote: Hello, I'm trying to see why $ make install-pear-packages segfaults with

[PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Christian Schneider
Derick Rethans wrote: It won't bork all scripts with a custom errorhandler if their default action is to ignore core and other errors but only handle the ones they should handle. I do agree that it should be mentioned in the changes file though. On the other hand you have to be very careful

Re: [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Daniel Convissor
Greg: On Thu, Dec 18, 2003 at 12:48:01PM -0500, Greg Beaver wrote: Thanks for the catch Dan, that fixes it. But your fix uses the E_STRICT constant, which of course doesn't exist in PHP 4, so an undefined constant notice gets produced. I'm wondering why there's even a custom error handler

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Andi Gutmans
At 07:20 PM 12/18/2003 +0100, Christian Schneider wrote: Derick Rethans wrote: It won't bork all scripts with a custom errorhandler if their default action is to ignore core and other errors but only handle the ones they should handle. I do agree that it should be mentioned in the changes file

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Andi Gutmans wrote: In any case, I do think that the custom error handler being called for any error is bogus. Why should E_STRICT or E_NOTICES be sent to the handler if they are off? So you're suggesting to add another BC break here, without a really good reason? :)

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Andi Gutmans
At 10:24 PM 12/18/2003 +0100, Derick Rethans wrote: On Thu, 18 Dec 2003, Andi Gutmans wrote: In any case, I do think that the custom error handler being called for any error is bogus. Why should E_STRICT or E_NOTICES be sent to the handler if they are off? So you're suggesting to add another

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Andi Gutmans wrote: At 10:24 PM 12/18/2003 +0100, Derick Rethans wrote: On Thu, 18 Dec 2003, Andi Gutmans wrote: In any case, I do think that the custom error handler being called for any error is bogus. Why should E_STRICT or E_NOTICES be sent to the handler if

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Andrey Hristov
Andi Gutmans wrote: At 10:24 PM 12/18/2003 +0100, Derick Rethans wrote: On Thu, 18 Dec 2003, Andi Gutmans wrote: In any case, I do think that the custom error handler being called for any error is bogus. Why should E_STRICT or E_NOTICES be sent to the handler if they are off? So you're

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Stig S. Bakken
On Thu, 2003-12-18 at 20:35, Andi Gutmans wrote: At 07:20 PM 12/18/2003 +0100, Christian Schneider wrote: Derick Rethans wrote: It won't bork all scripts with a custom errorhandler if their default action is to ignore core and other errors but only handle the ones they should handle. I do

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Stig S. Bakken
On Thu, 2003-12-18 at 22:56, Andi Gutmans wrote: At 10:24 PM 12/18/2003 +0100, Derick Rethans wrote: On Thu, 18 Dec 2003, Andi Gutmans wrote: In any case, I do think that the custom error handler being called for any error is bogus. Why should E_STRICT or E_NOTICES be sent to the handler

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Andrey Hristov
Stig S. Bakken wrote: Good question. Having an error handling function becomes really expensive if your code is not E_ALL-clean in a loop or something. if you set a custom error handler you know what you are doing and probably don't have such places in the code :) IMHO the error_reporting

Re: [PHP-DEV] Re: error_handler, was [PHP-DEV] B3, pear segfault, and msgs about deprecated

2003-12-18 Thread Derick Rethans
On Thu, 18 Dec 2003, Stig S. Bakken wrote: Anyway, I'm holding off with Beta 3 until we fix the --install-pear-packages problem. I'd call that a showstopper because it's something pretty basic. Has anyone managed to create a reproducing script or backtrace? It doesn't crash on my box :(