php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #25273 Seg. fault when specifying class name and passing parameter by reference.
Submitted: 2003-08-27 10:01 UTC Modified: 2003-11-28 20:44 UTC
From: dizza at students dot ru Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 5.0.0b1 (beta1) OS: FreeBSD 5.1
Private report: No CVE-ID: None
 [2003-08-27 10:01 UTC] dizza at students dot ru
Description:
------------
When specifying class name in the function parameter list 
and pass parameter by reference it causes segmentation 
fault. 

Reproduce code:
---------------
include_once "ClassName.php"

function test( ClassName &cn ) {

}

$cn = new ClassName();
test( $cn );

Expected result:
----------------
segmentation fault 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-28 20:44 UTC] sniper@php.net
Seems to work with latest CVS.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 25 00:00:02 2025 UTC