tags:

views:

12

answers:

0

Good day all.

I am trying to cajole my new office into having Correct Procedures. I'm trying to prove that everyone can have a local checkout of the code and it will all be OK, but PHP is not playing along.

I have set up my Apache vhost to load a specific php.ini for the site, and it looks like this:

[php]
include_path = ".:/home/alastair/code/controlpanel/Site Includes/:/usr/share/php:/usr/share/pear"
error_reporting = E_ALL ^ (E_NOTICE | E_DEPRECATED)
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off

Yes, that's a space in a directory name. That's what I stepped into. Anywho, this has the following effects:

  • If the include_path is at the end of the file it does not get run
  • The page outputs "deprecated" errors and refuses to compile. This is true even if I set error_reporting = 0

Is there some way I can get something to report errors in the ini file? I mean, everything works exactly the same even if I set error_reporting = aaaa.

I got the above section from a French site that I got from Google.

TIA, Al