Req #69654 [Opn]: Add E_DEBUG constant

From: Date: Mon, 18 May 2015 14:19:11 +0000
Subject: Req #69654 [Opn]: Add E_DEBUG constant
References: 1  Groups: php.standards 
Request: Send a blank email to standards-+get-787@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=69654&edit=1 ID: 69654 User updated by: a dot cobest at gmail dot com Reported by: a dot cobest at gmail dot com -Summary: Add E_DEBUG and E_DEBUG constant +Summary: Add E_DEBUG constant Status: Open Type: Feature/Change Request Package: PHP Language Specification Operating System: any PHP Version: Irrelevant Block user comment: N Private report: N New Comment: duplicate E_DEBUG in title Previous Comments: ------------------------------------------------------------------------ [2015-05-18 14:18:13] a dot cobest at gmail dot com Description: ------------ All loggers and project has [DEBUG] mode. Using E_NOTICE as debug identification is incorrect for dev-messages because in production dev-message must be ignoring and in dev-mode all messages (notices and debugs) mixed in mess. Some extensions can use the constant E_DEBUG in their dev-messages. For example, MongoLog use E_NOTICE for debugging. It is not convenient. Test script: --------------- <?php // ... trigger_error("Connection with DB established", E_DEBUG); // ... Expected result: ---------------- If bit E_DEBUG present in error_reporting: Debug: Connection with DB established in ... Actual result: -------------- The constant E_DEBUG doesn't exists ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=69654&edit=1

« previous php.standards (#787) next »