[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

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Rasmus Lerdorf
Yup, you will need to FREE_ZVAL() it On 9 Nov 2002, Tony Leake wrote: 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

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Andi Gutmans
Actually zval_ptr_dtor() is probably more suitable. In any case, is this zval something you keep locally in your extension or are you returning/adding it to the engine's symbol table? If so, the engine should take care of the memory automatically as long as you've done everything correctly.

[PHP-DEV] test, ignore, sorry

2002-11-09 Thread Petr Hudecek
haha -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Return -1

2002-11-09 Thread Derick Rethans
On Sat, 9 Nov 2002, Maxim Maletsky wrote: I have just fixed a few doc files where it was stating that a function returned -1 but the sources had clear RETURN_FALSE. Done that, I took some time to grep my phpdoc and php4 trees for -1 returns and, surprisingly, I found out that there were a

[PHP-DEV] abstract functions

2002-11-09 Thread Jens Rehsack
Hi, does PHP4 with the ZE2 supports abstract function like Delphi or C++? That would be very useful for class development, cause we can avoid testing if a class is abstract if an abstract class couldn't be instantiated? Syntax could be like in C++ class X { X(){} int y() = 0; } or little

[PHP-DEV] PHP4.3.0Pre2 and WebDav

2002-11-09 Thread Alex Volkov
Hi there, i have a question. If the php 4.3 can accept webdav requests, can you give me some idea, how i can configure apache2? To pass this requests to php scripts from apache ? Thanks! -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: RfC: *_fetch_object()

2002-11-09 Thread Timm Friebe
On Fri, 2002-11-08 at 23:41, Yasuo Ohgaki wrote: I don't mind making pg_fetch_object() accept object (not class) optionally and initialize field values as object's properties. What you're saying would be: $a= pg_fetch_object($q, new Article()); It is certainly not common for PHP

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

Re: [PHP-DEV] abstract functions

2002-11-09 Thread Andrei Zmievski
ZE1 way: class MyClass { function MyClass() { die('MyClass is an abstract class'); } } ZE2 way: class AbstractClassException { } class MyClass { function MyClass() { throw new AbstractClassException(); } } On Sat, 09 Nov 2002, Jens Rehsack

[PHP-DEV] Bug 20147

2002-11-09 Thread Martin Jansen
Bug #20147 has been reported as a PEAR bug, but IMO this sounds more like a PHP problem. The user reports that he gets the error message /usr/src/ServerSoftware/PHP/php-4.3.0pre2/sapi/cli/php: relocation error: /usr/local/php/lib/php/extensions/no-debug-non-zts-20020429/xml.so: undefined symbol:

Re: [PHP-DEV] abstract functions

2002-11-09 Thread Jens Rehsack
Andrei Zmievski wrote: ZE1 way: class MyClass { function MyClass() { die('MyClass is an abstract class'); } } ZE2 way: class AbstractClassException { } class MyClass { function MyClass() { throw new AbstractClassException(); } } On Sat, 09 Nov

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/curl config.m4

2002-11-09 Thread Jani Taskinen
On Sat, 9 Nov 2002, Sterling Hughes wrote: On Sat, 9 Nov 2002, Sterling Hughes wrote: There is no such release of Curl yet. This makes testing the RCs quite a hassle now so either you revert those changes or get the curl folks to release this 7.10.2. --Jani

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/curl config.m4

2002-11-09 Thread Sterling Hughes
On Sat, 9 Nov 2002, Sterling Hughes wrote: On Sat, 9 Nov 2002, Sterling Hughes wrote: There is no such release of Curl yet. This makes testing the RCs quite a hassle now so either you revert those changes or get the curl folks to release this 7.10.2.

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/curl config.m4

2002-11-09 Thread Andi Gutmans
At 05:44 PM 11/9/2002 +0100, Sterling Hughes wrote: On Sat, 9 Nov 2002, Sterling Hughes wrote: On Sat, 9 Nov 2002, Sterling Hughes wrote: There is no such release of Curl yet. This makes testing the RCs quite a hassle now so either you revert those changes or get the

Re: [PHP-DEV] abstract functions

2002-11-09 Thread Leon Atkinson
How about testing for the parent? Such as: ? class AbstractClassException { } class MyClass { var $salutation; function MyClass() { if(!get_parent_class($this)) { throw new AbstractClassException(); } $this-salutation = 'Hello'; } function

Re: [PHP-DEV] abstract functions

2002-11-09 Thread Jens Rehsack
Leon Atkinson wrote: How about testing for the parent? Such as: ? class AbstractClassException { } class MyClass { var $salutation; function MyClass() { if(!get_parent_class($this)) { throw new AbstractClassException(); } $this-salutation = 'Hello';

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Wez Furlong
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: The whole picture is that i want to control a child process completely from within php. A bit like popen or

[PHP-DEV] Configuration Patches

2002-11-09 Thread Ilia A.
Attached are two patches that I've written to address a number of issues I've come across while testing PHP on Solaris. The first patch (alloca.txt) eliminated a warning message due to the fact that that on Solaris and Tru64 alloca() is defined in a separate header, alloca.h, which is not

[PHP-DEV] Re: Flash and PHP

2002-11-09 Thread Georg
Hi Folks I try to comfortize my webpages using flash.The server part is still PHP implemented. Has anyone experiences on this subjects. Especially trial and errors ;) could be very informativ to me. thanks for your help in advance kind regards Georg -- PHP Development Mailing List

[PHP-DEV] Re: high availability solutions

2002-11-09 Thread Georg
Hi Folks, I try to be aware of the theme high available websolutions. Has anyone got some good ideas to what kind of subjects I have special take care about, to provide short answer times and high available websolutions to comfort customers at my upcoming website? thanks in advance kind regards

[PHP-DEV] Re: php flash implementation

2002-11-09 Thread Georg
Hi Folks I try to exchange data via XML files using php as server. Has anyone some ideas how to work it out? Kind regards Georg -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: php templates

2002-11-09 Thread Georg
Hi folks I try to reduce the amount of unnecessary code fragments in my php scripts. Once I hear templates for php are the right answer for this problem. Can give anyone some hints how to work with templates. kind regards Georg -- PHP Development Mailing List http://www.php.net/ To

[PHP-DEV] php_embed and myphp

2002-11-09 Thread Melvyn Sopacua
Hi, I was testing myphp and it didn't work for me, because argv was initialized at an inaccessible address. Since I'm not farmiliar with C++, I made some changes using C, basically to allocate a block for argv, and realloc when needed (see attached patch). I know I still need to check

Re: [PHP-DEV] Re: Flash and PHP

2002-11-09 Thread Maxim Maletsky
please re-post this message to [EMAIL PROTECTED] php-dev is a wrong list for such questions. -- Maxim Maletsky [EMAIL PROTECTED] On Sat, 9 Nov 2002 21:45:13 +0100 Georg [EMAIL PROTECTED] wrote: Hi Folks I try to comfortize my webpages using flash.The server part is still PHP

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Kjartan Mannes
Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote: is $HTTP_RAW_POST_DATA only filled if REQUEST_TYPE is set to POST? even if 'always_populate_raw_post_data = On'? does anyone have a short info on this? rasmus maybe? I to would like know when $HTTP_RAW_POST_DATA is supposed to be

Re: [PHP-DEV] $HTTP_RAW_POST_DATA

2002-11-09 Thread Rasmus Lerdorf
Yes, it has to be a POST request for there to be post data and $HTTP_RAW_POST_DATA is populated if the mime type of the data is unrecoginized or if always_populate_raw_post_data is on. On Sat, 9 Nov 2002, Kjartan Mannes wrote: Wednesday, August 28, 2002, 3:15:13 PM, [EMAIL PROTECTED] wrote:

Re: [PHP-DEV] Freeing memory

2002-11-09 Thread Tony Leake
Hi Wez, I wrote a pecl extension called ecasound which interacts with an audio processing library. Now the way that ecasound is written will change in future versions and will have a fully interactive mode, all other implementations (perl, python c++ etc) have been re-written so that they open up

[PHP-DEV] Glob, anyone paying attention?

2002-11-09 Thread John Coggeshall
I was just playing with glob() and realized that its pretty undocumented (no flags doc'd) and none of the constants (GLOB_ONLYDIR for example) are actually defined in PHP Just wanted to see if anyone is doing something with this, if not (unless someone has an objection) I'll get put the

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-09 Thread George Schlossnagle
Here's the patch that Dan and I put together for the optimizer we talked about at the conference. It basically provides a defaulted-to-null function pointer that is the default case for the main execute() loop. This allows people to define their own opcodes without having to copy the source

Re: [PHP-DEV] turning strlen() into an opcode

2002-11-09 Thread George Schlossnagle
Hehe. I should attach the patch, eh? On Saturday, November 9, 2002, at 09:15 PM, George Schlossnagle wrote: Here's the patch that Dan and I put together for the optimizer we talked about at the conference. It basically provides a defaulted-to-null function pointer that is the default

[PHP-DEV] 64-bit PHP 4.3 (extensive long vs int problems)

2002-11-09 Thread James Devenish
Hi, Referring to bug #20268 (Bus Error on startup), I have added some comments about show-stopping problems with PHP 4.3 with regards to its lack of 64-bit cleanliness. The main problems seem to be Zend's OnUpdateInt (which seems misnamed although it uses zend_atoi, it assigns to a long) and PHP