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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

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: Thu Dec 26 12:01:30 2024 UTC