|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-05-30 07:31 UTC] nickolasnikolic at hotmail dot com
[2005-05-30 15:45 UTC] sniper@php.net
[2005-06-07 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
Description: ------------ Uncommenting the last line will produce an odd error affilliated with __autoload: Warning: __autoload(simplexml_load_file.class.php) [function.--autoload]: failed to open stream: No such file or directory in C:\Program Files\SpikeSource\oss\httpd\htdocs\blindcore\classes\test.usage.only.php on line 4 Fatal error: __autoload() [function.require]: Failed opening required 'simplexml_load_file.class.php' (include_path='.;C:\dev\php5\pear') in C:\Program Files\SpikeSource\oss\httpd\htdocs\blindcore\classes\test.usage.only.php on line 4 The server is spikesource's stack. If you need more info, please email. I hope that it helps! Reproduce code: --------------- Source class: public function sendFullRequest( $sendFullRequestURL = NULL ){ // If the message to send to Amazon has been set. if( $sendFullRequestURL ){ // Then sent the request to Amazon $fileHolder = file_get_contents( $sendFullRequestURL ); // Return the message that has been set to Amazon for checking. return $fileHolder; }else{ // Otherwise, note that something unextpected has occurred. return "An error occurred in base class AmazonMessageOut. \$sendFullRequestURL is not set."; } } } Called Instance: // Autoload classes function __autoload( $className ){ require_once $className . '.class.php'; } $messageOut = new AmazonOperation(); $messageOut->setCurrentOperation( $messageOut->OperationItemLookup ); $messageOut->setCurrentResponseGroup( $messageOut->ResponseMedium ); $messageIn = new AmazonResponse(); $nowAString = $messageIn->getAmazonXml( $messageOut->itemLookup( "0375826688" ) ); echo $nowAString; // $messageIn->loadXmlFile( $nowAString ); Expected result: ---------------- No errors and the Amazon XML loads Actual result: -------------- As was said, the following errors for PHP-native functions: Warning: __autoload(simplexml_load_file.class.php) [function.--autoload]: failed to open stream: No such file or directory in C:\Program Files\SpikeSource\oss\httpd\htdocs\blindcore\classes\test.usage.only.php on line 4 Fatal error: __autoload() [function.require]: Failed opening required 'simplexml_load_file.class.php' (include_path='.;C:\dev\php5\pear') in C:\Program Files\SpikeSource\oss\httpd\htdocs\blindcore\classes\test.usage.only.php on line 4