Re: [PHP-DEV] Extension help

2001-03-20 Thread Barry Mitchelson
zend_printf("foo = %s",tmpString); } that doesn't work :( but in a php script it does : ? $myObject = create_object(); echo $myObject-foo; ? produces "hello!" what am i doing wrong ?! barry On Mon, Mar 19, 2001 at 07:01:44PM -0500, Sterling Hughes

Re: [PHP-DEV] Extension help

2001-03-20 Thread Barry Mitchelson
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 Development Mailing

Re: [PHP-DEV] Extension help

2001-03-20 Thread Barry Mitchelson
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_printf("foo =

Re: [PHP-DEV] Extension help

2001-03-20 Thread Barry Mitchelson
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 of the

Re: [PHP-DEV] Extension help

2001-03-20 Thread Barry Mitchelson
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 cover the

[PHP-DEV] Extension help

2001-03-19 Thread Barry Mitchelson
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() {

[PHP-DEV] advice

2001-03-18 Thread Barry Mitchelson
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

[PHP-DEV] Err : Invalid library

2001-03-13 Thread Barry Mitchelson
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

Re: [PHP-DEV] Err : Invalid library

2001-03-13 Thread Barry Mitchelson
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 +, Barry Mitchelson wrote: hi, i've been playing around with the php-gtk extension (don't worry this is not OT), but am having problems after installing