[PHP-DEV] linking against ststic librarys

2003-01-18 Thread Tony Leake
Hi, is it possible to create an extension that links against a static library. If it is could someone point me to an extension that does this, or explain how to do it. Thanks Tony -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] updating php_error messages

2002-11-12 Thread Tony Leake
Hi, I have noticed in the TODO file in head one of the items is: * Change PHP error messages, so that they point to pages or sections in the PHP Manual. I have a few weeks of spare evenings coming up so if anyone wants me to I'm happy to wade through and make the changes. As far as I can see it

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Tony Leake
Sat, 2002-11-09 at 19:52, Wez Furlong wrote: > Hi Tony, > > What kind of things are you planning to do? > proc_open seems ideal to extend for this purpose, and works on win32. > > --Wez. > > On 09/11/02, "Tony Leake" <[EMAIL PROTECTED]> wrote: > >

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Tony Leake
The whole picture is that i want to control a child process completely from within php. A bit like popen or proc_open but with 2 independent pipes to the child's stdin and stdout that I can read and write to. So I'm basically wrapping the c functions pipe(), dup2() and friends. Once I have it all

[PHP-DEV] Freeing memory

2002-11-09 Thread Tony Leake
Hi, I am getting the following output from a php script that calls an extension I am writing (I have compiled the extension with --enable-debug) /home/phpcvs/php4_head/ext/pipe/pipe.c(245) : Freeing 0x0822568C (12 bytes), script=test.php /home/phpcvs/php4_head/ext/pipe/pipe.c(244) : Freeing 0

Re: [PHP-DEV] newbie: url parms

2002-11-05 Thread Tony Leake
On Tue, 2002-11-05 at 09:32, Geert Arts wrote: > Hi, > > I just seem not to be able to pass variables from a URL to a PHP script. > When I do something like http://localhost/test.php?variablex=valuex variablex is >empty (or does even not > exist?) > > I'm running php 4.2.3 and apache 1.3.27 un

Re: [PHP-DEV] Global HashTables & access violations

2002-10-21 Thread Tony Leake
On Mon, 2002-10-21 at 20:19, Brian 'Bex' Huff wrote: > Ive written an extension to PHP that (among other things) uses a global > HashTable object for a mini cache. I fill it, and then have a simple > PHP function to pull a string out of the cache, and return it. However, > I keep getting wier

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 10:07, Wez Furlong wrote: > Aside from that, I can't see any obvious mistakes. > Ok, I solved it. I declared a zval called read, then tried to call the read function. DOH ! Thanks for your help anyway Tony -- PHP Development Mailing List To unsubsc

Re: [PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
On Sun, 2002-10-20 at 09:34, Wez Furlong wrote: Thanks for the fast reply Wez, > There's not much we can tell you about this unless you post the > rest of the lines of that function. See below for the code > > Perhaps you did not include ? Yep thats there, I used exec_skel to create the basi

[PHP-DEV] library calls from within php functions

2002-10-20 Thread Tony Leake
Hi, I am working on an extension that makes use of the pipe, read and write library calls on a linux platform. When I try to put this line read(fd, buf, 1024); inside a php function ( PHP_FUNCTION(read_pipe) ) it fails to compile with the following warning: called object is not a function. I

Re: [PHP-DEV] help needed with config.m4 script

2002-09-25 Thread Tony Leake
On Wed, 2002-09-25 at 22:48, Jani Taskinen wrote: > > The 2nd last line I added should take care of it. > You also might want to add the include path with 'PHP_ADD_INCLUDE' > macro..in case the header files are not in /usr/include.. :) > > --Jani > Thanks a lot Jani, problem solved :)

[PHP-DEV] help needed with config.m4 script

2002-09-25 Thread Tony Leake
Hello, I am having problems with an extension, I think with the config.m4 script. If I build the extension into the php source tree it works fine and links correctly. If I build it as a shared object either within the source tree as --with-audio=shared or outside the source tree running phpize

[PHP-DEV] CVS Account Request: tony

2002-09-22 Thread Tony Leake
To put audio extension into PECL (details at http://www.webwise-data.co.uk/php_audio/php_audio_extension.html ) And to develop/maintain that extension. Also to work with DJ Anubis to develop a unified audio/multimedia extension. -- PHP Development Mailing List To unsub

Re: [PHP-DEV] Sound Extension proposed API

2002-09-11 Thread Tony Leake
> Hi, > > Great, sound media systems come to PHP. Wrapping ecasound is a good idea. > Maybe I'll try to have XMMS module follow it too ;-) > Would be nice to have a unified sound wrapper in PHP, say a metaclass which > could control other systems (xmms, eca, xine...). > > DJ Anubis Hi, A unifi

[PHP-DEV] Sound Extension proposed API

2002-09-10 Thread Tony Leake
in a couple of weeks when I am ready to go alpa with this to place it into PECL. Regards Tony Leake -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Sound API for php

2002-09-08 Thread Tony Leake
On Sun, 2002-09-08 at 11:00, Wez Furlong wrote: > > That fits with our naming conventions; however, I think that Andi > was hoping you would post a little bit info about the parameters > of the main functions that you expect people to use; something like > this: > > bool audio_play_file(string

Re: [PHP-DEV] Sound API for php

2002-09-07 Thread Tony Leake
e last question. I'm sure I read somewhere that the PHP licence is not compatible with the GPL. Is this true? If so what do I need to do is a simple agreement from the ecasound maintainer enough or will he need to release it under the PHP licence as well? Regards Tony Leake -- PHP Development

Re: [PHP-DEV] Sound API for php

2002-09-07 Thread Tony Leake
> For the 'web-side' of things - could these conversion function be >used, > to convert files on the webserver? Or even something like: > song.wav -> convert_to_mp3 -> stream_on_socket > song.mp3 -> convert_to_windows_media -> stream_on_socket There's no reason why you couldn't convert files on

[PHP-DEV] Sound API for php

2002-09-07 Thread Tony Leake
it is compatible with the rest of PHP. Regards Tony Leake -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Patch for bug/feature request 16119

2002-08-27 Thread Tony Leake
contribute more to php in the future so if you don't want to use the patch for any reason, I would be grateful for any pointers or comments on the code. Regards Tony Leake diff -Nur php-4.2.2/ext/standard/array.c php-4.2.2_devel/ext/standard/array.c --- php-4.2.2/ext/standard/array.c 2002-04-

[PHP-DEV] help with duplicate flag in string functions

2002-07-25 Thread Tony Leake
Hi, I'm just starting out writing modules by reading api docs on zend.com and reading source code of existing modules. Several functions (example:) add_next_index_string(zval *array, char *str, int duplicate) have the int duplicate flag, the docs say, The flag duplicate specifies whether