php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #54910
Patch fix-crash-but-not-underlying-problem revision 2011-05-24 20:20 UTC by crrodriguez at opensuse dot org

Patch fix-crash-but-not-underlying-problem for Reproducible crash Bug #54910

Patch version 2011-05-24 20:20 UTC

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

Developer: crrodriguez@opensuse.org

Index: Zend/zend_API.c
===================================================================
--- Zend/zend_API.c	(revisión: 311396)
+++ Zend/zend_API.c	(copia de trabajo)
@@ -227,7 +227,7 @@
 
 ZEND_API zend_class_entry *zend_get_class_entry(const zval *zobject TSRMLS_DC) /* {{{ */
 {
-	if (Z_OBJ_HT_P(zobject)->get_class_entry) {
+	if (zobject && Z_OBJ_HT_P(zobject)->get_class_entry) {
 		return Z_OBJ_HT_P(zobject)->get_class_entry(zobject TSRMLS_CC);
 	} else {
 		zend_error(E_ERROR, "Class entry requested for an object without PHP class");
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Sat Apr 19 12:01:52 2014 UTC