php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53306
Patch exception_fix2.patch revision 2010-11-13 22:23 UTC by mike at harschsystems dot com

Patch exception_fix2.patch for Reproducible crash Bug #53306

Patch version 2010-11-13 22:23 UTC

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

Developer: mike@harschsystems.com

--- Zend/zend_exceptions.c.orig	2010-11-13 13:45:10.000000000 -0700
+++ Zend/zend_exceptions.c	2010-11-13 14:32:06.000000000 -0700
@@ -87,8 +87,13 @@
 	if (DTRACE_EXCEPTION_THROWN_ENABLED()) {
 		char *classname;
 		int name_len;
-		zend_get_object_classname(exception, &classname, &name_len);
-		DTRACE_EXCEPTION_THROWN(classname);
+		if (exception != NULL) {
+			zend_get_object_classname(exception, &classname, &name_len);
+			DTRACE_EXCEPTION_THROWN(classname);
+		} else {
+			DTRACE_EXCEPTION_THROWN(NULL);
+		}
+			
 	}
 #endif /* HAVE_DTRACE */
 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 11:01:30 2024 UTC