hi,
i've been playing around with the php-gtk extension (don't worry this is not OT), but
am having problems after installing the latest cvs version of php4.
when I try and run a script (and even when i do 'php -v') i get the following error :
PHP Warning: Invalid library (maybe not a PHP lib
many thanks :)
barry
On Tue, Mar 13, 2001 at 07:46:32PM +0200, Alexander Bokovoy wrote:
> On Tue, Mar 13, 2001 at 05:24:58PM +0000, Barry Mitchelson wrote:
> > hi,
> >
> > i've been playing around with the php-gtk extension (don't worry this is not OT),
hi all,
can anyone give me the url to a tutorial on creating a php extension - specifically
creating a new class which will be available to all scripts. I've read through the
Zend api docs, and have created a new function, but haven't found any good guides to
adding a new class. If there are
hey,
I'm writing an extension which defines a class. In the constructor, I'd like to
create a member variable which I can then access with the other member functions in my
extension.
In php it would be like :
class foo
{
var $m_bar;
function foo()
{
mpString);
zend_printf("foo = %s",tmpString);
}
that doesn't work :(
but in a php script it does :
foo;
?>
produces "hello!"
what am i doing wrong ?!
barry
On Mon, Mar 19, 2001 at 07:01:44PM -0500, Sterling Hughes wrote:
> On Mon, 19 Mar 2001, Barry Mitchel
On Tue, Mar 20, 2001 at 03:24:00PM +0100, Marc Boeren wrote:
>
>
> >zend_hash_find(obj->value.obj.properties,"foo",sizeof("foo"),(void**)&tmpSt
> ring);
>
> You're almost correct, sizeof("foo") should be sizeof("foo")+1
hmm... still not working :(
>
> Cheerio, Marc.
>
> --
> PHP Developmen
On Tue, Mar 20, 2001 at 03:59:29PM +0100, Marc Boeren wrote:
>
> >> You're almost correct, sizeof("foo") should be sizeof("foo")+1
>
> >hmm... still not working :(
>
> My fault for not reading on beyond the first typo:
>
> >zend_printf("foo = %s",tmpString);
>
> should probably be
>
> zend_p
On Tue, Mar 20, 2001 at 05:15:58PM +0100, Marc Boeren wrote:
>
> >BTW, (*tmpString)->value.str.val == Z_STRVAL_PP(tmpString) but the
> >latter looks much nicer :)
>
> Granted, but that's what happens if you just examine the code and don't read
> the documentation :-)
is there full documentation
On Tue, Mar 20, 2001 at 06:48:39PM +0200, Stanislav Malyshev wrote:
> BM>> is there full documentation of the Zend API - i found the stuff
> BM>> on the zend website to be useful, but didn't cover everything.
>
> Well, that's the most full one that exists. Eventually, it should be
> extended to c