Hi,

On Sat, 2012-04-07 at 11:23 -0700, Matthew Hernandez wrote:
> This is my first extension I'm working on. I'm trying to make a class
> available to the user space with 1 private property that is an array.

The first question is: Why? - Why add the overhead of creating such an
array if it is private? In most cases it is better to extend the
zend_object in C (struct my_object { zend_object inner; type
some_data;}) to hold private data. If you want to show it in var_dump or
a debugger you could implement a debug_info hook.
        
johannes



-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to