Browse Source

Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags).

experimental/5.2-WITH_DRCP
Ilia Alshanetsky 19 years ago
parent
commit
c38ad55e8e
  1. 2
      NEWS
  2. 26
      ext/session/tests/bug41600.phpt
  3. 1187
      ext/standard/url_scanner_ex.c
  4. 3
      ext/standard/url_scanner_ex.re

2
NEWS

@ -9,6 +9,8 @@ PHP NEWS
- Fixed crash in ZipArchive::addEmptyDir when a directory already
exists (pecl bug #11216) (Pierre)
GD_RELEASE_VERSION, GD_EXTRA_VERSION and GD_VERSION_STRING. (Pierre)
- Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags).
(Ilia)
- Fixed bug #41596 (Fixed a crash inside pdo_pgsql on some non-well-formed
SQL queries). (Ilia)
- Fixed bug #41594 (Statement cache is flushed too frequently). (Tony)

26
ext/session/tests/bug41600.phpt

@ -0,0 +1,26 @@
--TEST--
Bug #41600 (url rewriter tags doesn't work with namespaced tags)
--SKIPIF--
<?php include('skipif.inc'); ?>
--INI--
session.use_cookies=0
session.cache_limiter=
session.use_trans_sid=1
arg_separator.output=&amp;
session.name=PHPSESSID
session.serialize_handler=php
session.save_handler=files
--FILE--
<?php
error_reporting(E_ALL);
session_id("abtest");
session_start();
?>
<a href="link.php?a=b">
<?php
session_destroy();
?>
--EXPECT--
<a href="link.php?a=b&amp;PHPSESSID=abtest">

1187
ext/standard/url_scanner_ex.c
File diff suppressed because it is too large
View File

3
ext/standard/url_scanner_ex.re

@ -93,6 +93,7 @@ PHP_INI_END()
any = [\000-\377];
N = (any\[<]);
alpha = [a-zA-Z];
alphanamespace = [a-zA-Z:];
alphadash = ([a-zA-Z] | "-");
*/
@ -291,7 +292,7 @@ state_plain:
state_tag:
start = YYCURSOR;
/*!re2c
alpha+ { handle_tag(STD_ARGS); /* Sets STATE */; passthru(STD_ARGS); if (STATE == STATE_PLAIN) goto state_plain; else goto state_next_arg; }
alphanamespace+ { handle_tag(STD_ARGS); /* Sets STATE */; passthru(STD_ARGS); if (STATE == STATE_PLAIN) goto state_plain; else goto state_next_arg; }
any { passthru(STD_ARGS); goto state_plain_begin; }
*/

Loading…
Cancel
Save