#21886 [Opn]: parameters sometimes not submitted *UPDATE*
| From: | technik at infoworxx dot de | Date: | Wed, 05 Mar 2003 13:37:35 +0000 |
| Subject: | #21886 [Opn]: parameters sometimes not submitted *UPDATE* | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-34878@lists.php.net to get a copy of this message | ||
ID: 21886
User updated by: technik at infoworxx dot de
Reported By: technik at infoworxx dot de
Status: Open
Bug Type: Session related
Operating System: Linux 7.2
PHP Version: 4.3.2-dev
New Comment:
Hi !
means this that you have fixed it (in the newest cvs) ?
Previous Comments:
------------------------------------------------------------------------
[2003-03-05 06:39:34] sniper@php.net
updated the version..
------------------------------------------------------------------------
[2003-03-05 03:36:29] technik at infoworxx dot de
Hi,
with the CVS Version it is the same behaviour - the function does not
recieve the parameters.
Regards,
Sebastian
------------------------------------------------------------------------
[2003-03-04 19:39:57] sniper@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
------------------------------------------------------------------------
[2003-03-04 08:01:32] technik at infoworxx dot de
One more thing - same behavior under 4.3.0 and 4.3.1 !
------------------------------------------------------------------------
[2003-03-04 07:59:49] technik at infoworxx dot de
Hi @all,
sorry for that long time to answer - a lot things to do in the last
weeks :-(
Finally I have figured out under what circumstances the behaviour
occurs.
Here is an clean sample code:
---- index.phtml ----
<?
// Classes //
require_once "foo-class.php4";
// test-class //
$foo = new fooclass();
@error_log("Start with: ".$_SERVER["REQUEST_URI"],0);
// start a session.
session_start();
// if $unintialized is set to something, everything is fine.
// $uninitalized="test";
$save_hid=$uninitalized;
$sess_action="two";
session_register('sess_action');
session_register('save_hid');
// and now the problem - $dummy will not be given to the function
$dummy=$_SERVER["PHP_SELF"]."?step=2";
@error_log("var dummy: ".$dummy,0);
$foo->samplefunc($dummy);
exit;
?>
---- END index.phtml ----
---- foo-class.php4 ----
<?
// file: foo-class.php4
class fooclass {
function samplefunc($pathInfo) {
@error_log("SESSION [redirectTo]: Parameter: ".$pathInfo,0);
}
}
?>
---- END foo-class.php4 ----
And here my Syslog when I try to open the page the first time - when I
do an refresh everything is fine !!!!!
---- error_log ----
[Tue Mar 4 14:53:38 2003] [error] Start with: /php-4.3.x-test/
[Tue Mar 4 14:53:38 2003] [error] var dummy:
/php-4.3.x-test/index.phtml?step=2
[Tue Mar 4 14:53:38 2003] [error] SESSION [redirectTo]: Parameter:
---- END error_log ----
As you can see, the function in my foo-class do not recieve their
parameters. This only happens if the $unintialized var in index.phtml
is uninitialized.
If you need anything more, please let me know.
Again - with 4.2.3 there were no those behaviour.
I know - an unintilized var is not good - but I guess there should not
be such an error.
Regards,
Sebastian
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/21886
--
Edit this bug report at http://bugs.php.net/?id=21886&edit=1