From:             [EMAIL PROTECTED]
Operating system: Apache/1.3.23 (Unix) PHP/4.1.2 m
PHP version:      4.1.2
PHP Bug Type:     Scripting Engine problem
Bug description:  include_once Broken?

It seems that the "include_once" function no longer works?

<?php
include_once("http://www.mySite.com/getUserID";);
include_once("http://www.mySite.com/getUserID";);
?>

"getUserID" contains something to the effect of...

<?php
function getID()
{
    //create empty array
    $id = array();
.......
    return ($id);
}
?>

Upon execution of the second "include_once" you'll receive an error....

Fatal error: Cannot redeclare getID() in http://www.mySite.com/getUserID
on line 2

-- 
Edit bug report at http://bugs.php.net/?id=16150&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=16150&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=16150&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=16150&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=16150&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16150&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=16150&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=16150&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=16150&r=submittedtwice

Reply via email to