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-2024 The PHP Group
All rights reserved.
Last updated: Thu Nov 21 14:01:29 2024 UTC