소스 검색

Merge pull request #55 from stesie/call-object_properties_init

Call object_properties_init on newly created V8Js object.
Patrick Reilly 11 년 전
부모
커밋
40d9e3e4f2
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      v8js.cc

+ 3 - 0
v8js.cc

@@ -534,6 +534,9 @@ static zend_object_value php_v8js_new(zend_class_entry *ce TSRMLS_DC) /* {{{ */
 
 	c = (php_v8js_ctx *) ecalloc(1, sizeof(*c));
 	zend_object_std_init(&c->std, ce TSRMLS_CC);
+#if PHP_VERSION_ID >= 50400
+	object_properties_init(&c->std, ce);
+#endif
 
 	retval.handle = zend_objects_store_put(c, NULL, (zend_objects_free_object_storage_t) php_v8js_free_storage, NULL TSRMLS_CC);
 	retval.handlers = &v8js_object_handlers;