ID: 42485 Updated by: [EMAIL PROTECTED] Reported By: marciomaianunes at hotmail dot com -Status: Open +Status: Bogus Bug Type: PHP options/info functions Operating System: windos xp PHP Version: 5.2.3 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2007-08-30 12:02:51] marciomaianunes at hotmail dot com Description: ------------ With the parameters "allow_url_fopen" = "on" and "allow_url_include" = "on" I can include URL like files, but I cannot declare the classes and cannot use the functions declared in the include file... Reproduce code: --------------- /* FILE PHPbug.php */ <?php // "allow_url_fopen" and "allow_url_include" is "on" define("DIR", "http://localhost:8080/MyClass.php"); require_once(DIR); $bug = new MyClass(); //ERROR, dont found the class... echo $bug->getNumber(); echo "<br>"; echo callFunction(); //ERROR, dont found the function... ?> /* FILE MyClass.php */ <?php class MyClass { public function getNumber() { return 100; } } function callFunction() { return "ok";} ?> Expected result: ---------------- I expect... 100 ok Actual result: -------------- Fatal error: Class 'MyClass' not found in C:\MARCIO\public_html\PHPbug.php on line 11 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42485&edit=1