1
0
mirror of https://github.com/php/php-src.git synced 2026-04-14 03:22:58 +02:00

Remove deprecated code

This commit is contained in:
Dmitry Stogov
2021-03-13 01:04:43 +03:00
parent fe3dbe5294
commit d5a15d2c91

View File

@@ -547,12 +547,6 @@ ZEND_API zend_result open_file_for_scanning(zend_file_handle *file_handle)
ZEND_ASSERT(!EG(exception) && "stream_fixup() should have failed");
zend_llist_add_element(&CG(open_files), file_handle);
if (file_handle->handle.stream.handle >= (void*)file_handle && file_handle->handle.stream.handle <= (void*)(file_handle+1)) {
zend_file_handle *fh = (zend_file_handle*)zend_llist_get_last(&CG(open_files));
size_t diff = (char*)file_handle->handle.stream.handle - (char*)file_handle;
fh->handle.stream.handle = (void*)(((char*)fh) + diff);
file_handle->handle.stream.handle = fh->handle.stream.handle;
}
/* Reset the scanner for scanning the new file */
SCNG(yy_in) = file_handle;