version 1.1.1.1, 2012/02/21 23:48:02
|
version 1.1.1.2, 2012/05/29 12:34:43
|
Line 1
|
Line 1
|
/* Generated by re2c 0.13.5 on Fri Dec 31 23:52:51 2010 */ | /* Generated by re2c 0.13.5 on Mon May 23 12:29:55 2011 */ |
/* |
/* |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | | | PHP Version 6 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2006 The PHP Group | |
| Copyright (c) 1997-2006 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
Line 300 static void handle_form(STD_PARA)
|
Line 300 static void handle_form(STD_PARA)
|
static inline void handle_tag(STD_PARA) |
static inline void handle_tag(STD_PARA) |
{ |
{ |
int ok = 0; |
int ok = 0; |
int i; | unsigned int i; |
|
|
ctx->tag.len = 0; |
ctx->tag.len = 0; |
smart_str_appendl(&ctx->tag, start, YYCURSOR - start); |
smart_str_appendl(&ctx->tag, start, YYCURSOR - start); |
Line 940 static void php_url_scanner_output_handler(char *outpu
|
Line 940 static void php_url_scanner_output_handler(char *outpu
|
size_t len; |
size_t len; |
|
|
if (BG(url_adapt_state_ex).url_app.len != 0) { |
if (BG(url_adapt_state_ex).url_app.len != 0) { |
*handled_output = url_adapt_ext(output, output_len, &len, (zend_bool) (mode & (PHP_OUTPUT_HANDLER_END | PHP_OUTPUT_HANDLER_CONT) ? 1 : 0) TSRMLS_CC); | *handled_output = url_adapt_ext(output, output_len, &len, (zend_bool) (mode & (PHP_OUTPUT_HANDLER_END | PHP_OUTPUT_HANDLER_CONT | PHP_OUTPUT_HANDLER_FLUSH | PHP_OUTPUT_HANDLER_FINAL) ? 1 : 0) TSRMLS_CC); |
if (sizeof(uint) < sizeof(size_t)) { |
if (sizeof(uint) < sizeof(size_t)) { |
if (len > UINT_MAX) |
if (len > UINT_MAX) |
len = UINT_MAX; |
len = UINT_MAX; |
Line 959 static void php_url_scanner_output_handler(char *outpu
|
Line 959 static void php_url_scanner_output_handler(char *outpu
|
ctx->result.len = 0; |
ctx->result.len = 0; |
smart_str_free(&ctx->buf); |
smart_str_free(&ctx->buf); |
} else { |
} else { |
*handled_output = NULL; | *handled_output = estrndup(output, *handled_output_len = output_len); |
} |
} |
} else { |
} else { |
*handled_output = NULL; |
*handled_output = NULL; |
Line 974 PHPAPI int php_url_scanner_add_var(char *name, int nam
|
Line 974 PHPAPI int php_url_scanner_add_var(char *name, int nam
|
|
|
if (! BG(url_adapt_state_ex).active) { |
if (! BG(url_adapt_state_ex).active) { |
php_url_scanner_ex_activate(TSRMLS_C); |
php_url_scanner_ex_activate(TSRMLS_C); |
php_ob_set_internal_handler(php_url_scanner_output_handler, 0, "URL-Rewriter", 1 TSRMLS_CC); | php_output_start_internal(ZEND_STRL("URL-Rewriter"), php_url_scanner_output_handler, 0, PHP_OUTPUT_HANDLER_STDFLAGS TSRMLS_CC); |
BG(url_adapt_state_ex).active = 1; |
BG(url_adapt_state_ex).active = 1; |
} |
} |
|
|