#34541 [NEW]: =&new crashes the parser
| From: | drbob2 at tomjepp dot co dot uk | Date: | Sun, 18 Sep 2005 10:41:57 +0000 |
| Subject: | #34541 [NEW]: =&new crashes the parser | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-85202@lists.php.net to get a copy of this message | ||
From: drbob2 at tomjepp dot co dot uk
Operating system: Windows XP SP2
PHP version: 5.0.5
PHP Bug Type: Reproducible crash
Bug description: =&new crashes the parser
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 bug report at http://bugs.php.net/?id=34541&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34541&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34541&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34541&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34541&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34541&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34541&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34541&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34541&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34541&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34541&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34541&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34541&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34541&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34541&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34541&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34541&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34541&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34541&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34541&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34541&r=mysqlcfg