1--TEST-- 2Promoting require_once warning to exception 3--FILE-- 4<?php 5 6function exception_error_handler($errno, $errstr, $errfile, $errline ) { 7 throw new Exception($errstr); 8} 9set_error_handler("exception_error_handler"); 10 11try { 12 $results = require_once 'does-not-exist.php'; 13} catch (Exception $e) { 14 echo $e->getMessage(), "\n"; 15}; 16 17?> 18--EXPECT-- 19require_once(does-not-exist.php): Failed to open stream: No such file or directory 20