Req #60258 [Wfx->Ana]: INI Setting for Error Control Operator

From: Date: Fri, 11 Nov 2011 12:49:47 +0000
Subject: Req #60258 [Wfx->Ana]: INI Setting for Error Control Operator
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165046@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60258&edit=1 ID: 60258 Updated by: pajoye@php.net Reported by: rayro at gmx dot de Summary: INI Setting for Error Control Operator -Status: Wont fix +Status: Analyzed Type: Feature/Change Request Package: Output Control Operating System: Any PHP Version: 5.4.0RC1 Block user comment: N Private report: N New Comment: Actually the more I look into that the more I want this thing in the core, as an ini setting and an API to disable it. Let move to analyzed and see what can be done for 5.4+1. Previous Comments: ------------------------------------------------------------------------ [2011-11-11 12:26:45] aharvey@php.net You can use the PECL scream extension or Xdebug with the xdebug.scream option to disable the error suppression operator. ------------------------------------------------------------------------ [2011-11-11 08:59:55] rayro at gmx dot de Description: ------------ Hey there, Every day I ran in some Problems wasting time to debug code, since the peoples are often using the error control operator (any software): http://de3.php.net/manual/en/language.operators.errorcontrol.php It would be nice to see a php.ini directive, e.g. "error_controll_operators = 1|0", to disable or enable the silencing of php errors. Another old report (see #14192) was closed by jani@php.net, referring to some extension and xdebug. But, as controll operators itself are in the core, i think there SHOULD also be the option to disable/enable it...? Thanks alot Test script: --------------- <?php ini_set('error_controll_operators',0); @anyNonExistingFunction(); ?> Expected result: ---------------- Fatal error: Call to undefined function anyNonExistingFunction() in /root/test.php on line 3 Actual result: -------------- Empty Output ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60258&edit=1

« previous php.bugs (#165046) next »