From:             gabri dot ns at googlemail dot com
Operating system: Windows 98/XP
PHP version:      5.2.4
PHP Bug Type:     IIS related
Bug description:  fatal error on a strange causes

Description:
------------
Actually it isn't an IIS error, but ISAPI related.
I'm using Abyss Web Server 2.x and PHP 5.2.x on ISAPI interface.
This error doesn't exist when using CGI.

Don't ask me to change the interface to CGI.
I have tried it, but since I using low memory computer
it can't be done.

Thank's before.

Reproduce code:
---------------
<?php

function redirect($page = 'page')
{
        header('Location: '.$_SERVER['PHP_SELF']);
        exit();
}
redirect();

?>

Expected result:
----------------
infinite loop of redirecting

Actual result:
--------------
Fatal error: Cannot redeclare redirect() (previously declared in
G:\Gbr\AbyssWS\htdocs\crash.php:3) in G:\Gbr\AbyssWS\htdocs\crash.php on
line 3

-- 
Edit bug report at http://bugs.php.net/?id=43122&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=43122&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=43122&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=43122&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=43122&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=43122&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=43122&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=43122&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=43122&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=43122&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=43122&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=43122&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=43122&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=43122&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=43122&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=43122&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=43122&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=43122&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=43122&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=43122&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=43122&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=43122&r=mysqlcfg

Reply via email to