File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -160,9 +160,7 @@ PHP_FUNCTION(curl_share_init_persistent)
160
160
}
161
161
162
162
ZEND_HASH_FOREACH_VAL (share_opts , zval * entry ) {
163
- ZVAL_DEREF (entry );
164
-
165
- bool failed = false;
163
+ bool failed ;
166
164
zend_ulong option = zval_try_get_long (entry , & failed );
167
165
168
166
if (failed ) {
Original file line number Diff line number Diff line change @@ -3037,13 +3037,11 @@ static int php_zip_cancel_callback(zip_t *arch, void *ptr)
3037
3037
/* Cancel if an exception has been thrown */
3038
3038
return -1 ;
3039
3039
}
3040
- bool failed = false;
3041
- zval * cb_retval_ptr = & cb_retval ;
3042
- ZVAL_DEREF (cb_retval_ptr );
3043
- zend_long retval = zval_try_get_long (cb_retval_ptr , & failed );
3040
+ bool failed ;
3041
+ zend_long retval = zval_try_get_long (& cb_retval , & failed );
3044
3042
if (failed ) {
3045
3043
zend_type_error ("Return value of callback provided to ZipArchive::registerCancelCallback()"
3046
- " must be of type int, %s returned" , zend_zval_value_name (cb_retval_ptr ));
3044
+ " must be of type int, %s returned" , zend_zval_value_name (& cb_retval ));
3047
3045
zval_ptr_dtor (& cb_retval );
3048
3046
return -1 ;
3049
3047
}
You can’t perform that action at this time.
0 commit comments