#23195 [NEW]: Use of $_POST/$_SESSION causes a endless loop
| From: | jc at mega-bucks dot co dot jp | Date: | Mon, 14 Apr 2003 06:15:09 +0000 |
| Subject: | #23195 [NEW]: Use of $_POST/$_SESSION causes a endless loop | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-37632@lists.php.net to get a copy of this message | ||
From: jc at mega-bucks dot co dot jp
Operating system: Red Hat Linux 8.0
PHP version: 4.3.2RC1
PHP Bug Type: Reproducible crash
Bug description: Use of $_POST/$_SESSION causes a endless loop
The following piece of code never terminates:
<?php
while (list($k, $v) = each( $_POST )) {
if(strstr($k, "CHANGE_DEL_DATES")) {
session_set_post_vars( $_POST );
}
}
function session_set_post_vars($post) {
$_SESSION["S_POST_VALUES"] = $post;
}
?>
The contents of the $_POST superglobal were:
Array
(
[CURRENT_DEL_METHOD] => YAMATO
[DEL_YEAR1] => 2003
[DEL_MONTH1] => 04
[DEL_DAY1] => 12
[ptime1] => 1
[DEL_YEAR2] => 2003
[DEL_MONTH2] => 04
[DEL_DAY2] => 12
[DEL_YEAR3] => 2003
[DEL_MONTH3] => 04
[DEL_DAY3] => 12
[DELIVER_ANYDAY] => on
[CHANGE_DEL_DATES_x] => 14
[CHANGE_DEL_DATES_y] => 7
)
--
Edit bug report at http://bugs.php.net/?id=23195&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23195&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23195&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23195&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23195&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23195&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23195&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23195&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23195&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23195&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23195&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23195&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23195&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23195&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23195&r=gnused