php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #4769 Params passed by reference in extension functions
Submitted: 2000-06-02 10:12 UTC Modified: 2002-01-04 14:58 UTC
From: clcollie at mindspring dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.0 Release OS: Linux Mandrake 7.0
Private report: No CVE-ID: None
 [2000-06-02 10:12 UTC] clcollie at mindspring dot com
i'm working on a functions (sscanf/fscanf) to be registered with the scripting engine which requires that variables be passed by reference. this is easily done in user-land (&$variable), but there seems to be no obvious way to inform the compiler that the parameters accepted by c level functions should be pushed by ref.

any guidance ?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-04 14:58 UTC] jimw@php.net
the func_arg_types field of the function_entry structure makes it possible to force parameters to be passed by reference. (L0t3k <cshmoove@hotmail.com> pointed out this could be closed on php-dev.)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 16:01:31 2024 UTC