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 for future changes. Andi At 12:06 PM

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
At 11:01 AM 9/24/2002 -0400, Colin Viebrock wrote: It obviously is not compatible with current browsers as it is really ugly in IE and NS. It looks pretty much identical to the way it did before in MSIE 5+ and NS 6+ and Mozilla. It only looks ugly (i.e. not as nice as before) in NS

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-Type: text/plain; charset=iso-8859-1

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

2002-09-23 Thread Andi Gutmans
this is the case, but then I haven't really delved into how it all works :-/ --Wez. On 09/23/02, Andi Gutmans [EMAIL PROTECTED] wrote: 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

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

2002-09-23 Thread Andi Gutmans
At 07:22 PM 9/23/2002 +0100, Wez Furlong wrote: Am I the only one who is getting their files chmod'ed to read-only every time I do a CVS commit? In particular, main/user_streams.c keeps doing this which is quite annoying - is there some setting on the server side that affects this? (and do we

Re: [PHP-DEV] Sound API for php

2002-09-08 Thread Andi Gutmans
At 11:00 AM 9/8/2002 +0100, Wez Furlong wrote: 3) will be midi functions,this is a long way off yet so I haven't given it too much thought yet. Also it is likely to be a separate module as it will need to link against a separate library and I can't think of any PHP modules that link

[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 there is still a bug

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

2002-09-08 Thread Andi Gutmans
At 02:48 PM 9/4/2002 +0900, Yasuo Ohgaki wrote: Sebastian Bergmann wrote: ?php $array = array('foo', 'bar'); var_export($array); ? prints array ( 0 = 'foo', 1 = 'bar', ) The comma after 'bar' is superfluous. I agree, but it has been discussed

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 -0400, l0t3k wrote: hi, im

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 some debugging of the crashes when running php

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 it down to something with the

Re: [PHP-DEV] friendly classes

2002-08-21 Thread Andi Gutmans
At 10:59 AM 8/21/2002 +0100, Tom Oram wrote: Hi, I'm currenly looking at/doing a lot of object orientated PHP so I have been looking into what new features Zend 2 will offer me. I have just run into a situation where if I was using Zend 2 I would need some sort of implementation of C++ friends,

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

2002-08-20 Thread Andi Gutmans
At 09:55 PM 8/19/2002 -0700, Brad LaFountain wrote: I still think it shouldn't go in. This is the only feature in Engine 2 which might make non-OOP people convert. Once this isn't in Engine 2 we don't have a carrot for them. You as a Zend owner who's business could be very propitable

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

2002-08-20 Thread Andi Gutmans
At 11:20 AM 8/20/2002 -0700, Rasmus Lerdorf wrote: By the way, the only personal gain I have in getting ZE2 out of there is 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

Re: [PHP-DEV] Streams filter API

2002-08-20 Thread Andi Gutmans
At 10:47 PM 8/20/2002 +0100, Wez Furlong wrote: Filters are created using: php_stream_filter_create(char *filtername, char *filterparams, int filterparamslen, int persistent TSRMLS_DC); filtername corresponds to the name used to register the factory; if no exact match is found, it looks

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 wrote: I said

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

2002-08-18 Thread Andi Gutmans
At 07:50 PM 8/18/2002 +0200, Thies C. Arntzen wrote: On Sun, Aug 18, 2002 at 10:29:47AM -0700, Rasmus Lerdorf wrote: I don't think we should stop people from tweaking ZE1. ZE2 is probably more than a year away from realistically being available to a lot of people. It takes a while for

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

2002-08-16 Thread Andi Gutmans
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 -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002

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

2002-08-03 Thread Andi Gutmans
At 04:29 PM 8/3/2002 +0800, Alan Knowles wrote: Ok, had a play with this updated copy on http://docs.akbkhome.com/threads.tgz added a few of pthreads calls to TSRM.c did most of the testing without this abstraction layer - just to see if I could get it to work. used php_exectute_script,

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 copy on

[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 has been available for a long while now. :-) I think

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

2002-08-03 Thread Andi Gutmans
At 05:43 PM 8/1/2002 +0800, Alan Knowles wrote: It's not about looking at the perl code, that will tell you nothing unless you know perl internals. It's about the way the interpreter works, some of the architecture, that is simular to PHP. In PHP, threads are isolated, kind of like seperate

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: Thanks.. I figured it out

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 multiplication 2 times???

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 define the

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 \n; } But then it is called with:

Re: [PHP-DEV] New FTP extension functionality

2002-08-03 Thread Andi Gutmans
At 02:05 PM 7/30/2002 -0400, Joao Prado Maia wrote: So are we going to rename these functions because of this ? It seems kind of weird of having ftp_async_get() when the function is not really asynchronous ;) If what Sterling just said is really accurate, _please_ don't release 4.3.0 with the

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. Andi That would be nice, but not sure how

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

2002-08-03 Thread Andi Gutmans
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 parents data-structures. It'd be very slow and prone to errors. I think giving a filename

[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 Development Mailing List

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

2002-07-10 Thread Andi Gutmans
At 05:44 PM 7/10/2002 +0900, Yasuo Ohgaki wrote: [EMAIL PROTECTED] wrote: On Wed, 10 Jul 2002, Yasuo Ohgaki wrote: Hmm. This tag is only for some win32 files. The name isn't sound good to me. This was brought up before, and it's only needed for some files due to incompabilities with the ZE1

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. config.status: creating php4.spec

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

2002-07-06 Thread Andi Gutmans
Alan, There was a discussion about this a long time ago and it was decided not to support this. The main reasoning behind this is that we don't want to start supporting all other reserved words. It's one of the things you'll need to cope with when moving to the Engine 2 but a very simple

Re: [PHP-DEV] sapi_header_op

2002-07-01 Thread Andi Gutmans
At 07:03 AM 7/1/2002 +0200, Sascha Schumann wrote: I understood the rational of using a struct from the beginning. I still in general don't like using structs very much because as I mentioned it's not as easy to use. I prefer having 2-3 methods then having one method which I Well,

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. What is the PHP Bug Hunt Event? --- The

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 wrote: I

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 and then pass it. Can you think

Re: [PHP-DEV] zend2 design arhitecture

2002-06-28 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 a user-defined function delete() in an old

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

2002-06-27 Thread Andi Gutmans
At 08:32 AM 6/27/2002 -0700, Brian France wrote: Hello, I have a url that ends with ?.value=1, but PHP returns this in $_REQUEST as _value instead of .value. I believe this is because of this code: main/php_variables.c 104 /* ensure that we don't have spaces or dots in the

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] Subject: Re: [PHP-DEV] Re: [Zend Engine 2] RE: [PHP

[PHP-DEV] Idea for CLI feature

2002-06-27 Thread Andi Gutmans
Hey, It'd be cool if phpinfo() would print its output in regular text (no HTML) when used with the CLI version (a bonus would be to also be able to pass it a parameter in CGI mode to select this mode). The way phpinfo() is written this is quite easy to do as we're using centralized print

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

2002-06-27 Thread Andi Gutmans
At 10:41 PM 6/27/2002 +0200, [EMAIL PROTECTED] wrote: 4. Our project uses own memory functions, since the sources will be compiled on several different platforms. Do I have to use zend's exxx memory functions? No, you don't need too, but if you use them they show memory leakage when the

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 Whiffen wrote: Oops,

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

2002-06-26 Thread Andi Gutmans
Ivan, I just commited a patch for autoloading to the CVS. It is improved over your patch in the way I discussed (it propogates throughout Zend). I hope it works out to work well. CVS commit message: - Autoloading support based on patch from Ivan Ristic. - Again I hope this feature ends up

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 need to be an issue. The way that I use

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] 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't actually get

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; } worked before ZE2,

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

2002-06-22 Thread Andi Gutmans
At 06:44 AM 6/21/2002 -0400, fabwash wrote: Hello, I already sent this question, but there was no answer, and i'm afraid it was not noticed, but if this is the wrong list, let me know :) When you define a constant you can use two things that are not very clear to me. Can someone explain? 1)

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 Proposal comment for spprintf/snprintf header.

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

2002-06-21 Thread Andi Gutmans
Markus, The problem is that compile_string() will add functions and classes to PHP's global structures. Also, if there's a parse error it can leave the internal compiler structures in an unstable state. I can't think of any quick and easy way of support this kind of lint feature nor eval()

Re: [PHP-DEV] Zend Constants PATCH

2002-06-18 Thread Andi Gutmans
At 04:07 PM 6/18/2002 +0200, Hartmut Holzgraefe wrote: Ilia A. wrote: By using a functiont that does not support lowercasing, would also cause problems, since if a constant name contains non english characters it would break. IMHO the best implementation is to simply not lowercase constant

Re: [PHP-DEV] Zend Constants PATCH

2002-06-18 Thread Andi Gutmans
is supported. Please look it over, hopefuly this is good enough to commit. I've also attached a small php test script you can use to see the problem in non patched PHPs. Ilia On June 15, 2002 03:25 pm, Andi Gutmans wrote: Ilia, I remember now the problem you're talking about. It has been discussed

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 ?php class benchmark { var $index; function benchmark($num) { for

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, While developing software

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
Ilia, I remember now the problem you're talking about. It has been discussed here in the past and I don't recall us having found a good solution. Basically we need a solution which is backwards compatible but will allow TEST and test to co-exist if case sensitivity was chosen for them. It's

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
:18 +0300 Andi Gutmans [EMAIL PROTECTED] wrote: Ilia, I remember now the problem you're talking about. It has been discussed here in the past and I don't recall us having found a good solution. Basically we need a solution which is backwards compatible but will allow TEST and test to co

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

2002-06-14 Thread Andi Gutmans
At 07:00 PM 6/13/2002 +0100, Ivan Ristic wrote: 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? I am not really familiar with nested classes; is it because you don't know the

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 11:27 PM

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

2002-06-12 Thread Andi Gutmans
At 06:53 PM 6/12/2002 +0100, Ivan Ristic wrote: First of all I'd prefer it to call a predefined callback called __autoload() if a class is not found. I do not have a problem with the predefined name. However, unserialize is already using the ini setting for the same thing, and it

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

2002-06-11 Thread Andi Gutmans
his specific needs farther than just setting a classPath. why don't you like this idea ? is it for performance reasons ? -Original Message- From: Andi Gutmans [mailto:[EMAIL PROTECTED]] Sent: lundi 10 juin 2002 22:33 To: phpsurf; Ivan Ristic; Zeev Suraski Cc: [EMAIL PROTECTED

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 sufficient to do a

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

2002-06-11 Thread Andi Gutmans
It's supposed to work under the same circumstances as in Engine 1 (if you really returned a reference) although in most cases you will now be returning objects by value and assigning them by value. It was introduced originally to get around the object problems the Engine 2 solved. I'll look

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 really

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 committed? Hmm, I was wondering where the patch

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] Subject: Re: [PHP-DEV] filesystem security questions If one of the doc guys can

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] Re: PHP profiling results under 2.0.37 Re: Performance of Apache 2.0 Filter

2002-06-09 Thread Andi Gutmans
At 12:53 PM 6/9/2002 -0700, Aaron Bannert wrote: On Sun, Jun 09, 2002 at 03:09:24AM +0300, Zeev Suraski wrote: Hmm, but doesn't that mean that the largest contiguous block this heap will be able to provide is 8KB, then? 8K is just the minimum chunk size, there is no absolute maximum. *

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 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 within Apache-2.0.37-dev: * php_request_shutdown() calls shutdown_memory_manager(), which does a

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

2002-06-08 Thread Andi Gutmans
At 05:02 AM 6/8/2002 +0100, Michael Dransfield wrote: At 02:40 08/06/2002 +0100, you wrote: There are two reasons we repeat the 'PHP is not Java mantra': (a) Many of those requesting these changes actually DO want to see PHP as a Java with PHPish syntax. Anyone wanting PHP to be a

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 within Apache-2.0.37-dev: * php_request_shutdown

Re: [PHP-DEV] filesystem security questions

2002-06-08 Thread Andi Gutmans
At 12:42 PM 6/8/2002 +0200, Markus Fischer wrote: Practically, there's no documentation about streams except some mail Wez sent to php-dev a few weeks (months?) ago (and the sources, of course), I hope you can find it in the archives. Maybe we can get Wez to write complete

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

2002-06-08 Thread Andi Gutmans
On Fri, 7 Jun 2002, Cliff Woolley wrote: On Fri, 7 Jun 2002, Brian Pane wrote: IMHO, that's a design flaw. Regardless of whether PHP is doing buffering, it shouldn't break up blocks of static content into small pieces--especially not as small as 400 bytes. While it's certainly

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 one thread allocates from its pool

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 04:57 PM 6/8/2002 -0700, Brian Pane wrote: Zeev Suraski wrote: At 12:55 AM 6/9/2002, Brian Pane wrote: I just looked through zend_alloc.c. It looks like the HeapCreate only happens once, at startup--did I get that right? It's called on the per-thread startup (start_memory_manager(), which

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 extension when it is

[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: REJECTED: [EMAIL PROTECTED] X-Autogenerated

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

2002-06-07 Thread Andi Gutmans
At 01:00 PM 6/7/2002 -0700, Brian France wrote: I will try that, but I was worried that the pDestructor function would not get called for each item like it was in zend_hash_destroy. Is this the case? Looking at the code what is the difference between zend_hash_graceful_destroy and

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/ To unsubscribe, visit:

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

2002-06-06 Thread Andi Gutmans
A couple of months ago it was agreed on how to get multiple inheritance like behavior in a way which could work with PHP. I just haven't had time to implement it yet. The talk was about aggregation of instances of classes with auto-proxy. So you'd do something like: class foo extends bar

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? genfiles was broken but I fixed it in HEAD

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? Last two weeks i

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/ To unsubscribe,

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't think PHP should be used for such tasks ?? No I definitely

[PHP-DEV] Re: PHP's vision

2002-06-03 Thread Andi Gutmans
Hey, I don't think we need a whole new vision for PHP. PHP's vision has always been to be the best web scripting language out there with a focus on ease of use. I think for most of us this hasn't changed. Sure it's cute that you can do other things with it but let's be realistic; the focus of

Re: [PHP-DEV] PHP's vision

2002-06-02 Thread Andi Gutmans
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 what Java offers that PHP doesn't? Private members and methods, interfaces, Application Servers, Beans, Enterprise Beans. Are you aware how complex

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 what Java offers that PHP doesn't? Private members

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 still get ZendTS.lib(zend_objects.obj): error LNK2001

Re: [PHP-DEV] libxml bundling

2002-05-31 Thread Andi Gutmans
At 13:12 31/05/2002 -0700, brad lafountain wrote: Ok, I think we are split in two about what to do here. Ill try and list the different ideas that have been proposed. 1) don't include at all pros: No need to worry about auto install or filesize. cons: Forces people to install

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 plugplay access to our users is important. Having bundled the MySQL library made it easier for people to get started with MySQL. Does that mean I

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

2002-05-30 Thread Andi Gutmans
At 19:03 30/05/2002 +0200, [EMAIL PROTECTED] wrote: On Thu, 30 May 2002, Rasmus Lerdorf wrote: Except with MySQL we have a commitment from the MySQL developers themselves to maintain it and keep it current. Which they do very often, isn't it Zak ;) But there is a point, there is much more

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

2002-05-30 Thread Andi Gutmans
At 16:39 30/05/2002 -0400, Dan Kalowsky wrote: On Thu, 30 May 2002, brad lafountain wrote: I personally will take responsiblity for bundling and upgrading it. Brad, Nothing personal (so please don't take it that way), but in my opinion this isn't a good enough assurance. Historically you

[PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [RESENT] [PATCH] Allow constants / expressions to be passed by reference]

2002-05-29 Thread Andi Gutmans
I don't see any reason to allow passing non-variables by reference. It is semantically incorrect. Andi At 09:40 29/05/2002 +0200, Stig S. Bakken wrote: If this patch doesn't break anything, and it doesn't give us any difficulties with ZE2 or major design issues, I'm +1. - Stig On Tue,

Re: [PHP-DEV] Re: [Zend Engine 2] Re: [PHP-DEV] [RESENT] [PATCH] Allow constants / expressions to be passed by reference]

2002-05-29 Thread Andi Gutmans
/expressions to pass by reference. -Jason On Wed, 2002-05-29 at 10:26, Andi Gutmans wrote: I don't see any reason to allow passing non-variables by reference. It is semantically incorrect. Andi At 09:40 29/05/2002 +0200, Stig S. Bakken wrote: If this patch doesn't break anything

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

2002-05-29 Thread Andi Gutmans
I think that XML is a core technology and giving plugplay access to our users is important. Having bundled the MySQL library made it easier for people to get started with MySQL. Does that mean I think every library should be bundled with PHP? No, I don't. But if libxml2 is a moving target and

[PHP-DEV] subversion

2002-05-27 Thread Andi Gutmans
Hi, I know a link has been posted to subversion in the past (http://subversion.tigris.org/). I just want to let you guys know I'm dying to kick out CVS :) I'm keeping my eye on subversion and awaiting a stable release and a CVS - subversion converter (being worked on apparently). For those of

[PHP-DEV] PECL

2002-05-25 Thread Andi Gutmans
Hey guys, I just want to air my opinion on what happened with msession and PECL. Although I have not always liked Mark's attitude in the past when it came to coding conventions I do think that the move of msession into PECL without consulting him nor php-dev was extremely wrong. I personally

Re: [PHP-DEV] PHP web farms (i.e. why msession or something like it)

2002-05-25 Thread Andi Gutmans
At 10:20 25/05/2002 -0400, [EMAIL PROTECTED] wrote: I kind of went off in a huff yesterday with the whole PECL/pear issue with msession, it's over and lets move on. I did, however, want to explain *why* I think msession should be in the main code. In *big* websites, you need multiple web servers

Re: [PHP-DEV] PECL

2002-05-25 Thread Andi Gutmans
distribution. Zeev At 17:24 25/05/2002, Andi Gutmans wrote: Hey guys, I just want to air my opinion on what happened with msession and PECL. Although I have not always liked Mark's attitude in the past when it came to coding conventions I do think that the move of msession into PECL without

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