Diff for /embedaddon/php/Zend/zend_ini_scanner.l between versions 1.1 and 1.1.1.3

version 1.1, 2012/02/21 23:47:52 version 1.1.1.3, 2013/07/22 01:32:15
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | Zend Engine                                                          |     | Zend Engine                                                          |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |   | Copyright (c) 1998-2013 Zend Technologies Ltd. (http://www.zend.com) |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | This source file is subject to version 2.00 of the Zend license,     |     | This source file is subject to version 2.00 of the Zend license,     |
    | that is bundled with this package in the file LICENSE, and is        |     | that is bundled with this package in the file LICENSE, and is        |
Line 228  int zend_ini_open_file_for_scanning(zend_file_handle * Line 228  int zend_ini_open_file_for_scanning(zend_file_handle *
         char *buf;          char *buf;
         size_t size;          size_t size;
   
        if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE ||        if (zend_stream_fixup(fh, &buf, &size TSRMLS_CC) == FAILURE) {
                init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE 
        ) { 
                 return FAILURE;                  return FAILURE;
         }          }
   
           if (init_ini_scanner(scanner_mode, fh TSRMLS_CC) == FAILURE) {
                   zend_file_handle_dtor(fh TSRMLS_CC);
                   return FAILURE;
           }
   
         yy_scan_buffer(buf, size TSRMLS_CC);          yy_scan_buffer(buf, size TSRMLS_CC);
   
         return SUCCESS;          return SUCCESS;
Line 442  SECTION_VALUE_CHARS ([^$\n\r;"'\]\\]|("\\"{ANY_CHAR})| Line 445  SECTION_VALUE_CHARS ([^$\n\r;"'\]\\]|("\\"{ANY_CHAR})|
         return '=';          return '=';
 }  }
   
<ST_RAW>{RAW_VALUE_CHARS}+ { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */<ST_RAW>{RAW_VALUE_CHARS} { /* Raw value, only used when SCNG(scanner_mode) == ZEND_INI_SCANNER_RAW. */
         char *sc = NULL;
         while (YYCURSOR < YYLIMIT) {
                 switch (*YYCURSOR) {
                         case '\n':
                         case '\r':
                                 goto end_raw_value_chars;
                                 break;
                         case ';':
                                 if (sc == NULL) {
                                         sc = YYCURSOR;
                                 }
                                 /* no break */
                         default:
                                 YYCURSOR++;
                                 break;
                 }
         }
 end_raw_value_chars:
         yyleng = YYCURSOR - SCNG(yy_text);
 
         /* Eat trailing semicolons */
         while (yytext[yyleng - 1] == ';') {
                 yyleng--;
         }
 
         /* Eat leading and trailing double quotes */          /* Eat leading and trailing double quotes */
         if (yytext[0] == '"' && yytext[yyleng - 1] == '"') {          if (yytext[0] == '"' && yytext[yyleng - 1] == '"') {
                 SCNG(yy_text)++;                  SCNG(yy_text)++;
                 yyleng = yyleng - 2;                  yyleng = yyleng - 2;
           } else if (sc) {
                   YYCURSOR = sc;
                   yyleng = YYCURSOR - SCNG(yy_text);
         }          }
         RETURN_TOKEN(TC_RAW, yytext, yyleng);          RETURN_TOKEN(TC_RAW, yytext, yyleng);
 }  }

Removed from v.1.1  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>