Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:21463 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 53605 invoked by uid 1010); 10 Jan 2006 18:09:12 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 53577 invoked from network); 10 Jan 2006 18:09:11 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Jan 2006 18:09:11 -0000 X-Host-Fingerprint: 200.199.201.180 smtp4.brturbo.com.br Linux 2.4/2.6 Received: from ([200.199.201.180:19349] helo=smtp4.brturbo.com.br) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 95/51-27796-548F3C34 for ; Tue, 10 Jan 2006 13:09:09 -0500 Received: from athlon.casa (unknown [200.96.250.170]) by smtp4.brturbo.com.br (Postfix) with ESMTP id 9F61B33E62 for ; Tue, 10 Jan 2006 16:09:04 -0200 (BRDT) To: internals@lists.php.net Date: Tue, 10 Jan 2006 16:13:02 +0000 User-Agent: KMail/1.9 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_O09wDOAGswbh4vw" Message-ID: <200601101613.02531.thiago.silva@kdemail.net> Subject: [PATCH] entry #35269 From: thiago.silva@kdemail.net (Thiago Silva) --Boundary-00=_O09wDOAGswbh4vw Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, can anyone review this? It's a one-line patch for the silent operator (@), wich currently supress fatal error messages (undesirable for "@include" pehaps, wich makes difficult for debugging scripts). -- +Thiago Silva --Boundary-00=_O09wDOAGswbh4vw Content-Type: text/plain; charset="us-ascii"; name="silent.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="silent.txt" Index: Zend/zend_vm_execute.h =================================================================== RCS file: /repository/ZendEngine2/zend_vm_execute.h,v retrieving revision 1.62.2.23 diff -u -r1.62.2.23 zend_vm_execute.h --- Zend/zend_vm_execute.h 4 Jan 2006 23:53:04 -0000 1.62.2.23 +++ Zend/zend_vm_execute.h 10 Jan 2006 18:01:53 -0000 @@ -434,7 +434,8 @@ } if (EG(error_reporting)) { - zend_alter_ini_entry("error_reporting", sizeof("error_reporting"), "0", 1, ZEND_INI_USER, ZEND_INI_STAGE_RUNTIME); + /* 341 == E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR|E_PARSE|E_USER_ERROR */ + zend_alter_ini_entry("error_reporting", sizeof("error_reporting"), "341", 3, ZEND_INI_USER, ZEND_INI_STAGE_RUNTIME); } ZEND_VM_NEXT_OPCODE(); } --Boundary-00=_O09wDOAGswbh4vw--