Hi Andi Gutmans, you wrote:
> You can just create a new zval by using
> MAKE_STD_ZVAL() and setting the relevant fields.
Fair enough; I was searching for kinda ZVAL_OBJ[ECT]()
macro at second, without success...
> If you get stuck let me know.
A tiny piece of code would help a lot :)
I can't
There doesn't exist such a thing as the object's zval. An object can have
many zval's. The zval includes the object's id and handlers that manage the
object's behavior. You can just create a new zval by using MAKE_STD_ZVAL()
and setting the relevant fields.
If you get stuck let me know.
Andi
At
Hi Andrei Zmievski, you wrote:
> The main question is: why do you need to do it?
Exercise ;)
I'll try to explain after having dinner...
Thanks,
--
Michael - < mike(@)php.net >
signature.asc
Description: OpenPGP digital signature
On Fri, 27 Aug 2004, Michael Wallner wrote:
> Hi,
>
> I have an hopefully simple question;
> imagine the following statement:
>
> obj = (struct obj_struct *) zend_object_store_get_object(zval TSRMLS_CC);
>
>
> Ok, now I'm in a situation where I'd need the other way
> round, i.e. a way to fetch
The engine gurus have the final word :)
Andrey
Michael Wallner wrote:
Hi Andrey Hristov, you wrote:
isn't the situation that several zvals can reference one object?
Should this be read as "No way, sorry"? :)
Regards,
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: ht
Hi Andrey Hristov, you wrote:
> isn't the situation that several zvals can reference one object?
Should this be read as "No way, sorry"? :)
Regards,
--
Michael - < mike(@)php.net >
signature.asc
Description: OpenPGP digital signature
isn't the situation that several zvals can reference one object?
Andrey
Michael Wallner wrote:
Hi,
I have an hopefully simple question;
imagine the following statement:
obj = (struct obj_struct *) zend_object_store_get_object(zval TSRMLS_CC);
Ok, now I'm in a situation where I'd need the other way
Hi,
I have an hopefully simple question;
imagine the following statement:
obj = (struct obj_struct *) zend_object_store_get_object(zval TSRMLS_CC);
Ok, now I'm in a situation where I'd need the other way
round, i.e. a way to fetch the zval of the obj I've got
(i.e. I have "obj" and need "zval"