[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/bz2 bz2.c php_bz2.h /ext/standard Makefile.frag basic_functions.c file.c file.h ftp_fopen_wrapper.c http_fopen_wrapper.c php_fopen_wrapper.c php_fopen_wrappers.h /ext/zlib php_zlib.h zlib.c zlib_fopen_wrapper.c /main main.c network.c php_streams.h streams.c user_streams.c

2002-04-10 Thread Sebastian Bergmann
Wez Furlong wrote: > wez Wed Apr 10 18:42:31 2002 EDT > > Modified files: > /php4/ext/bz2 bz2.c php_bz2.h > /php4/ext/standard Makefile.frag basic_functions.c file.c file.h > ftp_fopen_wrapper.c http_fopen_wrapper.c > php_fopen_wra

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache2filter php_apache.h sapi_apache2.c

2002-04-10 Thread Sebastian Bergmann
Sebastian Bergmann wrote: > And now for some testing... The segfault on Win32 is gone. Thanks for helping us out here, Aaron & Cliff! -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.seba

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

2002-04-10 Thread David Eriksson
On 11 Apr 2002, Edwin Estuardo Morales Medina wrote: > learn and build code You do not need a CVS account to do that. > -- > PHP Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > -\- David Eriksson -/- "I personally refuse to use inferio

Re: [PHP-DEV] Build error (xslt)

2002-04-10 Thread Yasuo Ohgaki
Sterling Hughes wrote: >> -o sapi/cli/php -Wl,--export-dynamic -L/usr/local/lib >>-L/usr/X11R6/lib -L/usr/local/phoenix/lib -L/usr/local/pgsql/lib >>/usr/local/lib/libsablot.so -lxmltok -lxmlparse /usr/lib/libsnmp.so -lmm >>-lpq -lphoenix /usr/local/lib/libmhash.so /usr/local/lib/libmcrypt.so

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/apache2filter php_apache.h sapi_apache2.c

2002-04-10 Thread Sebastian Bergmann
Sebastian Bergmann wrote: > sebastian Thu Apr 11 02:01:55 2002 EDT > > Modified files: > /php4/sapi/apache2filterphp_apache.h sapi_apache2.c > Log: > Patch by Aaron Bannert <[EMAIL PROTECTED]> and Cliff Woolley > <[EMAIL PROTECTED]>. And now for some testing... -

Re: [PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Aaron Bannert
On Thu, Apr 11, 2002 at 07:20:11AM +0200, [EMAIL PROTECTED] wrote: > Nice work, maybe you can apply for a CVS account to sapi/apache2 then? > There is still some work todo (also for a static module and for some other > process models that Apache 2 has). I still want to mark Apache 2 support > a

[PHP-DEV] CVS Account Request: em2

2002-04-10 Thread Edwin Estuardo Morales Medina
learn and build code -- PHP Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Cliff Woolley
On Thu, 11 Apr 2002 [EMAIL PROTECTED] wrote: > Nice work, maybe you can apply for a CVS account to sapi/apache2 then? Aaron already got one. :) I'll likely follow suit. > There is still some work todo (also for a static module and for some > other process models that Apache 2 has). I still wa

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread derick
On Thu, 11 Apr 2002 [EMAIL PROTECTED] wrote: > Nice work, maybe you can apply for a CVS account to sapi/apache2 then? Duh... Aaron already got it :) Derick --- Did I help you? Consider a gift: http://ww

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread derick
On Wed, 10 Apr 2002, Cliff Woolley wrote: > FWIW, Aaron and I are trying really hard to get the Apache 2 support > ironed out in the very near term (like the next day or so). It's not far > off. Serious improvements can still be made, and those could wait until a > later version, but IMHO havin

[PHP-DEV] Re: [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Cliff Woolley
On Thu, 11 Apr 2002, Brian Havard wrote: > > - while (str_length > 0) { ... > > - str += now; > > - str_length -= now; > > - } ... > > > > - return str_length; > > + return 0; /* we wrote everything, we promise! */ > > Why did you change this to return 0? It breaks Ima

Re: [PHP-DEV] Build error (xslt)

2002-04-10 Thread Yasuo Ohgaki
Yasuo Ohgaki wrote: > Sterling Hughes wrote: > >>> -o sapi/cli/php -Wl,--export-dynamic -L/usr/local/lib >>> -L/usr/X11R6/lib -L/usr/local/phoenix/lib -L/usr/local/pgsql/lib >>> /usr/local/lib/libsablot.so -lxmltok -lxmlparse /usr/lib/libsnmp.so >>> -lmm -lpq -lphoenix /usr/local/lib/libmhash

Re: [PHP-DEV] Build error (xslt)

2002-04-10 Thread Yasuo Ohgaki
Sterling Hughes wrote: >> -o sapi/cli/php -Wl,--export-dynamic -L/usr/local/lib >>-L/usr/X11R6/lib -L/usr/local/phoenix/lib -L/usr/local/pgsql/lib >>/usr/local/lib/libsablot.so -lxmltok -lxmlparse /usr/lib/libsnmp.so -lmm >>-lpq -lphoenix /usr/local/lib/libmhash.so /usr/local/lib/libmcrypt.so

[PHP-DEV] Only allow to specify path to config file?

2002-04-10 Thread Yasuo Ohgaki
Currently, we can only specify path to "php.ini". This patch allows to specify file for a config file when SAPI is CLI. Any comments? -- Yasuo Ohgaki Index: main/php_ini.c === RCS file: /repository/php4/main/php_ini.c,v ret

Re: [PHP-DEV] Build error (xslt)

2002-04-10 Thread Sterling Hughes
> -o sapi/cli/php -Wl,--export-dynamic -L/usr/local/lib > -L/usr/X11R6/lib -L/usr/local/phoenix/lib -L/usr/local/pgsql/lib > /usr/local/lib/libsablot.so -lxmltok -lxmlparse /usr/lib/libsnmp.so -lmm > -lpq -lphoenix /usr/local/lib/libmhash.so /usr/local/lib/libmcrypt.so > /usr/lib/libltdl.so

Re: [PHP-DEV] Re: [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Aaron Bannert
On Thu, Apr 11, 2002 at 01:43:35PM +1000, Brian Havard wrote: > >Index: sapi/apache2filter/sapi_apache2.c > >=== > >RCS file: /repository/php4/sapi/apache2filter/sapi_apache2.c,v > >retrieving revision 1.61.2.1 > >diff -u -u -r1.61.2.

[PHP-DEV] Re: [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Brian Havard
Aaron Bannert wrote: > I posted this patch earlier, but this has some improvements. First > of all, it's tabified, so we have consistent style. It also has some > performance improvements suggested by Cliff Woolley, including one that > will significantly improve output buffering/copying. > > The

[PHP-DEV] Build error (xslt)

2002-04-10 Thread Yasuo Ohgaki
-o sapi/cli/php -Wl,--export-dynamic -L/usr/local/lib -L/usr/X11R6/lib -L/usr/local/phoenix/lib -L/usr/local/pgsql/lib /usr/local/lib/libsablot.so -lxmltok -lxmlparse /usr/lib/libsnmp.so -lmm -lpq -lphoenix /usr/local/lib/libmhash.so /usr/local/lib/libmcrypt.so /usr/lib/libltdl.so -ldl -lgd

Re: [PHP-DEV] BUG: variables from the query string are not accessiblein script

2002-04-10 Thread Rasmus Lerdorf
On Wed, 10 Apr 2002, Aaron Bannert wrote: > On Thu, Apr 11, 2002 at 02:20:00AM +0100, Wez Furlong wrote: > > the php configuration directive register_globals defaults to off > > in PHP 4.2; are you sure it's not just due to misconfiguration? > > Yeah, that was the problem. > > I'm sure I could go

Re: [PHP-DEV] BUG: variables from the query string are not accessible in script

2002-04-10 Thread Wez Furlong
On 11/04/02, "Aaron Bannert" <[EMAIL PROTECTED]> wrote: > On Thu, Apr 11, 2002 at 02:20:00AM +0100, Wez Furlong wrote: > > the php configuration directive register_globals defaults to off > > in PHP 4.2; are you sure it's not just due to misconfiguration? > Yeah, that was the problem. > > I'm sur

Re: [PHP-DEV] BUG: variables from the query string are not accessible in script

2002-04-10 Thread Aaron Bannert
On Thu, Apr 11, 2002 at 02:20:00AM +0100, Wez Furlong wrote: > the php configuration directive register_globals defaults to off > in PHP 4.2; are you sure it's not just due to misconfiguration? Yeah, that was the problem. I'm sure I could go look back in the logs for why this change occured, but

[PHP-DEV] CVS Account Request: aaron

2002-04-10 Thread Aaron Bannert
I'd like to work on the apache2filter (I'm an active developer on Apache 2.0). In addition to the fixes I posted today, I have some good ideas how the performance of the apache2filter can be greatly improved. (p.s. my requested password is intentionally lame, I'd prefer to change it throug

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread fabwash
I was looking at other languages that are loosely typed like PHP to see how they implemented their classes. A good example that is known by a lot of people is Javascript. Here are some things I gathered: Class-based object-oriented languages, such as Java and C++, are founded on the concept of tw

Re: [PHP-DEV] BUG: variables from the query string are not accessible in script

2002-04-10 Thread Aaron Bannert
On Thu, Apr 11, 2002 at 02:20:00AM +0100, Wez Furlong wrote: > the php configuration directive register_globals defaults to off > in PHP 4.2; are you sure it's not just due to misconfiguration? I'll be ecstatic if that's the problem. :) -aaron -- PHP Development Mailing List

Re: [PHP-DEV] BUG: variables from the query string are not accessible in script

2002-04-10 Thread Wez Furlong
the php configuration directive register_globals defaults to off in PHP 4.2; are you sure it's not just due to misconfiguration? --Wez. On 11/04/02, "Aaron Bannert" <<[EMAIL PROTECTED]>> wrote: > I've been fighting this all day and I'm curious if anyone else has > been able to reproduce this pro

[PHP-DEV] BUG: variables from the query string are not accessible in script

2002-04-10 Thread Aaron Bannert
I've been fighting this all day and I'm curious if anyone else has been able to reproduce this problem. Essentially what happens is the normal variables are registered in a hash table at sapi startup, then while executing we try to fetch from the symbol table. At this point I'm seeing an "undefine

[PHP-DEV] Build failure in snprintf.[ch]

2002-04-10 Thread Jon Parise
Under FreeBSD with the latest HEAD cvs code: main/snprintf.lo: In function `ap_php_conv_fp': /home/jon/build/php4/main/snprintf.c:152: undefined reference to `ap_php_fcvt' /home/jon/build/php4/main/snprintf.c:154: undefined reference to `ap_php_ecvt' main/spprintf.lo: In function `xbuf_format_con

[PHP-DEV] Re: Install PHP 4.1.2 with Apanche 2.0.35

2002-04-10 Thread Yasuo Ohgaki
Search php-install for FAQ :) -- Yasuo Ohgaki Jeremy Hines wrote: > I tried to install. These are the steps I went through and the output > of each step (If I am posting to the wrong list or in the improper > format please let me know and please excuse me for not knowing). > > > > Instal

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Yasuo Ohgaki
Shane Caraveo wrote: >> >> I need to store large static array as lookup table (read only). >> I think there are many applications that has relatively >> large static array for application configuration, etc. >> >> $_PERSISTENT is problematic, since user may store unsutable >> data for it. >> >> I'

Re: [PHP-DEV] Install PHP 4.1.2 with Apanche 2.0.35

2002-04-10 Thread Brad House
yawn... Anyone else in here getting tired of this same exact bug report?? Perhaps there should be an APACHE 2.0 announcement made on the main www.php.net webpage stating that 4.1.x does not support Apache 2, and only 4.2.0CVS and HEAD supports 2.0.35 Oh well ... Guess I'm just bitching because t

[PHP-DEV] Install PHP 4.1.2 with Apanche 2.0.35

2002-04-10 Thread Jeremy Hines
I tried to install.  These are the steps I went through and the output of each step (If I am posting to the wrong list or in the improper format please let me know and please excuse me for not knowing).   Install apache 2.0.35 -   tar xzvf httpd-2.0.353.tar.

Re: [PHP-DEV] [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Aaron Bannert
On Thu, Apr 11, 2002 at 01:10:31AM +0200, Edin Kadribasic wrote: > > I posted this patch earlier, but this has some improvements. First > > of all, it's tabified, so we have consistent style. It also has some > > performance improvements suggested by Cliff Woolley, including one that > > will sign

Re: [PHP-DEV] [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Edin Kadribasic
> I posted this patch earlier, but this has some improvements. First > of all, it's tabified, so we have consistent style. It also has some > performance improvements suggested by Cliff Woolley, including one that > will significantly improve output buffering/copying. > > The main guts of the patc

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Wez Furlong
On 10/04/02, "Lauri Liinat" <[EMAIL PROTECTED]> wrote: > so, Wez - why would you want to introduce yet another > cast operator - the "as" keyword? while PHP already has > adopted the C-style (new_type)... operator? Since we don't have a real type system, (type) casting doesn't actually do what yo

Re: [PHP-DEV] modified base64

2002-04-10 Thread Markus Fischer
I'm not convinced yet another function needs to be added for that purpose as this could easily enough done in userspace. On Wed, Apr 10, 2002 at 11:38:54PM +0200, Marcus Börger wrote : > new functionality > > if you like it better i could call id url64_encode/decode > > marcus > > At

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Lauri Liinat
i'll try to answer both Marcus and Wez here: > Where is the big difference (first is postfix syntax, second is prefix syntax). the difference is between whether you have to change *lots* of existing code or do exactly *one* cast in new code while you write it: $timer = (Timer) $MI_obj; librar

Re: [PHP-DEV] modified base64

2002-04-10 Thread Marcus Börger
new functionality if you like it better i could call id url64_encode/decode marcus At 23:35 10.04.2002, Markus Fischer wrote: > Yet it's not clear at least to me if you're talking about > _modifying_ an existing functionality OR adding a new > function. > >On Wed, Apr 10, 2002 at 10

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Wez Furlong
On 10/04/02, "Marcus Börger" <[EMAIL PROTECTED]> wrote: > At 23:25 10.04.2002, Lauri Liinat wrote: > > > If you want to access an aggregated object directly you can do: > > > $obj->Timer->method(); > >big_hairy_library_call( (Timer) $MI_obj ); > Where is the big difference (first is postfix synta

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Wez Furlong
On 10/04/02, "Andi Gutmans" <[EMAIL PROTECTED]> wrote: > I'll sum up my proposal again. > Support the following: > class MyClass extends MyParent aggregates Timer, FooBar > { > } > > $obj = new MyClass; // Creates $obj->Timer and $obj->FooBar > $obj->method(); // Searches MyClass, MyParent if not

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Wez Furlong
On 10/04/02, "Lauri Liinat" <[EMAIL PROTECTED]> wrote: > big_hairy_library_call( (Timer) $MI_obj ); (insert_the_name_of_your_class_here) might be tricky to implement in the ZE, but I agree with the principle, hence my suggestion for: big_hairy_library_call($MI_obj as Timer); Same thing, slightl

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Marcus Börger
At 23:25 10.04.2002, Lauri Liinat wrote: > > If you want to access an aggregated object directly you can do: > > $obj->Timer->method(); > >well, that's exactly what shouldn't be done and what polymorphism >is trying to eliminate... consider a huge code library which operates >on an object of clas

Re: [PHP-DEV] modified base64

2002-04-10 Thread Markus Fischer
Yet it's not clear at least to me if you're talking about _modifying_ an existing functionality OR adding a new function. On Wed, Apr 10, 2002 at 10:59:14PM +0200, Marcus Börger wrote : > At 20:26 10.04.2002, Markus Fischer wrote: > >On Wed, Apr 10, 2002 at 07:42:57PM +0200, Marcus B

Re: [PHP-DEV] modified base64

2002-04-10 Thread Marcus Börger
At 20:26 10.04.2002, Markus Fischer wrote: >On Wed, Apr 10, 2002 at 07:42:57PM +0200, Marcus Börger wrote : > > At 19:39 10.04.2002, Richard Heyes wrote: > > >> After (v)spprintf i have another modified function here: > > >base64url_(en|de)code > > > > > >You could simply use this: > > > > > >urle

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
PHP isn't a compiled language and we aren't going to start adding casting, v-tables and so on. PHP is extremely loosely typed and doing $obj->foo calls the method "foo" on $obj. This also allows for things like: $blah = "foo"; $obj->$blah; and so on. I really think that people who are looking fo

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Lauri Liinat
> If you want to access an aggregated object directly you can do: > $obj->Timer->method(); well, that's exactly what shouldn't be done and what polymorphism is trying to eliminate... consider a huge code library which operates on an object of class Timer and that we want to reuse this library. n

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
I still prefer to keep PHP a relatively easy to learn, simple yet powerful language. I think this is a huge overkill and prefer going with something like I proposed. Anyway the inheritance debates have been going on for years and I doubt we'll solve all possible scenarios for the first time in

Re: [PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Aaron Bannert
On Wed, Apr 10, 2002 at 04:45:53PM -0400, Cliff Woolley wrote: > FWIW, Aaron and I are trying really hard to get the Apache 2 support > ironed out in the very near term (like the next day or so). It's not far > off. Serious improvements can still be made, and those could wait until a > later ver

[PHP-DEV] ANSI Embedded SQL in PHP

2002-04-10 Thread fabwash
Hi all,   I was wondering if this was discussed before. Having embedded sql in php source. The idea would be to have something like this:     $d = 1;   EXEC SQL    SELECT a,b,c INTO :vara, :varb, :varc FROM table WHERE d = :d;     printf ("Found vara = %s, varb = %s, varc = %s", $vara, $var

[PHP-DEV] [PATCH] rev. 2 of my apache2filters SEGV fixes

2002-04-10 Thread Aaron Bannert
I posted this patch earlier, but this has some improvements. First of all, it's tabified, so we have consistent style. It also has some performance improvements suggested by Cliff Woolley, including one that will significantly improve output buffering/copying. The main guts of the patch include a

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Lauri Liinat
some thoughts concerning member name collisions: (i will also demonstrate a common shortcoming that i personally consider a design flaw that exists both in C++ and in Java - it sure would be good to avoid the same flaw in PHP - even if MI doesn't get into ZE2, keep this in mind for the future

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Cliff Woolley
On Wed, 10 Apr 2002 [EMAIL PROTECTED] wrote: > > > +1 from me. I think giving people a chance to play around with it > > > will make it easier for us to make the next version stable. > > > > It can be enabled only when the user compiles PHP with --with-apxs2 or > > GOod, another volunteer to chec

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread brad lafountain
> >BTW: > > Have you looked at my patch to handle method calls differently? > > > Yes and I don't like it. I haven't had time to do timings yet. I was very > busy and will try and do it in the next few days. hmm The patch wasn't just for speed it was more for sloving 2 main problems.

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
At 23:11 10/04/2002 +0300, Andi Gutmans wrote: >At 13:07 10/04/2002 -0700, brad lafountain wrote: >> > I was thinking that we could have an explicit way of calling the right >> one. >> >> hmm what would this look like? >> >> $a->c::print(); >> i guess that's not that bad. and its kinda consist

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
At 13:07 10/04/2002 -0700, brad lafountain wrote: > > I was thinking that we could have an explicit way of calling the right > one. > > hmm what would this look like? > > $a->c::print(); > i guess that's not that bad. and its kinda consistant > > but i do like > $a->c->print(); > too.. > A

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
At 13:07 10/04/2002 -0700, brad lafountain wrote: >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > At 12:46 10/04/2002 -0700, brad lafountain wrote: > > > > >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > > Hey guys, > > > > > > > > I still haven't finished reading the looong thread on >

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
At 12:46 10/04/2002 -0700, brad lafountain wrote: >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > Hey guys, > > > > I still haven't finished reading the looong thread on aggregation vs. > > MI because you guys write so much :) > > I would like to make a proposal for a solution which I think

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread brad lafountain
--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > At 12:46 10/04/2002 -0700, brad lafountain wrote: > > >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > > Hey guys, > > > > > > I still haven't finished reading the looong thread on aggregation vs. > > > MI because you guys write so much :) > > >

[PHP-DEV] detecting refrences

2002-04-10 Thread brad lafountain
I have a script that has an array of objects and the objectes have an array of objects so $obj = $test['0']->members['0']; $obj->blah(); It's acting up when i chnage $obj sometimes $test['0']->members['0'] reflects the changes i make to $obj. Is there any way that i can test to see if it is a re

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
At 12:46 10/04/2002 -0700, brad lafountain wrote: >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > Hey guys, > > > > I still haven't finished reading the looong thread on aggregation vs. > > MI because you guys write so much :) > > I would like to make a proposal for a solution which I think

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Xavier Spriet
ummm actually... maybe we should wait for 4.2.1 then ;) Xavier Spriet. Software/Web Developer Next Dimension Inc. Phone: 519.945.2032 Ext. 233 http://www.nextdimensioninc.com [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April

[PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread derick
GOod, another volunteer to check out the bugreports... Derick On Wed, 10 Apr 2002, Xavier Spriet wrote: > It can be enabled only when the user compiles PHP with --with-apxs2 or >--with-apache2 anyway right ? > so I agree with the idea to leave it there and explain that it is not supposed to >

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread brad lafountain
--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > Hey guys, > > I still haven't finished reading the looong thread on aggregation vs. > MI because you guys write so much :) > I would like to make a proposal for a solution which I think would fit PHP > very nicely. > My main concern with MI is

[PHP-DEV] RE: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Xavier Spriet
It can be enabled only when the user compiles PHP with --with-apxs2 or --with-apache2 anyway right ? so I agree with the idea to leave it there and explain that it is not supposed to work in a stable way... it won't bother users that don't try to compile it with apache2 support and for the othe

[PHP-DEV] [PATCH] fix SEGVs in apache2filter

2002-04-10 Thread Aaron Bannert
On Wed, Apr 10, 2002 at 08:21:01PM +0200, [EMAIL PROTECTED] wrote: > SG() is a macro that wraps around TSRM, the Thread Safe Resource Manager. > If the SAPI is build with ZTS (Zend Thread Safety) it is protected > automatically. Excellent, thank you. At this point, given that the SG() macros en

[PHP-DEV] Re: [PHP-QA] RE: [PHP-DEV] Re: [PHP-QA] Re: [PHP-DEV] RE: [PHP-QA] Supporting Apache 2 with PHP 4.2.0

2002-04-10 Thread Andi Gutmans
At 08:39 09/04/2002 -0400, Robinson, Mike wrote: >Jani Taskinen writes: > > > I'd rather have 4.2.0 released without the apache2 support > > and work on the code to get it work for real and release > > 4.2.1 with the fixed support. > >IMHO, removing Apache2 support will not affect th

Re: [PHP-DEV] SAPI threadsafe?

2002-04-10 Thread Omail Test Account
On Wed, 10 Apr 2002 11:19:32 -0700, Aaron Bannert <[EMAIL PROTECTED]> wrote : > I'm working with the apache2filter against Apache 2.0.35 and I want to > figure out how to ensure thread safety. It seems to me that much of the > request data is set up in the SG(request_info), which appears to be a

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Shane Caraveo
> > I need to store large static array as lookup table (read only). > I think there are many applications that has relatively > large static array for application configuration, etc. > > $_PERSISTENT is problematic, since user may store unsutable > data for it. > > I'll create functions to regi

Re: [PHP-DEV] SAPI threadsafe?

2002-04-10 Thread Rasmus Lerdorf
You are missing all the TSRM stuff. Look through TSRM/TSRM.h -Rasmus On Wed, 10 Apr 2002, Aaron Bannert wrote: > I'm working with the apache2filter against Apache 2.0.35 and I want to > figure out how to ensure thread safety. It seems to me that much of the > request data is set up in the SG(r

Re: [PHP-DEV] modified base64

2002-04-10 Thread Markus Fischer
On Wed, Apr 10, 2002 at 07:42:57PM +0200, Marcus Börger wrote : > At 19:39 10.04.2002, Richard Heyes wrote: > >> After (v)spprintf i have another modified function here: > >base64url_(en|de)code > > > >You could simply use this: > > > >urlencode(base64_encode($blaat)); > > > Sure but the the en

Re: [PHP-DEV] SAPI threadsafe?

2002-04-10 Thread derick
SG() is a macro that wraps around TSRM, the Thread Safe Resource Manager. If the SAPI is build with ZTS (Zend Thread Safety) it is protected automatically. Derick On Wed, 10 Apr 2002, Aaron Bannert wrote: > I'm working with the apache2filter against Apache 2.0.35 and I want to > figure out ho

[PHP-DEV] SAPI threadsafe?

2002-04-10 Thread Aaron Bannert
I'm working with the apache2filter against Apache 2.0.35 and I want to figure out how to ensure thread safety. It seems to me that much of the request data is set up in the SG(request_info), which appears to be a global variable. Please correct me if I'm wrong (I'm hoping I'm wrong here and it's t

Re: [PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Marcus Börger
That would be interface delegation to an implicit property. Nearly what delphi allows but with simple syntax. The difference to delphi is that you have to declare the property. For me it is o.k. A simple solution. marcus At 19:35 10.04.2002, you wrote: >Hey guys, > >I still haven't finished rea

Re: [PHP-DEV] Re: modified base64

2002-04-10 Thread Marcus Börger
At 19:22 10.04.2002, Jim Winstead wrote: >Marcus Boerger <[EMAIL PROTECTED]> wrote: > > After (v)spprintf i have another modified function here: > base64url_(en|de)code > > > > I sometimes transmit binary data or thinks like session ids over http. when > > using base64 the problem is in the chars

RE: [PHP-DEV] modified base64

2002-04-10 Thread Marcus Börger
At 19:39 10.04.2002, Richard Heyes wrote: > > After (v)spprintf i have another modified function here: >base64url_(en|de)code > >You could simply use this: > >urlencode(base64_encode($blaat)); Sure but the the encoding result grows in length (dynamically) what i wanted to avoid :-) marcus --

[PHP-DEV] Proposal for aggregation vs. MI

2002-04-10 Thread Andi Gutmans
Hey guys, I still haven't finished reading the looong thread on aggregation vs. MI because you guys write so much :) I would like to make a proposal for a solution which I think would fit PHP very nicely. My main concern with MI is that there are many problems with it including namespace c

RE: [PHP-DEV] modified base64

2002-04-10 Thread Richard Heyes
> After (v)spprintf i have another modified function here: base64url_(en|de)code You could simply use this: urlencode(base64_encode($blaat)); -- Richard Heyes "If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams -- PHP Development Mailin

[PHP-DEV] Re: modified base64

2002-04-10 Thread Jim Winstead
Marcus Boerger <[EMAIL PROTECTED]> wrote: > After (v)spprintf i have another modified function here: base64url_(en|de)code > > I sometimes transmit binary data or thinks like session ids over http. when > using base64 the problem is in the chars '+', '/' and '='. So i changed base64 > to use '-',

RE: [PHP-DEV] sections in httpd.conf?

2002-04-10 Thread adam
> There are no plans for this. I looked at it for Apache 1.3 and there is > no clean way to do it. Yes, I know mod_perl can do it, but it is a very > very ugly hack. It may be easier and cleaner to do it for Apache 2.0. > Haven't looked at that yet. > Thanks Rasmus. If there's no clean way to d

[PHP-DEV] Request for change of configure.in and main/php_version.h

2002-04-10 Thread Joseph Tate
In order to accommodate different operating systems (most notably windows, which likes a "Major, Minor, Release, Build" release number) who use a different version numbering scheme, I've modified configure.in and the stock main/php_version.h to separate out the Major Minor Release &c. from PHP_VER

[PHP-DEV] modified base64

2002-04-10 Thread Marcus Boerger
After (v)spprintf i have another modified function here: base64url_(en|de)code I sometimes transmit binary data or thinks like session ids over http. when using base64 the problem is in the chars '+', '/' and '='. So i changed base64 to use '-', '_' and '!' instead. After this change no modifica

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/hwapi CREDITS config.m4 hwapi.cpp

2002-04-10 Thread Sebastian Bergmann
Uwe Steinmann wrote: >> 2. Shouldn't this rather be in PECL > Didn't make sense to me since the old hyperwave module > hasn't been move to PECL either. Then why not do it? Better now than never. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Yasuo Ohgaki
[EMAIL PROTECTED] wrote: > On Wed, 10 Apr 2002, Yasuo Ohgaki wrote: > > >>PS: I've already added $_APP to session_pgsql that can be used >>as application variable. If msession and SRM supports it, it >>would be great. (I know SRM has other way to do the same :) > > > How exactly does $_APP wor

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /mainspprintf.cspprintf.h

2002-04-10 Thread Sebastian Bergmann
Marcus Börger wrote: > Just read Wez mail on Streams/Win and remembered PHP_API. Could it > be the same with snprintf/spprintf? No, I fixed it now, though. I only added 2 of 4 files to the project before :( -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOp

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread derick
On Wed, 10 Apr 2002, brad lafountain wrote: > I personally would like to see $_APP defined for all session modules. > Cause I would like $_APP variable across multiple machines and then i could use > msession for that. That's why I asked Yasuo for his implementation, to let me replicate it in S

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread brad lafountain
I personally would like to see $_APP defined for all session modules. Cause I would like $_APP variable across multiple machines and then i could use msession for that. - Brad --- [EMAIL PROTECTED] wrote: > On Wed, 10 Apr 2002, Yasuo Ohgaki wrote: > > > PS: I've already added $_APP to session_

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread derick
On Wed, 10 Apr 2002, Yasuo Ohgaki wrote: > PS: I've already added $_APP to session_pgsql that can be used > as application variable. If msession and SRM supports it, it > would be great. (I know SRM has other way to do the same :) How exactly does $_APP work in session_pgsql, can where can I fin

Re: [PHP-DEV] basic_functions.c problem

2002-04-10 Thread derick
Hello, I got your point, but PHP_MINFO(mail) is always defined, check these lines in ext/standard/mail.c : 40 #if HAVE_SENDMAIL 196 PHP_MINFO_FUNCTION(mail) 197 { 209 } 212 #else 214 PHP_FUNCTION(mail) {} 217 #endif So there is no additional check needed. I tried it on my

Re: [PHP-DEV] basic_functions.c problem

2002-04-10 Thread fabwash
Sorry it was confusing! In main/php_config.h: HAVE_SENDMAIL could be defined or undefined. In ext/standard/php_mail.h there is the following statement: #if HAVE_SENDMAIL PHP_FUNCTION(mail) PHP_FUNCTION(ezmlm_hash); PHP_INFO_FUNCTION(mail); So since I do not have HAVE_SENDMAIL set, PHP_INFO_FUNC

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Yasuo Ohgaki
Ivan Ristic wrote: >>bool psv_register(string var_name, array values, string access_key); >>where var_name is variable name, values are array to regieter, >>key is access key for the variable. > > > access key is unique id of an application? If so, I would still > prefer the approach with th

Re: [PHP-DEV] REPOST: [STREAMS] ext/gd does not compile on Win32

2002-04-10 Thread Sebastian Bergmann
Wez Furlong wrote: > It's declared extern in main/php_streams.h. Does it also need > PHPAPI? Adding PHPAPI didn't work here. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Did I help you? Consider a gift: http://wishlist.sebastian-bergman

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Yasuo Ohgaki
Ivan Ristic wrote: >>I need to store large static array as lookup table (read only). >>I think there are many applications that has relatively >>large static array for application configuration, etc. >> >>$_PERSISTENT is problematic, since user may store unsutable >>data for it. > > > Are ther

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Edin Kadribasic
> > I need to store large static array as lookup table (read only). > > I think there are many applications that has relatively > > large static array for application configuration, etc. > > > > $_PERSISTENT is problematic, since user may store unsutable > > data for it. > > Are there problems w

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Ivan Ristic
> I need to store large static array as lookup table (read only). > I think there are many applications that has relatively > large static array for application configuration, etc. > > $_PERSISTENT is problematic, since user may store unsutable > data for it. Are there problems with objects o

[PHP-DEV] FRC: psv (Persistent Server Variable) module

2002-04-10 Thread Yasuo Ohgaki
Thanks for all who gave me feedback. This is summary. If you have comment, I appreciate it. ---rfc-- Module name: psv (Persistent Server Variable) Back Ground: Session servers can be used to share data. Shared memory module can store persisent data. However, both of them are no

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Ivan Ristic
> bool psv_register(string var_name, array values, string access_key); > where var_name is variable name, values are array to regieter, > key is access key for the variable. access key is unique id of an application? If so, I would still prefer the approach with the configuration variable as

[PHP-DEV] Re: Bug #16528 Updated: Incompatible behaviour of arrays (and maybe other vars)

2002-04-10 Thread Derick Rethans
On Wed, 10 Apr 2002, Alex Aulbach wrote: > Is it fixed in 4.2? No, as it is correct bahavior, it's just different than 4.0.x which had this bug. Derick > > PHP Bug Database schrieb: > > > > ATTENTION! Do NOT reply to this email! > > To reply, use the web interface found at > > http://bugs.p

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /main snprintf.c snprintf.h

2002-04-10 Thread Sebastian Bergmann
"Marcus Börger" wrote: > helly Tue Apr 9 21:07:50 2002 EDT > > Modified files: > /php4/main snprintf.c snprintf.h > Log: > -preface for new vpprintf > #reordered and renamed some functions and removed some static c:\home\php\php4\main\snprintf.c(126): warning C4244: '=': C

Re: [PHP-DEV] Anyone wrote persistent variable extension?

2002-04-10 Thread Yasuo Ohgaki
Edin Kadribasic wrote: >>I think you are using serialize()/unserialize() to save data, right? > > > That's right. > > >>I would like to get rid of serialize()/unserialize() also. Since, >>I have large web site that has relatively large menu definition as >>array. > > > What sort of variables

Re: [PHP-DEV] FRC: pg_metadata, pg_convert, pg_insert, etc

2002-04-10 Thread Yasuo Ohgaki
Markus Fischer wrote: > Can you elaborate more on the mystic 'metadata' and what it > reallt means to the functions? array pg_metadata(resource conn, string tablename); returns table definition stored in PostgreSQL system catlog. Returned array is array(3) { ["num"]=> // field name

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /main spprintf.cspprintf.h

2002-04-10 Thread Marcus Börger
At 12:02 10.04.2002, Sebastian Bergmann wrote: >Marcus Börger wrote: > > Sorry i have no windows compiler... > > Nothing to be sorry for :) I mean i cannot verify it myself.. > > The functions mentioned are in snprintf.h/c > > Before my patch snprintf.h was only added if needed. > > Now it is

  1   2   >