summaryrefslogtreecommitdiff
path: root/Zend/zend.c
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2003-04-03 14:44:41 +0000
committerAndrei Zmievski <andrei@php.net>2003-04-03 14:44:41 +0000
commit91eff553e326c7a4cd8d5e51528856a835be31e3 (patch)
tree2199e12df52f31c796aa664fa3d8c5f7149682b6 /Zend/zend.c
parentf7041314bbcd9d180e6b17786277208d5402209b (diff)
downloadphp-git-91eff553e326c7a4cd8d5e51528856a835be31e3.tar.gz
Initialize all relevant zend_class_entry fields to avoid accidental
crashes.
Diffstat (limited to 'Zend/zend.c')
-rw-r--r--Zend/zend.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Zend/zend.c b/Zend/zend.c
index c9f50227c1..fc305fff49 100644
--- a/Zend/zend.c
+++ b/Zend/zend.c
@@ -377,7 +377,6 @@ static void register_standard_class(TSRMLS_D)
zend_standard_class_def->type = ZEND_INTERNAL_CLASS;
zend_standard_class_def->name_length = sizeof("stdClass") - 1;
zend_standard_class_def->name = zend_strndup("stdClass", zend_standard_class_def->name_length);
- zend_standard_class_def->parent = NULL;
zend_initialize_class_data(zend_standard_class_def, 1 TSRMLS_CC);
zend_hash_add(GLOBAL_CLASS_TABLE, "stdclass", sizeof("stdclass"), &zend_standard_class_def, sizeof(zend_class_entry *), NULL);