Welcome! Log In Create A New Profile

Advanced

[PHP] No error reporting on

Posted by Dotan Cohen 
Dotan Cohen
[PHP] No error reporting on
April 23, 2012 07:50PM
Given this code:

error_reporting(-1);
$image = imagecreatefromjpeg($source); // Crashes on a big image

I would expect some type of message, but there is none in either the
HTML output nor the httpd error_log. How can I get information about
crashes?

Thanks.

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Giner
[PHP] Re: No error reporting on
April 23, 2012 08:20PM
Just my $.02, but don't you need:

ini_set('display_errors', '1');

as well?

"Dotan Cohen" <[email protected]> wrote in message
news:[email protected]om...
> Given this code:
>
> error_reporting(-1);



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dotan Cohen
Re: [PHP] Re: No error reporting on
April 23, 2012 10:30PM
On Mon, Apr 23, 2012 at 14:18, Jim Giner <[email protected]> wrote:
> Just my $.02, but don't you need:
>
> ini_set('display_errors', '1');
>
> as well?
>

Possibly, thanks. I actually don't have access to that!

--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Lucas
Re: [PHP] Re: No error reporting on
April 23, 2012 11:00PM
On 04/23/2012 01:21 PM, Dotan Cohen wrote:
> On Mon, Apr 23, 2012 at 14:18, Jim Giner<[email protected]> wrote:
>> Just my $.02, but don't you need:
>>
>> ini_set('display_errors', '1');
>>
>> as well?
>>
>
> Possibly, thanks. I actually don't have access to that!
>

That line should be placed in your script. not the php.ini file

--
Jim Lucas

http://www.cmsws.com/
http://www.cmsws.com/examples/
http://www.bendsource.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dotan Cohen
Re: [PHP] Re: No error reporting on
April 24, 2012 06:20AM
On Mon, Apr 23, 2012 at 16:53, Jim Lucas <[email protected]> wrote:
>> Possibly, thanks. I actually don't have access to that!
>>
>
> That line should be placed in your script.  not the php.ini file
>

Yes, I'm working on a functions file that is include()ed by the main
script. I'm not supposed to touch the main script without a very good
reason.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jim Giner
Re: [PHP] Re: No error reporting on
April 24, 2012 02:40PM
Sounds like a very good reason to me? It's a development tool. Add it now,
remove it later.
"Dotan Cohen" <[email protected]> wrote in message
news:[email protected]om...
On Mon, Apr 23, 2012 at 16:53, Jim Lucas <[email protected]> wrote:
>> Possibly, thanks. I actually don't have access to that!
>>
>
> That line should be placed in your script. not the php.ini file
>

Yes, I'm working on a functions file that is include()ed by the main
script. I'm not supposed to touch the main script without a very good
reason.


--
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login