History log of /PHP_TRUNK/ext/standard/url_scanner_ex.re
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c3e3c98 25-Aug-2014 Anatol Belski <ab@php.net> master renames phase 1
/php-src/ext/standard/url_scanner_ex.re
b108267 18-Jun-2014 Dmitry Stogov <dmitry@zend.com> Merge branch 'master' into phpng

* master: (41 commits)
Update copyright year to 2014
Update copyright year to 2014
Update copyright year to 2014
Update copyright year to 2014
Update copyright year to 2014
Update copyright year to 2014
Update copyright year to 2014
NEWS
Fix Request #67453 Allow to unserialize empty data.
Update copyright year to 2014
Update copyright year for re2c generated files
Update copyright year to 2014
Update copyright year for re2c files as well
Fix patch for bug #67436
fix failed test
Fix test on modern distro where old unsecure algo are disabled in openssl config. Testing recent algo should be enough to check this function.
Added tests for bug 67436
Fixed wrong XFAIL test - already fixed
Fix typo in Bug #67406 NEWS entry
Fix typo in Bug #67406 NEWS entry
...

Conflicts:
Zend/zend_compile.c
ext/session/session.c
ext/standard/array.c
ext/standard/http_fopen_wrapper.c
tests/classes/bug63462.phpt
e667d23 16-Jun-2014 Lior Kaplan <kaplanlior@gmail.com> Update copyright year for re2c files as well
/php-src/ext/standard/url_scanner_ex.re
35199a3 30-Mar-2014 Xinchen Hui <laruence@gmail.com> Fixed null pointer dereference
/php-src/ext/standard/url_scanner_ex.re
5c1595c 29-Mar-2014 Xinchen Hui <laruence@gmail.com> Refactor session (incompleted)
/php-src/ext/standard/url_scanner_ex.re
3647fc6 28-Mar-2014 Xinchen Hui <laruence@gmail.com> Refactor session (incompleted)
/php-src/ext/standard/url_scanner_ex.re
1b2b7f4 18-Mar-2014 Dmitry Stogov <dmitry@zend.com> Fixed URL scanner
/php-src/ext/standard/url_scanner_ex.re
3e93cd9 03-Mar-2014 Xinchen Hui <laruence@gmail.com> Fixed serval segfaults
/php-src/ext/standard/url_scanner_ex.re
07eb0f4 03-Mar-2014 Xinchen Hui <laruence@gmail.com> Fixed NULL pointer def
/php-src/ext/standard/url_scanner_ex.re
b07d591 03-Mar-2014 Xinchen Hui <laruence@gmail.com> Refactor php_url_(en|de)code to return zend_string
/php-src/ext/standard/url_scanner_ex.re
43b03c7 18-Feb-2014 Xinchen Hui <laruence@gmail.com> Refacting smart_str
/php-src/ext/standard/url_scanner_ex.re
2b9b9af 17-Feb-2014 Dmitry Stogov <dmitry@zend.com> Use better data structures (incomplete)
/php-src/ext/standard/url_scanner_ex.re
40e053e 13-Feb-2014 Dmitry Stogov <dmitry@zend.com> Use better data structures (incomplete)
/php-src/ext/standard/url_scanner_ex.re
f4cfaf3 10-Feb-2014 Dmitry Stogov <dmitry@zend.com> Use better data structures (incomplete)
/php-src/ext/standard/url_scanner_ex.re
9ad97cd 15-Aug-2013 Christopher Jones <sixd@php.net> Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
/php-src/ext/standard/url_scanner_ex.re
e6ae977 17-Jul-2013 Arpad Ray <arraypad@gmail.com> Fixed bug #50308 - session id not appended properly for empty anchor tags

The issue was actually because a lack of space before a "/" marking the tag
as empty. This was being swallowed in the rule for unquoted values. Fixed
by making that rule exclude quotes (as per spec anyway).
/php-src/ext/standard/url_scanner_ex.re
0a7395e 01-Jan-2013 Xinchen Hui <laruence@php.net> Happy New Year
/php-src/ext/standard/url_scanner_ex.re
a3d078b 05-Sep-2012 Xinchen Hui <laruence@php.net> correct PHP version & year++
/php-src/ext/standard/url_scanner_ex.re
74de7dd 28-Jul-2011 Pierre Joye <pajoye@php.net> - Fix #55301 (url scanner part) check if malloc succeded
/php-src/ext/standard/url_scanner_ex.re
1056c57 24-May-2011 Michael Wallner <mike@php.net> MFH: Fix Bug #54727, a re-incarnation of #26862
/php-src/ext/standard/url_scanner_ex.re
cb50011 23-Sep-2010 Kalle Sommer Nielsen <kalle@php.net> Fixed compiler warnings in the standard library
/php-src/ext/standard/url_scanner_ex.re
11d24c1 31-May-2010 Michael Wallner <mike@php.net> * implement new output API, fixing some bugs and implementing some feature
requests--let's see what I can dig out of the bugtracker for NEWS--
and while crossing the road:
* implemented new zlib API
* fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)

Thanks to Jani and Felipe for pioneering.
/php-src/ext/standard/url_scanner_ex.re
af49e58 12-Mar-2010 Jani Taskinen <jani@php.net> - Reverted r296062 and r296065
/php-src/ext/standard/url_scanner_ex.re
06f072c 11-Mar-2010 Jani Taskinen <jani@php.net> MFH: Improved / fixed output buffering (Michael Wallner)
/php-src/ext/standard/url_scanner_ex.re
8877a37 26-Jul-2009 Jani Taskinen <jani@php.net> - Fixed bug #49064 (--enable-session=shared does not work: undefined symbol:
php_url_scanner_reset_vars). (Jani)

# Note: This does not exist in PHP_5_2. Merged there as well to keep these files synced.
/php-src/ext/standard/url_scanner_ex.re
5076296 12-Mar-2008 Felipe Pena <felipe@php.net> Sync with fix for #44394
/php-src/ext/standard/url_scanner_ex.re
7741367 10-Oct-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #42869 (automatic session id insertion adds sessions id to
non-local forms)
/php-src/ext/standard/url_scanner_ex.re
c38ad55 06-Jun-2007 Ilia Alshanetsky <iliaa@php.net> Fixed bug #41600 (url rewriter tags doesn't work with namespaced tags).
/php-src/ext/standard/url_scanner_ex.re
3022080 28-Feb-2006 Ilia Alshanetsky <iliaa@php.net> Fixed bug #36459 (Incorrect adding PHPSESSID to links, which contains \r\n).
/php-src/ext/standard/url_scanner_ex.re
e3fd315 01-Jan-2006 foobar <sniper@php.net> bump the year and license version
/php-src/ext/standard/url_scanner_ex.re
23e671a 03-Aug-2005 foobar <sniper@php.net> - Bumber up year
/php-src/ext/standard/url_scanner_ex.re
b2858fb 03-Apr-2005 Antony Dovgal <tony2001@php.net> fix output_reset_rewrite_vars() returning false everytime
/php-src/ext/standard/url_scanner_ex.re
71ea389 10-Jan-2005 foobar <sniper@php.net> Missing $Id$ tag
/php-src/ext/standard/url_scanner_ex.re
70d78cf 23-Jul-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #29333 (output_buffering + trans_sess_id can corrupt output).
/php-src/ext/standard/url_scanner_ex.re
05a9f54 12-May-2004 Marcus Boerger <helly@php.net> - Move hash table destruction to proper location
/php-src/ext/standard/url_scanner_ex.re
0fc2bb9 11-Feb-2004 Ilia Alshanetsky <iliaa@php.net> Fixed bug #26862 (ob_flush() followed by output_reset_rewrite_vars() may
result in data loss).
/php-src/ext/standard/url_scanner_ex.re
ccfc46b 08-Jan-2004 foobar <sniper@php.net> - Happy new year and PHP 5 for rest of the files too..
# Should the LICENSE and Zend/LICENSE dates be updated too?
/php-src/ext/standard/url_scanner_ex.re
f68c7ff 10-Jun-2003 James Cox <imajes@php.net> updating license information in the headers.
/php-src/ext/standard/url_scanner_ex.re
0c5548e 16-Apr-2003 Moriyoshi Koizumi <moriyoshi@php.net> Fixed implicit cast issue with is*() and to*() functions
/php-src/ext/standard/url_scanner_ex.re
65b9a40 11-Mar-2003 Sascha Schumann <sas@php.net> fix sizeof(size_t) > sizeof(uint) issue
/php-src/ext/standard/url_scanner_ex.re
dfb0d70 11-Mar-2003 Sascha Schumann <sas@php.net> reverting jani's non-sense commits
/php-src/ext/standard/url_scanner_ex.re
7a1eced 10-Mar-2003 foobar <sniper@php.net> 64bit issue fixed
/php-src/ext/standard/url_scanner_ex.re
e1802d7 12-Feb-2003 Ilia Alshanetsky <iliaa@php.net> Fixed bug #22048 (incorrect insertion of session id when tabs are used to
separate tag elements).
/php-src/ext/standard/url_scanner_ex.re
aa9bb5a 30-Sep-2002 Sascha Schumann <sas@php.net> Fix my stupid mistake which broke <form> handling
/php-src/ext/standard/url_scanner_ex.re
41c0b43 25-Sep-2002 Sascha Schumann <sas@php.net> Allow - as part of an attribute

PR: #19573
/php-src/ext/standard/url_scanner_ex.re
7af64ef 25-Sep-2002 Sascha Schumann <sas@php.net> Fix #13472 by making it possible to append the <input> stuff after
<fieldset> for xhtml compliance.
/php-src/ext/standard/url_scanner_ex.re
3cadece 25-Sep-2002 Sascha Schumann <sas@php.net> Allow malformed HTML such as

<a onClick=window.open("/hardware/somevar.php?hinfoid=","chgti") ..>

where ["'] are part of the attribute value.
/php-src/ext/standard/url_scanner_ex.re
7bd7e14 20-Aug-2002 Marcus Boerger <helly@php.net> Changed handling of output buffer sizes.
#.c to follow
/php-src/ext/standard/url_scanner_ex.re
21903df 10-Aug-2002 Marcus Boerger <helly@php.net> corrected handling of internal output buffers
minor fixs
/php-src/ext/standard/url_scanner_ex.re
5a0c283 29-Jun-2002 Thies C. Arntzen <thies@php.net> fix leak
/php-src/ext/standard/url_scanner_ex.re
23251eb 05-May-2002 Thies C. Arntzen <thies@php.net> re-add accidentily nuked session_adapt_url()
/php-src/ext/standard/url_scanner_ex.re
c8f884f 05-May-2002 Sascha Schumann <sas@php.net> the output buffer is flushed during request shutdown before it
reaches our rshutdown, so it is safe to delete the contents of
the url rewriter variables here.
/php-src/ext/standard/url_scanner_ex.re
9743860 04-May-2002 Sascha Schumann <sas@php.net> simplify handling of variables by maintaining two strings which
are simply appended instead of traversing the hash table on each
URL/form.

also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.

remove remove_var, add reset_vars. move the function declarations
into the right header file.
/php-src/ext/standard/url_scanner_ex.re
2a4dea6 04-May-2002 Sascha Schumann <sas@php.net> include url.h to pull in declaration of php_url_encode
/php-src/ext/standard/url_scanner_ex.re
9712a4b 03-May-2002 Thies C. Arntzen <thies@php.net> @ - Added output_add_rewrite_var() and output_remove_rewrite_var() to inject
@ and remove variables from the URL-Rewriter. (thies)
i have also modified the session module to use this - so it doesn't
need to fiddle with the output-system any more
/php-src/ext/standard/url_scanner_ex.re
42158ef 28-Apr-2002 Thies C. Arntzen <thies@php.net> revert session_set_userdata - diffent patch will come shortly
/php-src/ext/standard/url_scanner_ex.re
eb10569 27-Apr-2002 Thies C. Arntzen <thies@php.net> @ - added session_set_userdata() which enables you to specify one variable
@ that will be kept in the browser in addition to the session-id. This
@ only works when using trans-sid sessions (no cookie). (thies)
/php-src/ext/standard/url_scanner_ex.re
bc977dd 25-Apr-2002 jim winstead <jimw@php.net> Do not add redundant id attribute. It doesn't make the output any
more standards compliant.
/php-src/ext/standard/url_scanner_ex.re
4a834df 25-Apr-2002 Derick Rethans <derick@php.net> - Fix for bug 16810 (XHTML compliance)
/php-src/ext/standard/url_scanner_ex.re
5428e46 26-Mar-2002 Sascha Schumann <sas@php.net> If an argument (<tag val=argument..) was not quoted, leave it that way.
/php-src/ext/standard/url_scanner_ex.re
cd5f860 04-Mar-2002 Sascha Schumann <sas@php.net> Restore use of inline
/php-src/ext/standard/url_scanner_ex.re
8b5411b 01-Mar-2002 Derick Rethans <derick@php.net> - Fix for Sun WorkShop 6 update 2 compiler (Bug #15812)
/php-src/ext/standard/url_scanner_ex.re
90613d2 28-Feb-2002 Sebastian Bergmann <sebastian@php.net> Maintain headers.
/php-src/ext/standard/url_scanner_ex.re
3893351 11-Dec-2001 Sebastian Bergmann <sebastian@php.net> Update headers.
/php-src/ext/standard/url_scanner_ex.re
4c69a97 11-Sep-2001 Sascha Schumann <sas@php.net> Remove some unused variables
/php-src/ext/standard/url_scanner_ex.re
2bbbec1 10-Sep-2001 Sascha Schumann <sas@php.net> A round of "d'ohs" for me, please.

We must not stop scanning after finding a "?", because we
need the information regarding the "#".
/php-src/ext/standard/url_scanner_ex.re
de963ce 09-Sep-2001 Sascha Schumann <sas@php.net> Better fix for mark problem
/php-src/ext/standard/url_scanner_ex.re
c86c9f5 09-Sep-2001 Sascha Schumann <sas@php.net> Fix mark-handling
/php-src/ext/standard/url_scanner_ex.re
b781720 27-Aug-2001 Zeev Suraski <zeev@php.net> More fixes and refinements
/php-src/ext/standard/url_scanner_ex.re
d697a55 26-Aug-2001 Zeev Suraski <zeev@php.net> Fix my session updates.
trans_sid handling will no longer slow down performance unless a session
is actually in use.
/php-src/ext/standard/url_scanner_ex.re
b8763a6 25-Aug-2001 Zeev Suraski <zeev@php.net> Get rid of TRANS_SID - it's always possible to use it now.
/php-src/ext/standard/url_scanner_ex.re
13ff183 25-Aug-2001 Zeev Suraski <zeev@php.net> Move the trans-sid mechanism to use the output buffering mechanism.
Advantages:
- Would work with the output buffering mechanism in general, and with
output compression in particular
- Should yield better performance (untested as of yet)
/php-src/ext/standard/url_scanner_ex.re
480ffb3 05-Aug-2001 Sascha Schumann <sas@php.net> more tsrm cleanup
/php-src/ext/standard/url_scanner_ex.re
d87cc97 28-Jul-2001 Zeev Suraski <zeev@php.net> Redesigned thread safety mechanism - nua nua
/php-src/ext/standard/url_scanner_ex.re
ef13ab5 04-Jul-2001 Sascha Schumann <sas@php.net> Improve url scanner speed (up to 40% for large chunks of data)
and handle some corner cases better. The scanner has been changed
to the format as proposed in "RE2C - A More Versatile Scanner Generator"
by Cowan et al.
/php-src/ext/standard/url_scanner_ex.re
c34d2b9 04-Apr-2001 foobar <sniper@php.net> Added new configuration directives:
arg_separator.input and arg_separator.output
/php-src/ext/standard/url_scanner_ex.re
eb6ba01 26-Feb-2001 Andi Gutmans <andi@php.net> - Fix copyright notices with 2001
/php-src/ext/standard/url_scanner_ex.re
7eb8469 09-Jan-2001 Sascha Schumann <sas@php.net> Avoid possible memory leak in the URL scanner, if the connection is
interrupted during writing the output.
/php-src/ext/standard/url_scanner_ex.re
ba114dc 02-Jan-2001 Chuck Hagenbuch <chagenbu@php.net> Make the generated <input> lower case and terminated with a /,
to be xhtml-compliant.
/php-src/ext/standard/url_scanner_ex.re
0b194cb 22-Dec-2000 Sascha Schumann <sas@php.net> Support multi-char arg separators.

PR: #8274
/php-src/ext/standard/url_scanner_ex.re
b97e23c 05-Dec-2000 Sascha Schumann <sas@php.net> Pass core_globals to new inline functions

Submitted by: Sebastian Bergmann
/php-src/ext/standard/url_scanner_ex.re
911abe1 04-Dec-2000 Sascha Schumann <sas@php.net> Move code from macros to inline functions to ease debugging
/php-src/ext/standard/url_scanner_ex.re
5767ab3 17-Nov-2000 Sascha Schumann <sas@php.net> Reset the state, if there is garbage in an HTML tag.

PR: #7854
/php-src/ext/standard/url_scanner_ex.re
648c141 01-Nov-2000 foobar <sniper@php.net> Validators are happy now.
/php-src/ext/standard/url_scanner_ex.re
c57830c 26-Oct-2000 Sascha Schumann <sas@php.net> Reinstantiate single quotes properly.

Add url_adapt_single_url() API which modifies a single URL. Might be used
to modify the Location: URL.
/php-src/ext/standard/url_scanner_ex.re
1d9acd8 19-Oct-2000 Sascha Schumann <sas@php.net> Hack for #7262, not fixed yet
/php-src/ext/standard/url_scanner_ex.re
d95bc9b 17-Oct-2000 Sascha Schumann <sas@php.net> Initialize tags properly.

Submitted by: Andreas Karajannis <Andreas.Karajannis@gmd.de>
/php-src/ext/standard/url_scanner_ex.re
2d24f03 17-Oct-2000 Sascha Schumann <sas@php.net> Back out ws changes
/php-src/ext/standard/url_scanner_ex.re
1f245a6 16-Oct-2000 Daniel Beulshausen <dbeu@php.net> make compile again
/php-src/ext/standard/url_scanner_ex.re
1c85ad0 16-Oct-2000 Sascha Schumann <sas@php.net> Enable users to set the HTML tags to rewrite
through a configuration directive
/php-src/ext/standard/url_scanner_ex.re
5674f1b 04-Oct-2000 Sascha Schumann <sas@php.net> Ignore close tags and use unsigned char type.
/php-src/ext/standard/url_scanner_ex.re
3823ad3 27-Sep-2000 Sascha Schumann <sas@php.net> Recognize single quotes around cdata.

Move smart_str functions to an extra file.
/php-src/ext/standard/url_scanner_ex.re
7db8740 26-Sep-2000 Sascha Schumann <sas@php.net> Unify memory allocation in smart_str functions
/php-src/ext/standard/url_scanner_ex.re
854c062 20-Sep-2000 Sascha Schumann <sas@php.net> Cleanup SCANNER_DEBUG and don't NUL terminate work buffer
/php-src/ext/standard/url_scanner_ex.re
cfa2254 20-Sep-2000 Sascha Schumann <sas@php.net> Use emalloc and friends. Since we reuse all buffers, this does not affect
the speed.

The smart_str_* functions don't NUL terminate strings anymore. We can
rely on the length of the strings completely.
/php-src/ext/standard/url_scanner_ex.re
16d7cb8 20-Sep-2000 Sascha Schumann <sas@php.net> Remove this pseudo optimization from the previous rewrite.

Since we leave/enter the loop more often, the cost of maintaining
c_arg/c_val is higher than simply copying the tag/arg string once.
/php-src/ext/standard/url_scanner_ex.re
f27f790 20-Sep-2000 Sascha Schumann <sas@php.net> Another 5%-10% speed increase achieved by

- making ctx->val read-only
- adding a special appendc function for appending single characters
/php-src/ext/standard/url_scanner_ex.re
7aa23d3 20-Sep-2000 Sascha Schumann <sas@php.net> Add support for URLs containing NAME info (for scrolling; #name).
/php-src/ext/standard/url_scanner_ex.re
a2dc8a2 20-Sep-2000 Sascha Schumann <sas@php.net> 2nd Rewrite of the main scanner engine. This version is cleaner and faster.

It handles the following tags currently:

<FRAME .. SRC=URL ..>
<INPUT .. TYPE=IMAGE SRC=URL ..>
<A .. HREF=URL ..>
<AREA .. HREF=URL ..>
<IMG .. SRC=URL ..>

Additional ones can be added within seconds.

The support for HTML forms has been significantly improved. The scanner
will now add proper Hidden Fields for the Session ID.
/php-src/ext/standard/url_scanner_ex.re
cc53ad5 19-Sep-2000 Sascha Schumann <sas@php.net> Reduce the amount of copying in the mainloop. We copy tag/arg only, if we
need to preserve them for a new loop iteration (after we leave mainloop).
Otherwise, we can just let them point to the work area.
/php-src/ext/standard/url_scanner_ex.re
dd59d14 19-Sep-2000 Sascha Schumann <sas@php.net> Revert part of last commit. I'll refine it later.
/php-src/ext/standard/url_scanner_ex.re
a7ef196 19-Sep-2000 Sascha Schumann <sas@php.net> Another speedup by avoiding string copies.

15% speed gain in test case (rewriting 1M URLs).
/php-src/ext/standard/url_scanner_ex.re
95ae21f 19-Sep-2000 Sascha Schumann <sas@php.net> Remove nextiter label
/php-src/ext/standard/url_scanner_ex.re
7f86b72 19-Sep-2000 Sascha Schumann <sas@php.net> s/DEBUG/SCANNER_DEBUG/. "Convert" one macro to inline function to be more
consistent. Also use continue.
/php-src/ext/standard/url_scanner_ex.re
5b0ca15 19-Sep-2000 Zeev Suraski <zeev@php.net> Fix a few build bugs, still no go
/php-src/ext/standard/url_scanner_ex.re
4b3fb7b 19-Sep-2000 Sascha Schumann <sas@php.net> Add new URL scanner. This version is up to 20% faster. It will be
enabled by default once I'm sure that it works in every case.

To enable it, apply s/url_adapt_ext/url_adapt_ext_ex/ to session.c
/php-src/ext/standard/url_scanner_ex.re