summaryrefslogblamecommitdiff
path: root/user/php7/zend_bool.patch
blob: cdea0853388161e53629dcb5ce065e2e445f649b (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                   
                                                              







                                           
zend_parse_parameters can't be passed &int if it's expecting zend_bool
("b", unsigned char).

Ironically, this code (Reflect::export) is scheduled to be removed in
the next 7.4 release[1], so don't bother forwarding.

[1] https://github.com/php/php-src/pull/5188

--- php-7.4.4/ext/reflection/php_reflection.c	2020-03-17 06:40:26.000000000 -0400
+++ php-7.4.4/ext/reflection/php_reflection.c	2020-03-30 01:00:27.938405046 -0400
@@ -1318,7 +1318,7 @@ static void _reflection_export(INTERNAL_
 	zval *argument_ptr, *argument2_ptr;
 	zval retval, params[2];
 	int result;
-	int return_output = 0;
+	zend_bool return_output = 0;
 	zend_fcall_info fci;
 	zend_fcall_info_cache fcc;