December 9th, 2012, 10:38 PM
Why doen't error_reporting(E_ALL) print errors on screen?
I am consciously making a synthax error and missing a closing bracket ) at the end of the variable $arg. Why doesn't php show the error on screen and instead shows a blank page?
echo $query = "
SELECT packages.id AS PACKAGE_ID,
annual_calendar.day_date AS DAY_DATE,
allotments_new.day_date AS ALLOTMENTS_DAY_DATE
LEFT OUTER JOIN allotments_new
ON allotments_new.package_id = packages.id
LEFT OUTER JOIN annual_calendar
ON annual_calendar.day_date = allotments_new.day_date
AND annual_calendar.day_date <=: next_year
WHERE packages.status = 'active'
$arg = array('next_year'=>date('Y-m-d', strtotime( '+1 year'));
December 9th, 2012, 10:46 PM
Because that's a compile error. PHP compiles a file before executing it, so when it found the missing ) it hadn't executed any of your code. That's why development settings should not go in an ini_set() at runtime but rather something that's read earlier on, like a php.ini or php_value in the .htaccess.
December 10th, 2012, 12:12 AM
Oh thanks : )
Originally Posted by requinix