|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-12-28 09:09 UTC] zeev@php.net
[2001-12-31 05:47 UTC] matthew_dean at hotmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 06:00:01 2025 UTC |
<?php function myErrorHandler($errorNum) { echo "$errorNum\n"; } set_error_handler("myErrorHandler"); #error_reporting (E_ALL);#doesn't change the bug behaviour @$j=$i; ?> This echos: 8 Yet according to: http://www.php.net/manual/en/function.set-error-handler.php "Of particular note is that this value will be 0 if the statement that caused the error was prepended by the @ error-control operator. " I've tried this on 4.0.4pl1 and 4.0.6 The changelog for 4.1.0 doesn't mention a fix. The @ works fine for lines executed before set_error_handler(). Here's one of the configure lines, though (to me) it doesn't seem likely to be a compiley issue... './configure' '--with-db' '--enable-dba' '--with-gdbm' '--with-xml' '--with-oci8=/usr/local/oracle/' '--with-apxs=/usr/local/apache-1.3.14/bin/apxs' '--with-mysql=/usr/local/mysql' '--with-gd' '--with-sablot' Thanks!