ID: 23760 Updated by: [EMAIL PROTECTED] Reported By: php-general at pennysaverusa dot net -Status: Open +Status: Feedback -Bug Type: Documentation problem +Bug Type: Apache related Operating System: RedHat 7.3 PHP Version: 4.3.2RC4 New Comment:
virtual() works fine on PHP files, as documented (although I can't test old versions), so I believe sniper was just mistaken and don't see anything here to document. Barry, are you sure you set the ulimit before the backtrace? That's extremely important. I'm unable to reproduce and changing back to Apache related. Previous Comments: ------------------------------------------------------------------------ [2003-06-07 05:04:30] [EMAIL PROTECTED] What sniper says is not in line with the current manual. The current manual says that as of PHP 4.0.6 virtual() can be used on PHP files. So the manual is not correct I assume. Changing this to be a doc problem. ------------------------------------------------------------------------ [2003-05-27 13:43:18] php-general at pennysaverusa dot net I am aware of that. However, this was not a PHP file. It is merely an html file with a .php extension. There is no good reason for it to segfault. If the policy is that .php files will not be loaded with virtual, then DON'T LOAD IT. GIVE AN ERROR. DON'T RANDOMLY CRASH. Random crashes are inexcusable. At least try to make the software idiot-proof. Give the idiot an error or warning message. At least, the documentation for virtual should mention this problem if it's not going to be fixed. Thank you, Barry Gould ------------------------------------------------------------------------ [2003-05-23 20:53:22] [EMAIL PROTECTED] FYI: Using virtual() for this is absolutely useless, you really should be using include(). And as manual says: "virtual() cannot be used to include a document which is itself a PHP file." As otherwise the results are unpredictable.. (I didn't get any crash anyway) ------------------------------------------------------------------------ [2003-05-23 20:38:23] php-general at pennysaverusa dot net OK. To reproduce this, please download: http://www2.pennysaverusa.com/barry/virtual_php_crash.tgz Tested on RC3 and RC4 and php4-STABLE-200305222330 all segfault. Notes: 1 unset session variable is _not_ enough to trigger the crash. 2 variables seems to be sufficient on my server. The head and footer files are plain html. I named them with .php out of habit. With .txt, it does not crash. I know php won't (or at least shouldn't) parse them as php when using virtual, so I see no reasonable excuse for it to crash. As I mentioned before, with DBG enabled or disabled, it still segfaults. Thanks, Barry Gould ------------------------------------------------------------------------ [2003-05-22 16:18:24] [EMAIL PROTECTED] Please provide a complete, self-contained script(s) so we can try and reproduce this ourselves. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/23760 -- Edit this bug report at http://bugs.php.net/?id=23760&edit=1