[PHP-DEV] Creating a Module

2005-02-12 Thread Chris Cranford
I'm trying to create my first module and I am having a bit of trouble. Is there any example modules available I could review to get a better understanding of how to write them? Thanks -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Extension Cleanup

2005-02-13 Thread Chris Cranford
Is there a set of functions within an extension that is called automatically by the ZEND engine framework to "initialize" and "deinitailize" the extension? In a particular PHP script, a user may call a method that sets up an environment. I cannot always rely on the user to call the cleanup API me

[PHP-DEV] Returnng Object

2005-02-14 Thread Chris Cranford
I have been able to create objects in a function call in my extension and use them in my php page; however I would rather do something like: $myobj = myfunc(); echo $myobj->property; How am I suppose to return an object from a function? -- PHP Internals - PHP Runtime Development Mailing Lis

[PHP-DEV] Extension DLL Objects

2005-02-14 Thread Chris Cranford
I want to have a function that returns an object that essentially looks like the following: $user->name; // string that holds name of user $user->from; // string that holds where user is from $user->update(); // method that updates changed user data to db (**unsure how to code this) In my php scr

Re: [PHP-DEV] Extension DLL Objects

2005-02-14 Thread Chris Cranford
And I should also mention I'm trying to do this for PHPv4 and not v5. I'm not sure if that affects how the coding is done or not as I'm quite new to all this. - Original Message - From: "Alan Knowles" <[EMAIL PROTECTED]> To: "Chris Cranford&qu

[PHP-DEV] Comments

2005-02-15 Thread Chris Cranford
Is there any particular commenting style in a PHP extension that lends itself to being used for documentation like there is with java and a javadoc? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP Extension & Arrays

2005-02-20 Thread Chris Cranford
If I have a function that creates an array using add_assoc_string and then adds it to the return value as add_property_zval, then how do I iterate over the array and get the key and its value? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.

[PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread Chris Cranford
I have a PHP_FUNCTION() defined in my PHP extension. How am I suppose to pass variables by reference to my function without enabling call-time pass by reference in the PHP.INI file? Thanks -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP-DEV] PHP Extensions & Pass-By-Reference

2005-02-25 Thread chris . cranford
On 2/25/2005 2:28 PM, [EMAIL PROTECTED] wrote to CHRIS CRANFORD: Where si the second_arg_force_ref argument defined? I tried to define an argument block but I kept getting compiler issues. An example would be nice. I followed what I saw on zend.com but no cigar. Chris -> look at ->