Hello all.
I am attempting to convert one of my extensions to OOP. I have a class entry and (I think) I've instantiated an instance of it within RINIT(). What I haven't been able to do is add a private property to it. I have the Goleman book and followed the information on pages 148 and 149, to no avail. The book says to call zend_mangle_prooperty_name() specifying the class name as the class name argument. It always fails with "Could not startup." Stepping through with the debugger I find: - zend_mangle_property_name() has worked as described in the book. The property name is \0class\0prop\0. - add_property_double_ex() fails. Actually, the failure is in _zend_property_info() when it explicitly checks the first character of the passed property name for a null and fails if it is. Searching lxr.php.net hasn't helped so far. Suggestions or a pointer to code that is actually doing this would be great. By the way, I'm using PHP 5.2.8. Thanks, Dave