php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70200 Just testing PHP7
Submitted: 2015-08-06 10:04 UTC Modified: 2015-08-06 10:56 UTC
From: wantedxenon at hotmail dot com Assigned: cmb (profile)
Status: Not a bug Package: *General Issues
PHP Version: 7.0.0beta3 OS: Windows 8.1
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: wantedxenon at hotmail dot com
New email:
PHP Version: OS:

 

 [2015-08-06 10:04 UTC] wantedxenon at hotmail dot com
Description:
------------
function &OutputDefault( &$msg )
	{
		$os =& new COutString();
		$os->AddItem( CStr::n2e( $this->GetVal() ) );
		return $os;
	}

Test script:
---------------
PHP Parse error:  syntax error, unexpected 'new' (T_NEW)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-08-06 10:56 UTC] cmb@php.net
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: cmb
 [2015-08-06 10:56 UTC] cmb@php.net
"Assignment of new by reference" has already been deprecated since
PHP 5.3.0. As of PHP 7.0.0 it is an error. See
<https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7>.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 22:01:33 2024 UTC