File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / session / tests / bug50308.phpt
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 14 08:02:30 2013 UTC (10 years, 8 months ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, HEAD
v 5.4.20

    1: --TEST--
    2: Bug #50308 (session id not appended properly for empty anchor tags)
    3: --SKIPIF--
    4: <?php include('skipif.inc'); ?>
    5: --INI--
    6: session.name=PHPSESSID
    7: session.save_handler=files
    8: session.use_trans_sid=1
    9: session.use_only_cookies=0
   10: --FILE--
   11: <?php
   12: @session_start();
   13: ?>
   14: <a href=""/>
   15: <a href="" />
   16: <a href="foo"/>
   17: <a href="foo" />
   18: <a href=foo/>
   19: <a href=/>
   20: <a href=?foo=bar/>
   21: <a href="?foo=bar"/>
   22: --EXPECTF--
   23: <a href="?PHPSESSID=%s"/>
   24: <a href="?PHPSESSID=%s" />
   25: <a href="foo?PHPSESSID=%s"/>
   26: <a href="foo?PHPSESSID=%s" />
   27: <a href=foo/?PHPSESSID=%s>
   28: <a href=/?PHPSESSID=%s>
   29: <a href=?foo=bar/&PHPSESSID=%s>
   30: <a href="?foo=bar&PHPSESSID=%s"/>

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