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");
|