php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54249
Patch zend_errors revision 2011-03-14 17:03 UTC by amrnablus at gmail dot com

Patch zend_errors for Performance problem Bug #54249

Patch version 2011-03-14 17:03 UTC

Return to Bug #54249 | Download this patch
Patch Revisions:

Developer: amrnablus@gmail.com

--- /home/amrna/php-5.3.5/Zend/zend_errors.h	2010-01-05 22:46:53.000000000 +0200
+++ Zend/zend_errors.h	2011-03-14 18:43:24.000000000 +0200
@@ -22,21 +22,21 @@
 #ifndef ZEND_ERRORS_H
 #define ZEND_ERRORS_H
 
-#define E_ERROR				(1<<0L)
-#define E_WARNING			(1<<1L)
-#define E_PARSE				(1<<2L)
-#define E_NOTICE			(1<<3L)
-#define E_CORE_ERROR		(1<<4L)
-#define E_CORE_WARNING		(1<<5L)
-#define E_COMPILE_ERROR		(1<<6L)
-#define E_COMPILE_WARNING	(1<<7L)
-#define E_USER_ERROR		(1<<8L)
-#define E_USER_WARNING		(1<<9L)
-#define E_USER_NOTICE		(1<<10L)
-#define E_STRICT			(1<<11L)
-#define E_RECOVERABLE_ERROR	(1<<12L)
-#define E_DEPRECATED		(1<<13L)
-#define E_USER_DEPRECATED	(1<<14L)
+#define E_ERROR			1	/*(1<<0L)*/ 
+#define E_WARNING		2		/*(1<<1L)*/
+#define E_PARSE			4		/*(1<<2L)*/
+#define E_NOTICE		8	/*(1<<3L)*/
+#define E_CORE_ERROR		16	/*(1<<4L)*/
+#define E_CORE_WARNING		32	/*(1<<5L)*/
+#define E_COMPILE_ERROR		64	/*(1<<6L)*/
+#define E_COMPILE_WARNING	128	/*(1<<7L)*/
+#define E_USER_ERROR		265	/*(1<<8L)*/
+#define E_USER_WARNING		512	/*(1<<9L)*/
+#define E_USER_NOTICE		1024	/*(1<<10L)*/
+#define E_STRICT		2048	/*(1<<11L)*/
+#define E_RECOVERABLE_ERROR	4096	/*(1<<12L)*/
+#define E_DEPRECATED		8192	/*(1<<13L)*/
+#define E_USER_DEPRECATED	16383	/*(1<<14L)*/
 
 #define E_ALL (E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_RECOVERABLE_ERROR | E_DEPRECATED | E_USER_DEPRECATED)
 #define E_CORE (E_CORE_ERROR | E_CORE_WARNING)
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Sep 27 20:01:23 2020 UTC