[PHP-DEV] RE: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-10 Thread Sander Striker
From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: 08 June 2002 13:59 On Fri, 7 Jun 2002, Ryan Bloom wrote: On Fri, 7 Jun 2002, Brian Pane wrote: On Fri, 2002-06-07 at 01:14, Sascha Schumann wrote: The function php_apache_sapi_ub_write() is inserting a flush bucket after each bucket

Re: [PHP-DEV] RE: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-10 Thread Zeev Suraski
At 09:03 AM 6/10/2002, Sander Striker wrote: Why is PHP even using its own memory allocation scheme? It would be much easier to just use pools and point out where it doesn't work for you. Because we don't want it depend on any underlying services which aren't available in all servers. We can

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread phpsurf
this patch would be really great ! I can remember it has been discussed a lot on the ZE2 mailing list about the 'import' feature. some people (and I was) would have apreciated another name because this name was already used in many PHP frameworks to implement a function that loads classes. As

[PHP-DEV] Compile error (cvs HEAD)

2002-06-10 Thread Jan Schneider
/root/cvs/cvsphp/ext/standard/array.c: In function `zif_array_rand': /root/cvs/cvsphp/ext/standard/array.c:2949: `array_data_shuffle' undeclared (first use in this function) Jan. -- http://www.horde.org - The Horde Project http://www.ammma.de - discover your knowledge http://www.tip4all.de -

Re: [PHP-DEV] CVS Account Request: emil

2002-06-10 Thread derick
On 10 Jun 2002, emil santos wrote: (phpdoc) Found the docs outdated; heard no one was working on them. Which docs exactly you you mean... the ZendAPI docs? Derick --- Did I help you?

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 / NEWS /ext/standard array.c

2002-06-10 Thread Edin Kadribasic
Andrei Zmievski wrote: Log: Fix bug #7045: shuffle() now provides consistent distribution of values in the array. C:\home\php\php4\ext\standard\array.c(1446) : error C2082: Neudefinition des for malen Parameters tsrm_ls C:\home\php\php4\ext\standard\array.c(2949) : error C2065:

[PHP-DEV] ActivePHP behavior

2002-06-10 Thread moshe doron
Hi All since Wez on vacation(?) i'm asking u all hopefully someone already sniffed around ActivePHP. i'm searching for the equivalent code for that JavaScript: pre // this code print link that click on it call js function function kkk(){ //Do some code } document.write(a

Re: [PHP-DEV] RE: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-10 Thread Aaron Bannert
On Mon, Jun 10, 2002 at 11:46:46AM +0300, Zeev Suraski wrote: What we need for efficient thread-safe operation is a mechanism like the Win32 heaps - mutexless heaps, that provide malloc and free services on a (preferably) contiguous pre-allocated block of memory. The question is whether

Re: [PHP-DEV] RE: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-10 Thread Aaron Bannert
On Mon, Jun 10, 2002 at 09:29:58AM -0700, Aaron Bannert wrote: - creation (called once per server lifetime) - malloc (called many times per request) - free (called many times per request) - end-of-request (called many times per request) (Whoops, that should have been -- called

Re: [PHP-DEV] RE: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-10 Thread Zeev Suraski
At 07:29 PM 6/10/2002, Aaron Bannert wrote: On Mon, Jun 10, 2002 at 11:46:46AM +0300, Zeev Suraski wrote: What we need for efficient thread-safe operation is a mechanism like the Win32 heaps - mutexless heaps, that provide malloc and free services on a (preferably) contiguous pre-allocated

Re: [PHP-DEV] ActivePHP behavior

2002-06-10 Thread [EMAIL PROTECTED]
I don't think this is the proper forum for this question. This list is for those interested in the development of PHP itself, not simply PHP development. That said, I think that's an html problem: you may have forgotten to close off your a anchor tag with /a. You should also provide some text

[PHP-DEV] why does exec() use the shell?

2002-06-10 Thread Lawrence Greenfield
Hi, Looking through the PHP documentation, I see that exec() invokes the shell. Why is this? There's already a function that invokes the shell (with all associated costs and security holes). Why does PHP need two? Is there any way of invoking programs without involving the shell? Larry --

Re: [PHP-DEV] PECL != Siberia

2002-06-10 Thread Stig S. Bakken
You tell me :) We currently have no nice way of bootstrapping PEAR on Windows like we have on Unix (with make install-pear-installer and go-pear). What would be the most sensible way of giving Windows users something ala go-pear? - Stig On Sun, 2002-06-09 at 18:49, Shane Caraveo wrote: Hmm,

Re: [PHP-DEV] PECL != Siberia

2002-06-10 Thread Shane Caraveo
It's a tough one :) Well, being able to build like on unix shouldn't be too hard to do, just have to call nmake on the dsp, but that wont work for the vast majority of users. Someone needs to provide prebuilt extensions that can be downloaded via pear, and unfortunately, I don't see any way

Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] oo != php

2002-06-10 Thread Stig S. Bakken
Hi, I have promised myself to not get into this discussion for a week now, but the smell of dead horse overwhelmed me, so here goes... I am guilty of a lot of OO use in PHP related to PEAR, I think OO is a good thing when used right, but if not.. well, as Ken said at LinuxTag, here, have some

[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi, working with php's oop implementation I got some memory leaks. The behaviour can be reproduced with the following script: ?php class CBar { var $Parent; } class CSuper { function CSuper() { $this-Bar = new CBar(); $this-Bar-Parent = $this; } } $Super = new CSuper(); ? php

[PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi, working with php's oop implementation I got some memory leaks. The behaviour can be reproduced with the following script: ?php class CBar { var $Parent; } class CSuper { function CSuper() { $this-Bar = new CBar(); $this-Bar-Parent = $this; } } $Super = new CSuper(); ? php

[PHP-DEV] Zend 2 const class members private?

2002-06-10 Thread Leendert Brouwer
I have just started experimenting with the Zend 2 engine, and totally love the new OO features. I'm not sure whether this has been discussed or not (I couldn't find it in the archives, anyway), but I ran into a few things: Constant class members seem to be private by default. I cannot access them

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] Re: [Zend Engine 2] RE:[PHP-DEV] oo != php

2002-06-10 Thread Alex Black
Hi, I have promised myself to not get into this discussion for a week now, but the smell of dead horse overwhelmed me, so here goes... heh. class foo aggregates bar { } I think that is a nice solution. 2. Optional strong typing When people say that being able to do function

RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread Andi Gutmans
I'd prefer not having a handler for autoloader. I'd prefer having the Engine look for ClassName.php in the default include_path and if it doesn't exist die... (i.e. not call any user-definable PHP function). Andi At 11:33 AM 6/10/2002 +0200, phpsurf wrote: this patch would be really great !

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread Andi Gutmans
Or have a user-definable classpath. But I think it's better not to call into PHP code. Andi At 11:32 PM 6/10/2002 +0300, Andi Gutmans wrote: I'd prefer not having a handler for autoloader. I'd prefer having the Engine look for ClassName.php in the default include_path and if it doesn't exist

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Markus Fischer
Hi, that's a limitation of the Zend Engine. It does not support circular references (at least this is would Zeev told me last time :) - Markus On Mon, Jun 10, 2002 at 10:25:38PM +0200, Andre Christ wrote : working with php's oop implementation I got some memory leaks. The

[PHP-DEV] [PATCH] Remove input filter from apache2filter SAPI

2002-06-10 Thread Justin Erenkrantz
The input filter in the apache2filter doesn't serve any real purpose as PHP is not transforming any of the data. IMHO, it would be better if it switched to just grabbing the input when it needs it via the sapi_read_post function. Please let me know if you have any questions. -- justin Index:

[PHP-DEV] Re: [Zend Engine 2] RE: [PHP-DEV] REPOST: Class Autoloading [PATCH]

2002-06-10 Thread brad lafountain
I dissagree with that... I would like the option to say where my classes are. If i want multiple classes in one file then i can. function myAutoLoader($className) { if (!class_exists($className)) { include(all_of_my_classes.php); } } Making a classpath and ClassName.php files will make

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread brad lafountain
I use parent members all the time.. w/zend1 - Brad --- Markus Fischer [EMAIL PROTECTED] wrote: Hi, that's a limitation of the Zend Engine. It does not support circular references (at least this is would Zeev told me last time :) - Markus On Mon, Jun 10, 2002 at

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Andre Christ
Hi Brad, Brad Lafountain [EMAIL PROTECTED] wrote I use parent members all the time.. w/zend1 well, that's what I wanted to do until I discovered these entrys in my log file when php is compiled --enable-debug. Do you have these mem leaks as well ? Greets, André -- PHP Development Mailing

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread brad lafountain
--- Andre Christ [EMAIL PROTECTED] wrote: Hi Brad, Brad Lafountain [EMAIL PROTECTED] wrote I use parent members all the time.. w/zend1 well, that's what I wanted to do until I discovered these entrys in my log file when php is compiled --enable-debug. Do you have these mem leaks as

[PHP-DEV] Streamy PHP parser input?

2002-06-10 Thread Justin Erenkrantz
One of the major problems with the apache2filter is that it can not work with any other resource output filter. So, a configuration like (I would like to use this configuration): AddOutputFilterByType BUCKETEER text/html AddType text/html .php AddOutputFilter PHP .php can not work because the

Re: [PHP-DEV] Memory Leaks /w nested classes

2002-06-10 Thread Zeev Suraski
If they end up in a circular reference (in this particular case they do, they usually don't) then you're leaking memory. Zeev At 12:10 AM 6/11/2002, brad lafountain wrote: I use parent members all the time.. w/zend1 - Brad --- Markus Fischer [EMAIL PROTECTED] wrote: Hi, that's

Re: [PHP-DEV] Streamy PHP parser input?

2002-06-10 Thread Zeev Suraski
There should be a way of doing that within the framework of flex by redefining YY_INPUT and hacking around flex. You can, by the way, provide a char * string, that already works today (look at zend_eval_string() or zend_prepare_string_for_scanning()). Zeev At 12:23 AM 6/11/2002, Justin

[PHP-DEV] sybase_fetch_row() and data types

2002-06-10 Thread Timm Friebe
Hello, after having talked to Derick Rethans at LinuxTag and him suggesting I put up a mail on php-dev about it, I guess I will give it a try. The following is my issue: http://bugs.php.net/bug.php?id=16960 Derick told me all of PHPs database extensions simpy return strings for everything

[PHP-DEV] CVS Account Request: busterb@mail.utexas.edu

2002-06-10 Thread Brent Cook
To work on pear without bothering Tomas V.V.Cox for every little change ;) -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] PHP and sed blowing up builds

2002-06-10 Thread J Smith
The current CVS is having trouble compiling on Solaris platforms (Solaris 8/SPARC for me) and from what I can tell, the problem is thanks to Sun's sed. While the Solaris shell itself can handle an insane number of command line argument characters, the default Solaris sed truncates it's input

[PHP-DEV] Alpha compile error on OSX

2002-06-10 Thread Mitch Vincent
I just downloaded the alpha 4.3 from the website and get this : ./configure --with-pgsql --without-mysql --with-pdflib --with-mcrypt --with-zlib --with-gd=/sw --enable-bcmath;make snipped to the end /bin/sh libtool --silent --mode=link gcc -export-dynamic -DPHP_ATOM_INC

Re: [PHP-DEV] Streamy PHP parser input?

2002-06-10 Thread Aaron Bannert
On Tue, Jun 11, 2002 at 12:38:44AM +0300, Zeev Suraski wrote: There should be a way of doing that within the framework of flex by redefining YY_INPUT and hacking around flex. I'd love to see this built in to SAPI so that any module could take advantage of it, and I'd even be willing to code

[PHP-DEV] Release Tea Leaves

2002-06-10 Thread Richard Lynch
Any Wild Guesses about release dates for PHP 5 and/or Zend Engine 2??? A publisher is worried that the book will be hopelessly obsolete before it hits the shelves, rather than the usual obsoleteness... :-^ Thanks in advance, and please cc me. -- Like Music? http://l-i-e.com/artists.htm My

Re: [PHP-DEV] Alpha compile error on OSX

2002-06-10 Thread Dan Kalowsky
On Mon, 10 Jun 2002, Mitch Vincent wrote: I just downloaded the alpha 4.3 from the website and get this : ./configure --with-pgsql --without-mysql --with-pdflib --with-mcrypt --with-zlib --with-gd=/sw --enable-bcmath;make /usr/bin/ld: Undefined symbols: _zend_mh_bundle_error

[PHP-DEV] Re: [PHP-QA] ZE2 / PHP 5 BC breaking suggestion

2002-06-10 Thread Melvyn Sopacua
At 23:00 10-6-2002, Sean shared with all of us: Hmm, I see. I suppose (?=\[)\w+(?=\]) as an exeption to accomodate those errors would be too hard on the parser? Adding such an exception to the parser is definitely a no-no. Also: $a = array('cow' = 'moo', 'pig' = 'oink'); $b = pig; echo