From:             [EMAIL PROTECTED]
Operating system: red hat 7.2
PHP version:      4.2.3
PHP Bug Type:     Scripting Engine problem
Bug description:  function included from parent script gets lost

I have a cms site, and _two_ functions in particular are getting lost
somewhere within the execution of the script.

basically the script index.php calls:
index.php -> header.inc -> it_functions/it_db.php
           -> news/index.inc -> now.inc

when the script now.inc runs, it cant find two functions defined in
it_db.php: it_GetNextID & it_GetFieldNames. the exact error is

Fatal error: Call to undefined function: it_getnextid() in
/home/barnyard/public_html/cms/now.inc on line 113

I thought it may be memory_limit, which was 8M & i set it to 16M, but no
joy.

It seems only these two functions get lost. Ill try to reproduce the
problem with simple code a bit later when I get out of the office.

When we tried to include it_db.php from now.inc directly (immediately
preceding the call to it_GetNextID) the _first_ function in it_db.php
(connect_db) causes an error : 
Fatal error: Cannot redeclare connect_db() (previously declared in
/usr/local/lib/php/it_functions/it_db.php:5) in
/usr/local/lib/php/it_functions/it_db.php on line 5

The problem was solved by adding the two functions to the head of the file
now.inc. 
-- 
Edit bug report at http://bugs.php.net/?id=20607&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20607&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20607&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20607&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20607&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20607&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20607&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20607&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20607&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20607&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20607&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20607&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20607&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20607&r=isapi

Reply via email to