#34541 [Opn->Fbk]: =&new crashes the parser
| From: | tony2001@php.net | Date: | Sun, 18 Sep 2005 10:45:34 +0000 |
| Subject: | #34541 [Opn->Fbk]: =&new crashes the parser | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-85203@lists.php.net to get a copy of this message | ||
ID: 34541
Updated by: tony2001@php.net
Reported By: drbob2 at tomjepp dot co dot uk
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Windows XP SP2
PHP Version: 5.0.5
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2005-09-18 12:41:55] drbob2 at tomjepp dot co dot uk
Description:
------------
When require_once()ing a file with the provided code in a function, the
PHP parser crashes, and the browser is forced to return a connection
reset error.
If, however, you remove the "&" from the "=&new", it works fine.
(Yes, I know that sort of coding is deprecated; I was converting code
to PHP5 when the error appeared.)
(PHP5 CLI Apache2)
Reproduce code:
---------------
$this->trackbacks_handler=&new
trackback_handler(&$db_connection,&$login_connection,&$mail_connection,'blog');
Expected result:
----------------
My blog.
Actual result:
--------------
A Firefox (or IE, or any other browser) connection reset error page.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34541&edit=1