Hi,
I am still stuck with my extension module. I'm not able to implement a
function which returns a reference to an already existing variable. All I
want to do is to write a function like this in C:
function &return_reference() {
global $a;
return $a;
}
The only possibility I fou
Hi,
I have an array with object references stored in it. Now I want to write a
function which returns one of those references. I'm browsing through this
array with the zval_hash_*() functions until I have the correct reference in
the Variable **data. But how can I return this value by referenc
Hi,
On Tuesday 12 March 2002 14:01, Andrey Hristov wrote:
> As far as I see FREE_ZVAL is ZEND_FAST_FREE and the latter is not freeing
> memory just removes the zval from a list. So it is required to release the
> memory before that. Fix me if I'm wrong.
FREE_ZVAL calls ZEND_FAST_FREE, that's cor
Hi,
I'm not sure if I have understood how to free the memory allocatedof a zval
correctly. Because I don't want to create memory leaks, please tell me if I
am right or tell me how it is done correctly:
If I create a zval with MAKE_STD_ZVAL, I just need to call FREE_ZVAL, because
there is no v
Hi,
I have written an simple extension module with two classes. Class A
implements the Method dosomething(). Class B is derived from Class A and
overrides the method dosomething(). Now I want the overridden method in Class
B to call the original method from Class A. How can I do this with
cal
Hi,
I am not sure, if this is an error in my code or a PHP error. Whatever, I
need help on this.
I have created (and attached) a small demonstration extension module, named
ctest. This module creates three classes. class1 is the base class, class2 is
derived from class1 and class3 is derived
Hi,
just a simple question. If I am creating zvals like this:
zval *zExample;
MAKE_STD_ZVAL(zExample);
do I have to free this zval manually (With FREE_ZVAL(zExample)) or is this
done automatically? Or it is done automatically only if this zval is exported
to user space? I ask because I have t
Hi,
I need to acces the name of an object in a class method written in C. How can
I do this? Example:
I have the following PHP code
$Test=new CMyClass();
$Test->print_obj_name();
and I have the following print_obj_name()-method written in C:
ZEND_NAMED_FUNCTION(cmyclass_print_obj_name)
Hi,
On Saturday 02 March 2002 00:14, Markus Fischer wrote:
> It's supposed to be 'zend_class_entry *', so if you haven't
> defined calobject_ce in your code as struct directly I think
> you should not use the address operator '&' in front of
> calobject_ce.
My calobject_ce is dir
Hi,
I have a slight problem with zend_get_parameters(). I want to pass an
optional object of a specified class to the constructor of another class. I
do this in the constructor:
zval *Parent;
Parent=NULL;
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC,
"|O!",&Parent,&calobject_
10 matches
Mail list logo