correct compile error in PHP 7
parent
cc235c0c63
commit
b3a1fef3bc
|
|
@ -7288,13 +7288,12 @@ zend_object_value php_fdfs_new(zend_class_entry *ce TSRMLS_DC)
|
||||||
zend_object* php_fdfs_new(zend_class_entry *ce)
|
zend_object* php_fdfs_new(zend_class_entry *ce)
|
||||||
{
|
{
|
||||||
php_fdfs_t *i_obj;
|
php_fdfs_t *i_obj;
|
||||||
int handle;
|
|
||||||
|
|
||||||
i_obj = (php_fdfs_t *)ecalloc(1, sizeof(php_fdfs_t));
|
i_obj = (php_fdfs_t *)ecalloc(1, sizeof(php_fdfs_t));
|
||||||
|
|
||||||
zend_object_std_init(&i_obj->zo, ce TSRMLS_CC);
|
zend_object_std_init(&i_obj->zo, ce TSRMLS_CC);
|
||||||
handle = zend_objects_store_put(&i_obj->zo);
|
zend_objects_store_put(&i_obj->zo);
|
||||||
fprintf(stderr, "retval.handle: %d, i_obj: %p\n", handle, i_obj);
|
fprintf(stderr, "i_obj: %p\n", i_obj);
|
||||||
return &i_obj->zo;
|
return &i_obj->zo;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
@ -7319,7 +7318,6 @@ PHP_FASTDFS_API zend_class_entry *php_fdfs_get_exception_base(int root TSRMLS_DC
|
||||||
zend_class_entry *pce;
|
zend_class_entry *pce;
|
||||||
zval *value;
|
zval *value;
|
||||||
|
|
||||||
fprintf(stderr, "file: "__FILE__", line: %d\n", __LINE__);
|
|
||||||
if (fdfs_zend_hash_find(CG(class_table), "runtimeexception",
|
if (fdfs_zend_hash_find(CG(class_table), "runtimeexception",
|
||||||
sizeof("RuntimeException"), &value) == SUCCESS)
|
sizeof("RuntimeException"), &value) == SUCCESS)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue