Connecting Tech Pros Worldwide Help | Site Map

PHP does not report errors!

thegreatpain@gmail.com
Guest
 
Posts: n/a
#1: Mar 9 '06
I have no idea how this happened, but PHP (5.1.2) on my dev server
stopped telling me about errors. There's nothing in the server log
either.
I redownloaded PHP and used php.ini-recommended (only setting
display_errors = On). After restarting, it still returned blank pages
rather than error messages.
So I deleted php.ini and restarted the server, and suddenly error
reporting came alive!

Where have I buggered up?

Carl Vondrick
Guest
 
Posts: n/a
#2: Mar 10 '06

re: PHP does not report errors!


thegreatpain@gmail.com wrote:[color=blue]
> I have no idea how this happened, but PHP (5.1.2) on my dev server
> stopped telling me about errors. There's nothing in the server log
> either.
> I redownloaded PHP and used php.ini-recommended (only setting
> display_errors = On). After restarting, it still returned blank pages
> rather than error messages.
> So I deleted php.ini and restarted the server, and suddenly error
> reporting came alive!
>
> Where have I buggered up?
>[/color]
Odd -- the exact same thing happened to me on 5.1.1 today. When did it
start for you? I smell a conspiracy! :p

I guess I'll just delete it rather than fixing my .ini file.

--
Carl Vondrick
www.carlsoft.net
usenet [at] carlsoft [dot] net
rlee0001
Guest
 
Posts: n/a
#3: Mar 10 '06

re: PHP does not report errors!


Just a guess but, you may have more than one copy of php.ini. If you
have one in WinNT for example, and one in your php folder, the one in
WinNT gets used IIRC. But in any case, a change to the PATH search
order could have switched them. When you delete one of them, PHP is
forced to use the other. Did you install any new software that might
have changed or reset the PATH?

thegreatpain@gmail.com
Guest
 
Posts: n/a
#4: Mar 10 '06

re: PHP does not report errors!


This must've started a few days ago, as I haven't seen any error
messages in a good while. What did you do?

Deleting the file is no solution though. I need the extensions, and who
knows what the default values are..

thegreatpain@gmail.com
Guest
 
Posts: n/a
#5: Mar 10 '06

re: PHP does not report errors!


Already checked. There is no other php.ini on the drive, not in the
Windows dir or any of the system dirs. I even did a search on php.ini,
but all it found was php.ini-dist and php.ini-recommended.
The path variable remains unchanged - it still points to the PHP dir.
And it obviously works too, put a php.ini in the PHP dir, and it'll
read it alright.

As I wrote in my original post, even if I take the original file -
php.ini-recommended - rename it php.ini, turn on display_errors and
restart the server, it still won't honour my humble request.

Carl Vondrick
Guest
 
Posts: n/a
#6: Mar 10 '06

re: PHP does not report errors!


thegreatpain@gmail.com wrote:[color=blue]
> This must've started a few days ago, as I haven't seen any error
> messages in a good while. What did you do?
>
> Deleting the file is no solution though. I need the extensions, and who
> knows what the default values are..
>[/color]
Hmm.. I simply did this:

# mv php.ini php.ini~
-- restart server --
# mv php.ini~ php.ini
-- restart version --

And it worked! Odd.

--
Carl Vondrick
www.carlsoft.net
usenet [at] carlsoft [dot] net
Closed Thread