Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions UPGRADING.INTERNALS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ PHP 8.7 INTERNALS UPGRADE NOTES
1. Internal API changes
========================

- Removed zend_execute_scripts(). Manually call zend_execute_script() in a loop
instead.

========================
2. Build system changes
========================
Expand Down
24 changes: 0 additions & 24 deletions Zend/zend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1996,30 +1996,6 @@ ZEND_API zend_result zend_execute_script(int type, zval *retval, zend_file_handl
return ret;
}

ZEND_API zend_result zend_execute_scripts(int type, zval *retval, int file_count, ...) /* {{{ */
{
va_list files;
int i;
zend_file_handle *file_handle;
zend_result ret = SUCCESS;

va_start(files, file_count);
for (i = 0; i < file_count; i++) {
file_handle = va_arg(files, zend_file_handle *);
if (!file_handle) {
continue;
}
if (ret == FAILURE) {
continue;
}
ret = zend_execute_script(type, retval, file_handle);
}
va_end(files);

return ret;
}
/* }}} */

#define COMPILED_STRING_DESCRIPTION_FORMAT "%s(%d) : %s"

ZEND_API char *zend_make_compiled_string_description(const char *name) /* {{{ */
Expand Down
1 change: 0 additions & 1 deletion Zend/zend_compile.h
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,6 @@ ZEND_API zend_op_array *compile_filename(int type, zend_string *filename);
ZEND_API zend_op_array *zend_compile_ast(zend_ast *ast, int type, zend_string *filename);
ZEND_API zend_ast *zend_compile_string_to_ast(
zend_string *code, struct _zend_arena **ast_arena, zend_string *filename);
ZEND_API zend_result zend_execute_scripts(int type, zval *retval, int file_count, ...);
ZEND_API zend_result zend_execute_script(int type, zval *retval, zend_file_handle *file_handle);
ZEND_API zend_result open_file_for_scanning(zend_file_handle *file_handle);
ZEND_API void init_op_array(zend_op_array *op_array, zend_function_type type, int initial_ops_size);
Expand Down
4 changes: 2 additions & 2 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -949,9 +949,9 @@ feature development that cannot go into the new version.

* clear the `NEWS`, `UPGRADING`, and `UPGRADING.INTERNALS` files;
* update the version numbers in `configure.ac`, `main/php_version.h`,
`Zend/zend.h`, and `win32/build/confutils.js`;
`Zend/zend.h`, and `win32/build/confutils.js`; and
* update the API version numbers in `Zend/zend_extensions.h`,
`Zend/zend_modules.h`, and `main/php.h`; and
`Zend/zend_modules.h`, and `main/php.h`.

See [Prepare for PHP 8.2][] and [Prepare for PHP 8.2 (bis)][] for an example
of what this commit should include.
Expand Down
Loading