Skip to content

Commit

Permalink
Remove deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
dstogov committed Mar 12, 2021
1 parent fe3dbe5 commit d5a15d2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Zend/zend_language_scanner.l
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d5a15d2

Please sign in to comment.