[PHP-DEV] Earliest zend_eval_string can be called?

2010-09-17 Thread Matthew C. Rice
Hello, I was wondering how early a zend_eval_string call can be made. Currently it works fine in a PHP_FUNCTION(), but was hoping to put it in a PHP_MINIT() in hopes of it just executing once. It seems PHP_MINIT() is too early, and is causing failures. I came across PHP_GINIT_FUNCTION(

[PHP-DEV] Equivalent to foreach($Items as $Item) with ZVals

2009-02-27 Thread Matthew C. Rice
y its only being executed once. BTW, I expect my "Extending and Embedding PHP" book to be here tomorrow, so hopefully these questions ( especially if they are obviously answered there will come to a end :-) ) . Matthew C. Rice -- PHP Internals - PHP Runtime Development

Re: [PHP-DEV] Adding/Updating ZVal Arrays to Object

2009-02-21 Thread Matthew C. Rice
!!! Matthew C. Rice Marcus Boerger wrote: Hello Matthew, I gave a bunch of tutorials on this with various other folks, Johannes, Sara, Wez. The slides from November 2007 are still up and contain probably more information than you ever wanted to know. There is also the demo extension that you

Re: [PHP-DEV] Adding/Updating ZVal Arrays to Object

2009-02-20 Thread Matthew C. Rice
Sara Golemon had here, http://devzone.zend.com/node/view/id/1024 , which unfortunately never makes it to the "Part IV" on Objects it notes was coming up ( a few years ago now ). Never the less, thanks again! Matthew C. Rice Nathan Nobbe wrote: On Fri, Feb 20, 2009 at 3:02 PM,

[PHP-DEV] Re: Adding a property to an object

2009-02-20 Thread Matthew C. Rice
way, but a way to go about doing what you want can be done in the PHP_MINIT_FUNCTION() with something like zend_declare_property_string(zend_class_entry* ce, char* name, int name_length, char* value, ZEND_ACC_PRIVATE); Matthew C. Rice David M. Patterson wrote: Hello all. I am attem

Re: [PHP-DEV] Adding/Updating ZVal Arrays to Object

2009-02-20 Thread Matthew C. Rice
Nathan, Thanks a bunch. That was exactly what I was looking for. Is there any place you would consider a good resource to learn/get documentation for these functions? Matthew C. Rice Nathan Nobbe wrote: On Fri, Feb 20, 2009 at 12:31 PM, Matthew C. Rice wrote: Hello everyone

[PHP-DEV] Adding/Updating ZVal Arrays to Object

2009-02-20 Thread Matthew C. Rice
mbinations of zend_hash_find() && zend_hash_update() to no avail. Is there anyone that might be able to point me in the right direction as to how to do this? Matthew C. Rice -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php