php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15024 Can't use ParameterPassedByReference()
Submitted: 2002-01-13 20:32 UTC Modified: 2002-01-13 20:38 UTC
From: ron at imperators dot ca Assigned:
Status: Not a bug Package: *Compile Issues
PHP Version: 4.1.1 OS: Caldera Linux
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ron at imperators dot ca
New email:
PHP Version: OS:

 

 [2002-01-13 20:32 UTC] ron at imperators dot ca
I have a few extensions that I've written for PHP, and under 4.1.1, when linking I get the following error:

modules/php4/libphp4.a(cmtest.o): In function `php3_cm_sendsms':
..../php-4.1.1/ext/cmtest/cmtest.c:185: undefined reference to `ParameterPassedByReference'

I built a minimal extension with ext_skel, and only one simple function that had contained the code:


        if(!ParameterPassedByReference(ht, 2))
        {
            zend_error(E_WARNING, "Parameter 2 wasn't passed by reference");
            RETURN_NULL();
        }

This was just to make sure that none of my other code could have been causing the problem. This made the problem clearly reproducible. This exact code works fine under php4.03pl1. (This code was extracted from the API docs on the zend website, I think). 

Thanks,

Ron. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-13 20:38 UTC] mfischer@php.net
The internal API may change but is not subject to this bug system.

You might want to take a look at PZVAL_IS_REF() macro.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 16:01:29 2024 UTC