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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: dizza at students dot ru
New email:
PHP Version: OS:

 

 [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: Sat Jul 26 00:00:03 2025 UTC