php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #24348 extension functions can't return by reference
Submitted: 2003-06-26 11:41 UTC Modified: 2013-10-28 21:21 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: hartmut@php.net Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 5CVS-2003-06-26 (dev) OS: *
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: hartmut@php.net
New email:
PHP Version: OS:

 

 [2003-06-26 11:41 UTC] hartmut@php.net
Description:
------------
functions implemented in a C extension can't return
by reference while native PHP functions can
(although one would expect that you can do *more*
with a function implemented in C, not *less*)

this first came to mind when someone requested
func_get_arg() to be extended to fetch parameters
by reference so that you can implement PHP
functions that take a variable number of parameters
by reference ...

there seems to becode somewhere in the Zend Engine that
always de-references return values ...?


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-28 21:21 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 21:21 UTC] krakjoe@php.net
Yes, they can.

Closing the request.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Apr 05 14:00:01 2026 UTC