|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #34541 =&new crashes the parser
Submitted: 2005-09-18 12:41 UTC Modified: 2005-09-26 01:00 UTC
From: drbob2 at tomjepp dot co dot uk Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.0.5 OS: Windows XP SP2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: drbob2 at tomjepp dot co dot uk
New email:
PHP Version: OS:


 [2005-09-18 12:41 UTC] drbob2 at tomjepp dot co dot uk
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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-18 12:45 UTC]
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.

 [2005-09-26 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Tue Sep 26 09:01:24 2023 UTC