Skip to content

Commit

Permalink
Remove my changes specifics to PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
joanhey committed Apr 2, 2023
1 parent 3f1f9cc commit 4a16fd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/ngx-php/compile-ngx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ cd nginx-${NGINX_SRC_VERSION}
# Show pwd
pwd


php-config
#php-config
export PHP_CONFIG="/usr/bin/php-config$PHP_SRC_VERSION"
export PHP_LIB='/usr/lib'
export NGX_PHP_LIBS="`$PHP_CONFIG --ldflags` `$PHP_CONFIG --libs` -L$PHP_LIB -lphp$PHP_MAJOR_VERSION "
Expand All @@ -48,7 +47,7 @@ else
--add-dynamic-module=../third_party/ngx_devel_kit \
--add-dynamic-module=..
fi
make CFLAGS="-Wno-error"
make
make install
if [ $? -eq 0 ];then
echo "Nginx install ... done"
Expand Down
4 changes: 2 additions & 2 deletions src/ngx_http_php8_zend_uthread.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ int ngx_http_php_zend_eval_stringl(char *str, size_t str_len, zval *retval_ptr,

original_compiler_options = CG(compiler_options);
CG(compiler_options) = ZEND_COMPILE_DEFAULT_FOR_EVAL;
new_op_array = zend_compile_string(code_str, string_name, ZEND_COMPILE_POSITION_AFTER_OPEN_TAG);
new_op_array = zend_compile_string(code_str, string_name);
CG(compiler_options) = original_compiler_options;

if (new_op_array) {
Expand Down Expand Up @@ -194,7 +194,7 @@ static int ngx_http_php_zend_call_function(zend_fcall_info *fci, zend_fcall_info
fci_cache = &fci_cache_local;
}

if (!zend_is_callable_ex(&fci->function_name, fci->object, 0, NULL, fci_cache, &error)) {
if (!zend_is_callable_ex(&fci->function_name, fci->object, IS_CALLABLE_CHECK_SILENT, NULL, fci_cache, &error)) {
if (error) {
zend_string *callable_name
= zend_get_callable_name_ex(&fci->function_name, fci->object);
Expand Down

0 comments on commit 4a16fd5

Please sign in to comment.