File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -844,6 +844,7 @@ static zend_always_inline void zend_call_known_fcc(
844
844
{
845
845
zend_function * func = fcc -> function_handler ;
846
846
if (UNEXPECTED (!func )) {
847
+ ZVAL_UNDEF (retval_ptr );
847
848
return ;
848
849
}
849
850
/* Need to copy trampolines as they get released after they are called */
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ GH-16360 - curl_setopt with CURLOPT_WRITEFUNCTION and no user fn
3
+ --EXTENSIONS--
4
+ curl
5
+ --FILE--
6
+ <?php
7
+ $ log_file = tempnam (sys_get_temp_dir (), 'php-curl-CURLOPT_WRITEFUNCTION-trampoline ' );
8
+ $ fp = fopen ($ log_file , 'w+ ' );
9
+ fwrite ($ fp , "test " );
10
+ $ ch = curl_init ();
11
+ curl_setopt ($ ch , CURLOPT_WRITEFUNCTION , null );
12
+ curl_setopt ($ ch , CURLOPT_URL , 'file:// ' . $ log_file );
13
+ curl_exec ($ ch );
14
+ echo "DONE " ;
15
+ ?>
16
+ --EXPECT--
17
+ DONE
You can’t perform that action at this time.
0 commit comments