Skip to content

Commit ff06fb7

Browse files
committed
Fixlet
1 parent 7c26455 commit ff06fb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_language_scanner.l

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ ZEND_API int zend_get_scanned_file_offset(TSRMLS_D)
501501
{
502502
if (yyin) {
503503
int offset_in_buffer = (yy_c_buf_p - (YY_CURRENT_BUFFER)->yy_ch_buf);
504-
int read_bytes = (YY_CURRENT_BUFFER)->yy_n_chars;
504+
int read_bytes = SCNG(yy_n_chars);
505505
int offset_from_the_end = read_bytes - offset_in_buffer;
506506

507507
return zend_stream_ftell(yyin TSRMLS_CC) - offset_from_the_end;

0 commit comments

Comments
 (0)