PHP not loading php.ini in directory or following error_reporting() on Windows 7

Posted by Marcus on Server Fault See other posts from Server Fault or by Marcus
Published on 2010-06-18T07:13:20Z Indexed on 2010/06/18 8:13 UTC
Read the original article Hit count: 589

Filed under:
|
|
|
|

Normally I develop under E_ALL error level, but for sanity on this project I want notices and strict off. So initially tried:

error_reporting(E_ALL & ~(E_STRICT|E_NOTICE));

And several other combinations of the same thing, nothing worked.

Next I tried to create a local php.ini the directory with error_reporting = E_ALL & ~E_NOTICE but nope, that didn't work either. phpinfo() is reporting: Scan this dir for additional .ini files: (none)

Can someone help me fix either of these problems? Preferably both! Thanks!

I'm running PHP Version 5.2.13 on Apache/2.2.14 under Windows 7 x64.

© Server Fault or respective owner

Related posts about php

Related posts about windows-7