From:             [EMAIL PROTECTED]
Operating system: Linux
PHP version:      4.3.0RC3
PHP Bug Type:     *General Issues
Bug description:  require & require_once probs

since the update from 4.2.3 to 4.3.0RC3 I´ve found several scripts (i.e the
pdflib-test-scripts) which have probs with require() and require_once() !

If I have a "master" include file with the following content:
      // Include the classes
      if ( !defined( "INC" ) ) {
        /**
        * Include the main object
        *
        */
        require_once( "main.inc" );

        /**
        * Include the page object
        *
        */
        require_once( "page.inc" );

        ...

(main.inc and page.inc are in the same dir as the "master" include
(/include) ..)

I get following error when I run my script:
Fatal error: main() [function.main]: Failed opening required 'main.inc'
(include_path='.:/usr/local/lib/php:/home/www/web2/html/pdf/pc4p/include')
in /home/www/web2/html/pdf/pc4p/include/init.inc on line 36

if i change the require_once to include_once then everything works fine
....

best regards
Harald


-- 
Edit bug report at http://bugs.php.net/?id=21038&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=21038&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=21038&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=21038&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=21038&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=21038&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=21038&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=21038&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=21038&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=21038&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=21038&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21038&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=21038&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=21038&r=isapi

Reply via email to