Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty

From: Date: Mon, 14 Feb 2005 00:12:20 +0000
Subject: Re: [Structures_DataGrid] Problems with Linux / PHP4: Empty
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-17519@lists.php.net to get a copy of this message
daniel@electroteque.org wrote:
dan rossi wrote:
i've had a similer issue, you are missing the HTML_Table package, the includes are passive with @ so wont spit out an error.
Isn't it a bug ? Shouldn't it be require_once() instead of include_once() in Structures_DataGrid_Renderer::setRenderer() ? -- og
I assume that would be the same thing ?? Try taking off the @ or get HTML_Table or try the xlsexample.
Well, require() produces a fatal error, where include() only prints a warning. But you're right, with @, require() silently stops execution, which would leave the developer in front of a similar mistery. With PEAR::setErrorHandling(PEAR_ERROR_PRINT) he should get an "Invalid renderer" notice though. I'm not sure putting @ everywhere is such a nice idea. I believe that's a sort of bug because it leaves the user in front of a mysterious behaviour when something critical happens : loading an important component. Critical enough to produce a fatal error IMHO. -- og

« previous php.pear.general (#17519) next »