php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
46 - 18 = ?
Subscribe to this entry?

 
 [2005-09-18 12:41 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-09-18 12:45 UTC] tony2001@php.net
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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 17:01:31 2024 UTC