Re: How do I access a hash from an extention/module?
| From: | fabwash | Date: | Thu, 06 Jun 2002 13:52:54 +0000 |
| Subject: | Re: How do I access a hash from an extention/module? | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-84933@lists.php.net to get a copy of this message | ||
Hi Markus,
I think I know those pages by heart :) Doesn't mean they all make sense to
me for now. I'm sure that when I get some experience I will find that they
make a lot of sense, and that each word should give me a clue, but this is a
high level overview of the API, what we need is a real documentation, for
each callable function and macro, what are the parameters, what the macro or
function does, what it returns, make examples etc..
Zend/zend_hash.c, Zend/zend_API.h and ext/array.c are my bibles for now, but
as I said before, although it works, i'm not sure why it works :)
The few examples available are about creating basic things, like creating a
long, or a string. When you start working on an extension, this is
definitely not sufficient.
I'll definitely help on the documentation when I get the light, but i'm way
out of the league for now.
Fab
----- Original Message -----
From: "Markus Fischer" <mfischer@guru.josefine.at>
To: "fabwash" <fabwash@hotmail.com>
Cc: "Eric Veldhuyzen" <eric@terra.telemediair.nl>; <php-dev@lists.php.net>
Sent: Thursday, June 06, 2002 9:45 AM
Subject: Re: [PHP-DEV] How do I access a hash from an extention/module?
> On Thu, Jun 06, 2002 at 09:36:29AM -0400, fabwash wrote :
> > > It would be nice it there was some REAL documentation about the API...
> > >
> > Amen to that!!!.. I spent exactely 5 1/2 hours yesterday trying to
create a
> > resource that is a structure which contains a set of pointers to an
array of
> > objects (yeah it's complicated but it's great when it works !), then
later
> > retrieve the array, walk throught it, get the objects back from the
hash,
> > and do something with them.
> >
> > Works fine for now (although i'm sure i have major memory leaks for now
> > because i'm not sure how to deallocate and when to do it, when to add
> > references and remove references), but some documentation would have
reduced
> > my research, trial and error, multiple compilations, tests, other source
> > reading, debugging time, etc..
> >
> > I get great help from people here on specific issues, but i'd rather
read
> > some documentation before asking stupid questions.
>
> Actually, there is: http://www.php.net/manual/en/zend.php
>
> Not up-to-date, but still worth a read. And, it's the same
> for Zend docs as it is for PHP docs: volunteers are welcome.
>
> I've seen quite a few people in the last months writing
> extenions and therefore they "know" how it is for a
> newcommer. Yet no one asked if he can help out with the
> documentation.
>
> - Markus
>
> --
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
>