#31647 [NEW]: output_add_rewrite_var and multiple vars
| From: | jeff at wecreate dot com | Date: | Fri, 21 Jan 2005 20:54:57 +0000 |
| Subject: | #31647 [NEW]: output_add_rewrite_var and multiple vars | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-72619@lists.php.net to get a copy of this message | ||
From: jeff at wecreate dot com
Operating system: Linux / Apache
PHP version: 4.3.10
PHP Bug Type: Output Control
Bug description: output_add_rewrite_var and multiple vars
Description:
------------
multiple calls to output_add_rewrite_var() with identical vars creates
multiple entries on the link.
Reproduce code:
---------------
output_add_rewrite_var("var","a");
output_add_rewrite_var("var","b");
echo '<a href="test.php">test</a>';
Expected result:
----------------
<a href="test.php?var=b">test</a>
Actual result:
--------------
<a href="test.php?var=a&var=b">test</a>
this is useless as var can only have one value.
--
Edit bug report at http://bugs.php.net/?id=31647&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31647&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31647&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31647&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=31647&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=31647&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=31647&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=31647&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=31647&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=31647&r=support
Expected behavior: http://bugs.php.net/fix.php?id=31647&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=31647&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=31647&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=31647&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31647&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=31647&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=31647&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=31647&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=31647&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=31647&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=31647&r=mysqlcfg