1--TEST-- 2A "non well formed" notice converted to exception should result in a ZPP failure 3--FILE-- 4<?php 5 6set_error_handler(function($_, $msg) { 7 throw new Exception($msg); 8}, E_NOTICE); 9 10try { 11 wordwrap("foo", "123foo", ""); 12} catch (Exception $e) { 13 echo $e, "\n"; 14} 15 16?> 17--EXPECTF-- 18Exception: A non well formed numeric value encountered in %s:%d 19Stack trace: 20#0 [internal function]: {closure}(%s) 21#1 %s(%d): wordwrap('foo', '123foo', '') 22#2 {main} 23