[PHP-DEV] Bug #14288: HTTP_GET_VARS influenced by PHP_SELF

2001-11-29 Thread se

From: [EMAIL PROTECTED]
Operating system: SuSE7.2; Apache 1.3.20; mod_php4
PHP version:  4.0.6
PHP Bug Type: Variables related
Bug description:  HTTP_GET_VARS influenced by PHP_SELF

?php 
if($HTTP_GET_VARS[delete]){
echo delete;
}else{
echo don't delete;
}
?
html
head
/head
body
form action=?php echo $PHP_SELF;? method=POST name=form1
input type=text name=test
a href=javascript:document.form1.submit();Save/a
/form
a href=?php echo $PHP_SELF;??delete=truedelete/a
/body
/html

The script above don't work correctly. After clicking delete the
if-statement print delete. Then you click on Save and the if-statement
print delete just like you click on delete. 
If the echo $PHP_SELF in the form-tag will be replaced by the
plaintext-name of the script everything will work correctly - you can click
on Save then and the if-statement gives you a don't delete.

It seems like the $PHP_SELF stores the HTTP_GET_VARS, but if I do a echo
$PHP_SELF I get the script path, the script name and that's all, there are
no HTTP_GET_VARS - but the script still works like the HTTP_GET_VARS are
there.


-- 
Edit bug report at: http://bugs.php.net/?id=14288edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #14251: register_shutdown_function bug

2001-11-27 Thread se

From: [EMAIL PROTECTED]
Operating system: Linux Mandrake 8.0
PHP version:  4.1.0
PHP Bug Type: Unknown/Other Function
Bug description:  register_shutdown_function bug

Current directory in main program body and into shutdown function is not
same. Sometimes its changes to '/' or something else.

Try to execute this script and reload page some times:

?
set_time_limit(0);
ignore_user_abort(0);

function Test()
{
echo Shutdown function: , `pwd`;
};

echo Body: , `pwd`;

register_shutdown_function (Test);
?BR


-- 
Edit bug report at: http://bugs.php.net/?id=14251edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12995 Updated: Failed opening ... in Unknown on line 0

2001-08-30 Thread se

ID: 12995
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating System: SuSE Linux 7.2
PHP Version: 4.0.6
New Comment:

We found out, that this errors only happen when the server runs on a load above 1.0 .

Previous Comments:


[2001-08-28 07:04:30] [EMAIL PROTECTED]

I get this warning:
Warning: Failed opening 'path_to_a_script' for inclusion 
(include_path='.:/path/to/a/include/directory') in Unknown on line 0

Sometimes everything works fine, sometimes don't - without changing anything in the 
php.ini or httpd.conf . A few days ago I updated from php4.0.4 to php4.0.6 and after 
that the problems begann. 
All parameters in 4.0.6 are the same than in 4.0.4.

Do you need more informations?

Bye,
Sascha Emondts





Edit this bug report at http://bugs.php.net/?id=12995edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12995: Failed opening ... in Unknown on line 0

2001-08-28 Thread se

From: [EMAIL PROTECTED]
Operating system: SuSE Linux 7.2
PHP version:  4.0.6
PHP Bug Type: Filesystem function related
Bug description:  Failed opening ... in Unknown on line 0

I get this warning:
Warning: Failed opening 'path_to_a_script' for inclusion
(include_path='.:/path/to/a/include/directory') in Unknown on line 0

Sometimes everything works fine, sometimes don't - without changing
anything in the php.ini or httpd.conf . A few days ago I updated from
php4.0.4 to php4.0.6 and after that the problems begann. 
All parameters in 4.0.6 are the same than in 4.0.4.

Do you need more informations?

Bye,
Sascha Emondts
-- 
Edit bug report at: http://bugs.php.net/?id=12995edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]