Re: [PHP-DEV] [PATCH] .phps support for Apache 2

2002-10-06 Thread Andi Gutmans
ctx->r->handler[strlen("application/x-httpd-php")] Is this actually the way it's supposed to work? (based on the length)? Unless there's something I'm missing I'd prefer to see an strcmp() here. It might be a bit slower but it's definitely more robust

Re: [PHP-DEV] ini_set("register_globals", 1);

2002-10-06 Thread Andi Gutmans
I don't think this is a good idea because some code which runs before the script runs depends on this. It doesn't make sense to make such a hack just for the tests, just to get some session code to run differently. Andi At 09:01 AM 10/3/2002 +0200, Sascha Schumann wrote: >

Re: [PHP-DEV] Re: cvs: php4 /ext/pgsql pgsql.c php_pgsql.h

2002-10-06 Thread Andi Gutmans
It doesn't really make sense to me to add an alias to MySQL if it's not needed. The less aliases we have in PHP the better IMO. Andi At 11:04 AM 10/3/2002 +0900, Yasuo Ohgaki wrote: >Ok. I'll add alias to mysql and rename pgsql function. > >-- >Yasuo Ohgaki > >

Re: [PHP-DEV] Feature request -- feedback welcomed.

2002-10-06 Thread Andi Gutmans
You already have "public" which you can use instead of "var". I think method would look very nice but I don't think it's worth creating another reserved word. Andi At 01:34 PM 9/28/2002 -0600, Lamont R. Peterson wrote: >All: > >I can't hardly wait f

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/session session.c

2002-10-06 Thread Andi Gutmans
Please use sizeof("sid") and not 4 in such code. Also, why use hash_find() if just calling hash_del() would work? Andi At 12:05 AM 9/27/2002 +0200, Markus Fischer wrote: > Guys, > > _Please_ include bug fixes in NEWS entries (or separately > commit them)

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard config.m4 css.c css.h info.c /main php_ini.c /sapi/aolserver aolserver.c /sapi/apache php_apache.c

2002-09-24 Thread Andi Gutmans
ugly" (i.e. not as nice as before) in >NS 4.x, a broswer that almost no one uses anymore. > > > Indeed, why did you have to change it? Just to get CSS in there? > > >As I said, it was to reduce the size of the file considerably. Just out of curiosity, what was the size be

Re: [PHP-DEV] sticky perms in CVS?

2002-09-23 Thread Andi Gutmans
ts this? >(and do we want it switched on?) No idea. It's never happened to me. Not that I think it can have anything to do with it but is your umask OK? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] [ZE] More useful error message for class redeclaration

2002-09-23 Thread Andi Gutmans
If the zend_hash_add() fails then you can do a zend_hash_find() to retreive the class which is in the hash and print its information. If its information is NULL (we have to make sure we init it) then you can print out a message that it's an internal class. Does that make sense? Andi At

Re: [PHP-DEV] [PATCH] [ZE] More useful error message for class redeclaration

2002-09-23 Thread Andi Gutmans
Can't you make sure that the filename of internal classes will be NULL and then we can check for it and say it's an internal class? Andi At 03:59 PM 9/23/2002 +0100, Wez Furlong wrote: >X-Managedo-partname: name="1.1"; mimetype="text/plain" >Content-T

Re: [PHP-DEV] Re: var_export() and arrays

2002-09-08 Thread Andi Gutmans
1 => 'bar', >> ) >> The comma after 'bar' is superfluous. > >I agree, but it has been discussed recently. >Derick added extra , since it should not harm >any. > >(there are shell script languages accept >extra , like this also) C also

[PHP-DEV] Re: [Zend Engine 2] PHP/ZE2 win32 snapshots Bug with Constants

2002-09-08 Thread Andi Gutmans
This sounds very strange. It sounds to me as if your scanner wasn't built correctly for some odd reason. Andi At 10:45 AM 9/6/2002 +0200, phpsurf wrote: >Hi > >I tried the latest windows binaries of PHP with ZE2 built yesterday by Edin >on http://snaps.php.net/win32/ZE2 and

Re: [PHP-DEV] Sound API for php

2002-09-08 Thread Andi Gutmans
ally you (as the end-user) shouldn't load a GPL library with PHP (as that can be looked upon as linking). Only LGPL works in such a case. However, often one can get permission from the author of the GPL library. Andi -- 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-07 Thread Andi Gutmans
You might want to put this into Pear. In any case, if you want to post the API just to get people's input (naming conventions of functions and so on) feel free to post here. Andi At 06:28 PM 9/7/2002 +0100, Tony Leake wrote: >Hi, > >I have started to write an audio api for

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-09-01 Thread Andi Gutmans
At 05:11 PM 9/1/2002 -0700, Michael Sisolak wrote: >Andi, > >I download the alpha2 version of the php-4.3.0-dev-zend2 release. >Unfortunatley out-of-the-box I got an "Invalid access to memory >location." error returned when I try to view I page. I was able to >track i

Re: [PHP-DEV] adding persistent toggle to zend_stack implementation

2002-09-01 Thread Andi Gutmans
I think this is fine. Andi At 11:32 AM 8/27/2002 -0400, George Schlossnagle wrote: >Hi, > >I'd like to use the zend_stack stuff for stacked handlers in the new >apache_hooks sapi stuff, but right now, it emalloc's everything, which is >unacceptable for my usage. I

Re: [PHP-DEV] ISAPI Crash Debugging Notes

2002-09-01 Thread Andi Gutmans
Any chance you can setup and Engine 2 build and see if this problem persists? Andi At 06:42 AM 8/27/2002 -0700, Michael Sisolak wrote: >--- Zeev Suraski <[EMAIL PROTECTED]> wrote: > > At 09:53 27/08/2002, Michael Sisolak wrote: > > > > >i've been doing

Re: [PHP-DEV] Possible leak in zend_llist ?

2002-09-01 Thread Andi Gutmans
Hey, I think you're right. Someone changed this code a while ago and might have introduced this problem (or it was like this before). I commited a fix and hope it doesn't break anything :) If anyone uses llist's please make sure it's OK. Andi At 07:30 AM 8/27/2002 -04

Re: [PHP-DEV] friendly classes

2002-08-21 Thread Andi Gutmans
lementation >of C++ friends, I'm not to sure about the java alternative (is it package >access?). Anyway is this consept likely to appear in PHP at any time? I wouldn't want to get into what I consider "the ugly sides of C++'s OOP". If you need friend then just go ahead a

Re: [PHP-DEV] Streams filter API

2002-08-20 Thread Andi Gutmans
erparams a void * because then you can pass whatever you want (a structure with all the params and so on). Of course you can do it with your current prototype too but this is how it's usually done. I haven't looked into the API itself so if it doesn't make much sense ignore me :)

Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-20 Thread Andi Gutmans
me momentum. > > Backporting is definitely a momentum breaker *especially* as everyone > > really really wants to backport it badly. That's exactly my point. If you > > guys want it so badly then work for it! :) > >Andi, everybody reading this list can rather simply patch

Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-20 Thread Andi Gutmans
that it's my code and that PHP will do much better. I think that PHP is going to loose out big time if things don't start gaining some momentum. Backporting is definitely a momentum breaker *especially* as everyone really really wants to backport it badly. That's exactly my point. If you guys want it so badly then work for it! :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-18 Thread Andi Gutmans
ures people have been asking for. > > i (of course) agree with derick and rasmus. i'm all for > applying the patch as is. if zeev and andi don't want to > comment on it for their own reasons i cannot help them. if > the patch has a problem it'll be foun

Re: [PHP-DEV] PATCH: debug_backtrace() function for 4.3-dev/ZE1

2002-08-18 Thread Andi Gutmans
I also think we should make sure enough people have motivation to move to ZE2. If not it'll be hard to push it out and we all know that it's a very important step for PHP. As it is, there is still not enough momentum behind it. Andi At 05:38 PM 8/18/2002 +0300, Zeev Suraski wrot

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

2002-08-16 Thread Andi Gutmans
message: >"Fatal error: Class myfoo: Cannot inherit from undefined class foo in >c:\webroot\ze2\myfoo.php on line 2" > >andi ? is it not supposed to work either with extended classes ? Can you please send me a very short script which reproduces your problem? Thanks, Andi

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
thread's address space is a good idea. It's slow and prone to errors. Andi > -brad >--- Andi Gutmans <[EMAIL PROTECTED]> wrote: > > I still think that if you're going to implement such a thread extension it > > shouldn't try and copy it's pare

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
that the thread is pretty much a completely new request. It would also mean much leaner threads as you could create .php files with only the logic the thread requires. Andi At 02:30 PM 8/3/2002 -0700, Shane Caraveo wrote: >I've cleaned things up a bit, removed code from tsrm and added it

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
At 12:40 PM 8/3/2002 -0700, Shane Caraveo wrote: >Andi Gutmans wrote: >>By the way, if we do end up making this kind of thing mainstream we >>should probably use APR (or another library) for thread abstraction. I >>wouldn't want to do all of that work over. >>And

Re: [PHP-DEV] Error in zend2_example.phps

2002-08-03 Thread Andi Gutmans
Thanks. I've fixed this. Andi At 05:51 PM 7/18/2002 +0200, Sander Steffann wrote: >I think zend2_example.phps has a little error in example 6: > >The display function is defined as: > function display() > { > print $this->name; > print &q

Re: [PHP-DEV] New FTP extension functionality

2002-08-03 Thread Andi Gutmans
release >4.3.0 with the wrong function names. It just doesn't look professional :) I agree :) It should probably be something like ftp_nb_get(). Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [ZE2] clone_obj function and __clone method

2002-08-03 Thread Andi Gutmans
clone_obj is the C handler for overloaded objects. In case of PHP objects clone_obj calls __clone. Andi At 12:37 AM 7/18/2002 -0400, l0t3k wrote: >A quick question about the above... >what is the relationship between the clone_obj handler and the __clone >method. For instance, if i d

Re: [PHP-DEV] Weird?!?!

2002-08-03 Thread Andi Gutmans
I think this is a good question. I'm not quite sure that casting dval to long is the same as multiplying the two longs. Anyone know the answer? Andi At 02:28 PM 7/31/2002 +0200, Stefan Esser wrote: >Hi, > >Could someone tell me why the Zend Engine calculates every multiplic

Re: [PHP-DEV] HANDLE_BLOCK_INTERRUPTIONS

2002-08-03 Thread Andi Gutmans
Theoretically these should be used when the engine is not in a "stable state" (i.e. would crash on shutdown). As this can also include PHP's code and PHP extensions I'm not really sure how much this really helps. Andi At 08:04 AM 8/2/2002 -0700, Brad LaFountain wrote: &g

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
two threads shouldn't really share the same engine instance. It would mean that everything would have to be mutexed. The solution of creating a separate interpreter instance and having a couple of methods to share data in between them (like shared memory) is the way to go. As creating

[PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_compile.c zend_compile.h zend_execute.c zend_language_parser.y zend_language_scanner.l zend_operators.c zend_operators.h

2002-08-03 Thread Andi Gutmans
At 02:43 AM 7/30/2002 -0400, Andrei Zmievski wrote: >On Tue, 30 Jul 2002, Andi Gutmans wrote: > > Hey, > > > > Can't you share the patch before you just go ahead and just commit it? I > > still have the same issue I used to have. > >Hey, the patch h

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
By the way, if we do end up making this kind of thing mainstream we should probably use APR (or another library) for thread abstraction. I wouldn't want to do all of that work over. Andi At 04:29 PM 8/3/2002 +0800, Alan Knowles wrote: >Ok, had a play with this >updated co

Re: [PHP-DEV] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
ion.. >** FIX = not sure? - does this need fixing or should we just ignore >php_request_shutdown.. I think threads should be treated exactly like a separate request so I think most code could run as is. >due to the nature of thread scheduling, you dont get anything like '1 &

Re: [PHP-DEV] Re: cvs: php4(ZendEngine2) /win32 php4dllts.dsp

2002-07-10 Thread Andi Gutmans
created this branch for stuff he was doing. When I package Engine 2 alpha's I don't use the branch but use HEAD. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Going on vacation

2002-07-10 Thread Andi Gutmans
Hey, I'm going on a four day computer-less vacation starting tomorrow morning so I won't be reading my Email. If you guys send patches for the Engine 2 or other queries please give me some time to reply when I get back. I'll look them over ASAP. Thanks, Andi -- PHP Developme

Re: [PHP-DEV] add'l info: [PHP-DEV] MAKE failed: of php4 cvs/ZendEngine2 dying on OSX Server 10.1.4

2002-07-07 Thread Andi Gutmans
That's really strange. Any chance bison is broken on Mac's? Andi At 06:15 PM 7/6/2002 -0700, R Blake wrote: >continuing to explore this problem, i added --disable-inline-optimization >to configure. > >now configure fails with: > > Thank you for using PHP. >

[PHP-DEV] Re: [Zend Engine 2] can I have my delete back? :) - patch attached

2002-07-06 Thread Andi Gutmans
t a very simple search&replace on your project should do the trick. Thanks anyway, Andi At 03:06 PM 7/6/2002 +0800, Alan Knowles wrote: >Attached hopefully is a patch to allow method names called delete .- not >functions though.. > >Speedwise it should not affect performance as its a

Re: [PHP-DEV] [PHP-QA] PHP Annual Bughunt!

2002-07-01 Thread Andi Gutmans
I'll take Pack 40. Andi At 03:25 PM 7/1/2002 +0200, [EMAIL PROTECTED] wrote: >Hello QA-ers, > >it's the time of the year again, time for the PHP Bug Hunt Event! Although >this is the first time, I'm pretty sure it will be fine. > >

Re: [PHP-DEV] sapi_header_op

2002-07-01 Thread Andi Gutmans
that it's not uncommon doesn't mean it's easy to use. Look at semop(). It's very common but not a very nice function to start using. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] sapi_header_op

2002-06-30 Thread Andi Gutmans
At 10:03 PM 6/30/2002 +0200, Sascha Schumann wrote: >On Sun, 30 Jun 2002, Andi Gutmans wrote: > > > My only problem with this patch is that I don't like API's which pass > > around structs. I always find it cumbersome to have to create and fill the > > struct a

Re: [PHP-DEV] sapi_header_op

2002-06-30 Thread Andi Gutmans
My only problem with this patch is that I don't like API's which pass around structs. I always find it cumbersome to have to create and fill the struct and then pass it. Can you think of something similar without using structs? Andi At 01:44 PM 6/30/2002 +0200, Sascha Schumann wrot

Re: [PHP-DEV] zend2 design "arhitecture"

2002-06-27 Thread Andi Gutmans
delete is a keyword like isset and unset so it makes sense for it to be without the __. Andi At 11:41 AM 6/27/2002 +0200, Tit \"Black\" Petric wrote: >[quote ZEND_CHANGES.txt] > > * Forced deletion of objects. > >.. yadda .. > > Note that if you have

Re: [PHP-DEV] session related connection handling/cvs/mem

2002-06-27 Thread Andi Gutmans
the request and then you should use the regular memory allocation functions). Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Idea for CLI feature

2002-06-27 Thread Andi Gutmans
ized print functions anyway. Does anyone feel like doing this? I don't have too much time :'( Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-27 Thread Andi Gutmans
At 11:21 AM 6/27/2002 +0200, phpsurf wrote: > > -Original Message- > > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > > Sent: mercredi 26 juin 2002 21:02 > > To: Brad LaFountain; Ivan Ristic; phpsurf > > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] > > Sub

Re: [PHP-DEV] Key values starting with .

2002-06-27 Thread Andi Gutmans
ot the other? Also what is the "(not binary >safe)" part of a variable with a . in its name? I guess this is a left over from register globals as you can't access variables with . such as $image.x won't work (yeah you could always use indirect references but I'm jus

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

2002-06-26 Thread Andi Gutmans
Hey, What I meant was nested classes, my bad :) I meant it won't work for Foo::Bar::Barbara but only for class Foo. Andi At 11:56 AM 6/26/2002 -0700, Brad LaFountain wrote: > > - will never work for sub-classes so don't even ask! > >Andi, > > This doesn't

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

2002-06-26 Thread Andi Gutmans
it doesn't manage to find - the class. Andi At 11:27 PM 6/11/2002 +0100, Ivan Ristic wrote: > > Okay, I guess I can live with it :) > > > > Andi > > Is there anyone else who would like to comment on the > patch? > > http://www.webkreator.com/downl

Re: [PHP-DEV] Re: Has this fp fix been considered? - ADDENDUM

2002-06-26 Thread Andi Gutmans
I don't quite understand. Can you give us a few examples, how they are handled by PHP today and how they would be handled by your code. I'll start off: 0.9+0.1 0.9+0.001 8/10.0 + 0.2 I'm sure you know of juicier examples :) Andi At 02:33 PM 6/26/2002 +0100, George Whiff

Re: [PHP-DEV] ZendEngine2 and $argc,$argv

2002-06-24 Thread Andi Gutmans
Can you try the latest CVS version? It should be fixed there. Let me know... Thanks, Andi At 11:04 PM 6/24/2002 +0200, Marcus Boerger wrote: >Since i use ZendEngine2 i cannot use global $argc,$argv. > >Example: > >function somefunction() { > global $argc, $argv; >}

Re: [PHP-DEV] Zend 2: return by reference

2002-06-24 Thread Andi Gutmans
At 02:49 PM 6/24/2002 +0100, SCL List Client wrote: >Sorry Andi, I was wrong. I never managed to test the returned references using >the CVS version of PHP/Zend2 because I had assumed when I download the php4 >tree from the CVS I got Zend 2, so I compiled Zend 1.x by mistake. I can&#x

Re: [PHP-DEV] Zend 2: return by reference

2002-06-24 Thread Andi Gutmans
Hi, This is a bug and I think I fixed it in the CVS version of the Engine. Any chance you can grab it and check? In any case, I just want to remind you that you will not want to return objects by reference anymore with Engine 2 only possibly some other datatypes. Andi At 11:43 AM 6/24/2002

Re: [PHP-DEV] Difference between sprintf, snprintf and spprintf

2002-06-22 Thread Andi Gutmans
I don't think adding a note is a bad idea. Andi At 04:44 PM 6/22/2002 -0500, Sterling Hughes wrote: >Why? If you're commiting code you should know how to use these basic >functions... > >besides, sprintf is not really all that bad... > >-Sterling > >

Re: [PHP-DEV] What is a persistent constant (resend)

2002-06-22 Thread Andi Gutmans
is used by extensions to define some constants such as the constant PREG_PATTERN_ORDER. It is registered at module startup. Of course it'll die if the Apache process dies. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: Bug #17892: Error Handling for eval()

2002-06-21 Thread Andi Gutmans
eature nor eval() recovery. Andi At 11:59 AM 6/21/2002 +0200, Markus Fischer wrote: > Hi, > > I think you're idea is pretty good, however not the way you > engaged the current behaviour imho. > > PHP also supports 'lint'ing of source code aka. che

Re: [PHP-DEV] Zend Constants PATCH

2002-06-18 Thread Andi Gutmans
Hey, Please test the attached patch and let me know if it works for you. I haven't really had the chance to test it too much. Andi At 06:21 PM 6/15/2002 -0400, Ilia A. wrote: >Andi, > >I wrote another patch, this time a 'proper' way, which means the old >functionali

Re: [PHP-DEV] Zend Constants PATCH

2002-06-18 Thread Andi Gutmans
POSIX' locale Right. For example, decimal's in PHP use a . (e.g. 3.14). This should always be the case even if the locale uses a different separator like , in German. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
We're not going to add configuration options which change the language's behavior! We've said this a million times. Andi At 09:41 PM 6/15/2002 +0200, Magnus M wrote: >What about a configuration option in php.ini >use_case_sensitive = 0|1 >and let it be 0 as default ?

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
ensitivity was chosen for them. It's something to think about and not create a quick 2 line patch for the problem. I think one of the suggestions was using two hash tables. First doing a case-sensitive lookup and only if the constant isn't found doing a case-insensitive lookup. Andi At

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
Ilia, Your patch basically makes PHP constants case sensitive. Changing this is a very big backwards compatibility problem. You're not supposed to register two define's with the same letters but different case. Andi At 01:21 PM 6/15/2002 -0400, Ilia A. wrote: >Hello, > &

Re: [PHP-DEV] PHP 4.3.0-dev-zend2-alpha segfaulting

2002-06-15 Thread Andi Gutmans
Hi, Thanks for the good bug report. I have fixed this problem in the CVS. Andi At 12:39 PM 6/14/2002 +0200, Hakan Kuecuekyilmaz wrote: >Hi, > >following script segfaults at > >in doubleloop 10/22 >Segmentation fault > >class benchmark >{ > var $index;

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

2002-06-13 Thread Andi Gutmans
CVS which I might remove later on. The most permanent things are temporary ones. In any case, I'll look it over again on the weekend. It might make sense to commit it and people will have to know that it only is meant for globally scoped classes (which kind of makes sense anyway). Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-12 Thread Andi Gutmans
is possibly pass it the result of MyClass2 being looked up in MyClass1 and "MyClass3". The question is if people will manage to handle this. I think it might be complicated and it might be best not to go in this direction. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-12 Thread Andi Gutmans
I have two problems here. First of all I'd prefer it to call a predefined callback called __autoload() if a class is not found. The second problem is that I don't see it working with nested classes. Is it good enough to only have this work with classes in the global scope? Andi At

Fwd: Re: [PHP-DEV] filesystem security questions

2002-06-11 Thread Andi Gutmans
Can someone please help out Wez? ;) Thanks, Andi >From: "Wez Furlong" <[EMAIL PROTECTED]> >Date: Wed, 12 Jun 2002 01:39:53 +0100 >To: "Andi Gutmans" <[EMAIL PROTECTED]> >Cc: [EMAIL PROTECTED], "Wez Furlong" <[EMAIL PROTECTED]> >Su

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

2002-06-11 Thread Andi Gutmans
At 11:27 PM 6/11/2002 +0100, Ivan Ristic wrote: > > Okay, I guess I can live with it :) > > > > Andi > > Is there anyone else who would like to comment on the > patch? > > http://www.webkreator.com/download/class_autoload.patch > > Or can we have it

Re: [PHP-DEV] =& problem with ZE2: Can't use function return value in write context

2002-06-11 Thread Andi Gutmans
This should be fixed now. Note, that it will only work if you are returning your return value by reference. In engine 1 doing anything else was buggy. Andi At 07:16 PM 6/11/2002 +0300, Andi Gutmans wrote: >It's supposed to work under the same circumstances as in Engine 1 (if you

Re: [PHP-DEV] =& problem with ZE2: Can't use function return value in write context

2002-06-11 Thread Andi Gutmans
27;ll look into it. Andi At 06:12 PM 6/11/2002 +0800, John Lim wrote: >Hello, > >With the ZE 2, PHP 4.3.0-alpha > > : > : # some init code > : >$aclass =& afunction($params); >?> > >I get an error that looks like this: > >Fatal error: Can't use

Re: [PHP-DEV] ZE2 and Exceptions - One for Zeev/Andi

2002-06-11 Thread Andi Gutmans
At 07:55 AM 6/11/2002 -0400, l0t3k wrote: >ive been looking over the ZE2 alpha release code for clues on porting my OO >extension over to the new engine, but a few things are not clicking yet >how do i raise an exception from C. last time i asked, Andi said that it >would be suff

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

2002-06-11 Thread Andi Gutmans
Okay, I guess I can live with it :) Andi At 02:40 PM 6/11/2002 +0200, phpsurf wrote: >I think handlers are the best solution to make this process configuratble >without introducing a new ini option. >we already have such handlers for errors ... >and then one can define his ow

[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_pat

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 wou

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

2002-06-09 Thread Andi Gutmans
x27;t have a node for a certain size it uses malloc(). So in the end it seems as if you might reach a situation where you do lots of malloc()'s instead of allocating another few pages and dividing them up yourself without mutexes. Please correct me if I'm wrong. I haven't had time to study this code in great depth. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-08 Thread Andi Gutmans
we can take an 8KB block from that allocator's free list >rather than interacting with the system heap. It sounds to me as if we're going to have to write a new allocator with the same semantics as the Win32 API one. I don't think any of these two allocators would suit us very well. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-08 Thread Andi Gutmans
At 10:47 AM 6/8/2002 -0700, Brian Pane wrote: >Andi Gutmans wrote: > >>I just checked and it seems like Apache APR memory pools use mutex locking. >>It'd be better to use functions like the Win32 ones which don't use mutex >>locking (as we made sure that only

[PHP-DEV] Re: PHP profiling results under 2.0.37 Re: Performance of Apache2.0 Filter

2002-06-08 Thread Andi Gutmans
ne call "send bytes > 375-10136 to the client as-is, it's inline html". I don't believe that this is what's slowing PHP down on Apache 2. Don't forget that after the first piece of PHP code we can't optimize inline HTML any more because they can be conditional. I think that the non-mutexed per-thread memory pool would improve performance much more significantly. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] filesystem security questions

2002-06-08 Thread Andi Gutmans
get Wez to write complete documentation for the API docs? :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

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

2002-06-08 Thread Andi Gutmans
At 10:41 AM 6/8/2002 +0300, Andi Gutmans wrote: >At 09:12 PM 6/7/2002 -0700, Brian Pane wrote: >>In case it's helpful to the PHP developers, here are >>some more performance problems that I found by running >>a quick system call profile of PHP-4.2.1

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

2002-06-08 Thread Andi Gutmans
l is to provide easy quick development for 'dynamic >pages' , then why is there no built-in template engine? > >Having this would solve many of the niggling problems that are associated >with current PHP-written (OO) template engines. Is it that there is no >desir

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

2002-06-08 Thread Andi Gutmans
27;t take too much CPU time. You shouldn't test an empty html page but rather a real-life PHP script. I've profiled PHP a lot and be aware that the profiling results change a lot according to what script you're running. As it's gone through various optimizations already th

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
At 01:14 PM 6/7/2002 -0700, Brian France wrote: >Yes, zend_hash_graceful_reverse_destroy() fixes the problem as well. Is >this a better solution for the fix? It's the same but doesn't require a new function. Andi -- PHP Development Mailing List <http://www.php.net/>

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
_destroy and zend_hash_destroy? Yeah the destructor should be called. The graceful_destroy() is just a bit more careful and used when destroying the resource list. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Fwd: REJECTED: <5.1.0.14.2.20020607225328.03df2740@127.0.0.1>

2002-06-07 Thread Andi Gutmans
Any idea why I got this when posting to php-dev? Andi >Delivered-To: [EMAIL PROTECTED] >Sender: <[EMAIL PROTECTED]> (reject) >Date: Thu, 06 Jun 2002 08:50:05 -0700 >X-Autogenerated: Reply >To: Andi Gutmans <[EMAIL PROTECTED]> >From: [EMAIL PROTECTED] >Subject:

Re: [PHP-DEV] Zend Engine expert wanted!!!!

2002-06-07 Thread Andi Gutmans
Can you check and see if using zend_hash_graceful_reverse_destroy() fixes your problem? Andi At 11:44 AM 6/7/2002 -0700, Brian France wrote: >Zend Engine unloading extension in the wrong order! (Re-post due to no >response) > >I have been tracking down a core dump with my php ex

Re: [PHP-DEV] Re: [Zend Engine 2] PHP in the future

2002-06-06 Thread Andi Gutmans
find it in the archives. Andi At 06:59 PM 6/6/2002 +0100, Dan Hardiker wrote: > > I believe the OO level we have in ZE2 is the upper limit > > of what a scripting language should have. There's no doubt in my mind > > that going beyond that is going to complicate the l

Re: [PHP-DEV] Snapshots not build correctly..

2002-06-05 Thread Andi Gutmans
At 09:25 PM 6/5/2002 +0300, Jani Taskinen wrote: >On Wed, 5 Jun 2002, Andi Gutmans wrote: > > >At 11:35 PM 6/4/2002 +0300, Jani Taskinen wrote: > > > >> The source snapshots don't have the bison/flex generated > >> files anymore..why is that? >

Re: [PHP-DEV] Snapshots not build correctly..

2002-06-04 Thread Andi Gutmans
At 11:35 PM 6/4/2002 +0300, Jani Taskinen wrote: > The source snapshots don't have the bison/flex generated > files anymore..why is that? genfiles was broken but I fixed it in HEAD. Is this still not the case? Andi -- PHP Development Mailing List <http://www.php.net/&g

Re: [PHP-DEV] Quality of this list

2002-06-04 Thread Andi Gutmans
Was one of the questions about AG(allocated_memory)? Are you sure it's not initialized in zend_alloc.c? I see an initialization there. Andi At 11:45 AM 6/4/2002 +0200, Hans Rakers wrote: >Hello all, > >No offence, but whatever happened to the technical level on this list? >

[PHP-DEV] Re: PHP's vision

2002-06-03 Thread Andi Gutmans
eing the evangelism guys come up with some nice ways of marketing PHP. I'm including this because I think it's of great importance although it's not a technical issue. I'm sure you guys can think of a million things but if I'd have to pick big main topics I think these would be them. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PHP's vision

2002-06-03 Thread Andi Gutmans
At 03:27 PM 6/3/2002 +0300, Jani Taskinen wrote: >On Mon, 3 Jun 2002, Andi Gutmans wrote: > > >> >the web but more for Enterprise transaction based applications such as > >> >billing systems. > >> > >> Twisting your words a bit: You don&#x

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread Andi Gutmans
At 03:36 AM 6/3/2002 +0300, Jani Taskinen wrote: >On Sun, 2 Jun 2002, Andi Gutmans wrote: > > >At 04:21 PM 6/2/2002 +0200, Sebastian Bergmann wrote: > >>Jani Taskinen wrote: > >> > I'm not that familiar with Java..so it would be nice to hear &g

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread Andi Gutmans
terprise Beans. Are you aware how complex and expensive it is to create a Java application server solution? I know it's a great buzz word but in my opinion it is not very suitable for the web but more for Enterprise transaction based applications such as billing systems. Andi > And

Re: [PHP-DEV] libxml bundling

2002-05-31 Thread Andi Gutmans
gt; cons: >Forces people to install themselves. I just want to mention one of the more important reasons why I think it's a good idea to include it in the tree. It means that PHP itself and its extensions can rely on having the C API present and can add XML functionality in various

Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_objects.c

2002-05-31 Thread Andi Gutmans
Try now. Andi At 16:55 31/05/2002 +0200, Sebastian Bergmann wrote: >Andi Gutmans wrote: > > andiFri May 31 10:32:19 2002 EDT > > > > Modified files: > > /ZendEngine2zend_objects.c > > Log: > > - Fix build > > I

Re: [PHP-DEV] bundling libxml2 / bundling locations

2002-05-30 Thread Andi Gutmans
ySQL libraries in our tree. One fix I had to apply myself because they just didn't get to it. I don't really mind because there wasn't anything critical but that's what happened. I Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] bundling libxml2 / bundling locations

2002-05-30 Thread Andi Gutmans
more integrated in PHP. So if you can cut it down to something small I'm +1. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] bundling libxml2 / bundling locations

2002-05-30 Thread Andi Gutmans
At 08:46 30/05/2002 +0200, [EMAIL PROTECTED] wrote: >On Thu, 30 May 2002, Andi Gutmans wrote: > > > I think that XML is a core technology and giving plug&play access to our > > users is important. Having bundled the MySQL library made it easier for > > people to get s

<    1   2   3   4   5   6   7   8   9   10   >