]> granicus.if.org Git - php/commitdiff
Fixlet
authorZeev Suraski <zeev@php.net>
Thu, 16 Jun 2005 13:31:21 +0000 (13:31 +0000)
committerZeev Suraski <zeev@php.net>
Thu, 16 Jun 2005 13:31:21 +0000 (13:31 +0000)
Zend/zend_language_scanner.l

index e0ba5a52a54e7e7f07d2dc62f706b14f2e32d362..465b570e37d6d4dd55dfb9db5eb6b4aa91429836 100644 (file)
@@ -501,7 +501,7 @@ ZEND_API int zend_get_scanned_file_offset(TSRMLS_D)
 {
        if (yyin) {
                int offset_in_buffer = (yy_c_buf_p - (YY_CURRENT_BUFFER)->yy_ch_buf);
-               int read_bytes = (YY_CURRENT_BUFFER)->yy_n_chars;
+               int read_bytes = SCNG(yy_n_chars);
                int offset_from_the_end = read_bytes - offset_in_buffer;
 
                return zend_stream_ftell(yyin TSRMLS_CC) - offset_from_the_end;