ID: 23760
User updated by: php-general at pennysaverusa dot net
Reported By: php-general at pennysaverusa dot net
Status: Bogus
Bug Type: Apache related
Operating System: RedHat 7.3
PHP Version: 4.3.2RC4
New Comment:
Hi Sniper,
I have session_auto_start ON.
I didn't think that the extension was that meaningful (as is usually
the case in UNIX). I made it .php for security (so no one can list the
file in a browser). The docs did not seem to indicate that this would
be a problem.
Also, the docs now say you can use virtual with php.
It does crash... "child pid 7413 exit signal Segmentation
fault (11)" in apache error log.
If it won't/can't be fixed, I suggest:
1. improve the documentation to say what not to do.
2. have the virtual function give a warning or error if the user does
something bad.
Thank you,
Barry
Previous Comments:
------------------------------------------------------------------------
[2003-06-09 23:39:00] [EMAIL PROTECTED]
First of all, your example stuff is totally bogus.
. There is no session_start() anywhere
. You include pure html as php using virtual when you should be using
include()
Second, it never crashes, of course you don't get any core files.
Third, there are easier ways to shoot yourself in leg too,
but we still don't suggest you should do it.
Fourth, as long as you can't provide us any example that actually has
any far possibility on working and uses some
sane ways on doing things, this is bogus.
Phillip: virtual() might work for including php files, but the result
is still unpredictable..
------------------------------------------------------------------------
[2003-06-09 20:00:24] barrygould at pennysaverusa dot net
Philip, did you try the test files I linked?
Thanks,
Barry
------------------------------------------------------------------------
[2003-06-09 19:57:36] php-general at pennysaverusa dot net
Someone changed the online docs VERY recently, however I'm sure there
is a problem here.
I did "ulimit -c unlimited", and then ran apache manually (with all the
-DHAVEs) but no core file was produced.
Thanks,
Barry
------------------------------------------------------------------------
[2003-06-07 09:21:59] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[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.
------------------------------------------------------------------------
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