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

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

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 > doe

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 P

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] 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 complet

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

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

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

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

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

2002-06-11 Thread Andi Gutmans
n process to implement 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 &g

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 int

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] 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 t

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-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 6/11

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, an

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

2002-06-13 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 d

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; > > function benchmark($num) > { >

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 softwa

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'

Re: [PHP-DEV] Zend Constants PATCH

2002-06-15 Thread Andi Gutmans
> > >On Sat, 15 Jun 2002 22:25: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 solut

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 >>co

Re: [PHP-DEV] Zend Constants PATCH

2002-06-18 Thread Andi Gutmans
ty of case insensetivity 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,

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() rec

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 expla

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

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 +01

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, P

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 worki

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

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 v

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

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

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

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 a user-defined function delete() i

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 t

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-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 > > We

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? >--

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

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] 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

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_scri

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 >http://docs.akb

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

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 ou

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 c

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 call

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

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] phpthreads - hints anyone...

2002-08-03 Thread Andi Gutmans
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 as the starting point of the thread would be the best solution. It'd mean that the thread is pretty mu

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] comments in php

2001-01-13 Thread Andi Gutmans
As it is a compile first, execute later interpreter it will in practice not slow down your code. Of course if your script has only a very small amount of flat code (no loops/function calls) and a huge amount of comments (tens of KB) then it could theoretically make a difference but in reality i

Re: [PHP-DEV] Patch that corrects non blocked socket reading on WIN32

2001-01-16 Thread Andi Gutmans
I think the code itself should be fixed (with #ifdef or add it to the socket abstraction). It's dangerous to redefine errno because other code uses it too. Andi At 01:01 PM 1/14/2001 -0800, Christophe Thibault wrote: >I just came across a bug still present in the latest php 4 release. i have >

RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32

2001-01-16 Thread Andi Gutmans
tion of errno only occurs >in fsock.c and errno is only used in fsock.c for retrieving socket errors... > >-c > >-Original Message- >From: Andi Gutmans [mailto:[EMAIL PROTECTED]] >Sent: mardi 16 janvier 2001 09:48 >To: Christophe Thibault; [EMAIL PROTECTED] >Subjec

RE: [PHP-DEV] Patch that corrects non blocked socket reading on W IN32

2001-01-16 Thread Andi Gutmans
Yep! Andi At 07:05 PM 1/16/2001 +0100, Sascha Schumann wrote: >On Tue, 16 Jan 2001, Christophe Thibault wrote: > > > Actually, it's not that dangerous as the redefinition of errno only occurs > > in fsock.c and errno is only used in fsock.c for retrieving socket > errors... > > Something li

Re: [PHP-DEV] RE: mysql_pconnect still broken (was: RE: What does this mean ?)

2001-01-17 Thread Andi Gutmans
Looks like this was my bad :) Sorry, Andi At 01:47 AM 1/17/2001 +0200, Zeev Suraski wrote: >Yep, you're right. Fixed. > >Thanks, > >Zeev > >At 23:24 16/1/2001, Steven Roussey wrote: >> > OK. Look at a quick report. I've just installed php4-200101152345. It runs >> > with mysql-3.23.27-beta. Apac

[PHP-DEV] popen() on Win32

2001-01-21 Thread Andi Gutmans
Hey, A couple of guys here said they are working on creating a popen() alternative solution for Win32. Any progress? Andi -- PHP Development Mailing List To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list adm

Re: [PHP-DEV] popen() on Win32

2001-01-21 Thread Andi Gutmans
At 05:27 PM 1/21/2001 +0100, Derick Rethans wrote: >Hi, > > > A couple of guys here said they are working on creating a popen() > > alternative solution for Win32. > > Any progress? > >I'm busy with it. I'm making progress indeed. I only have to bring the >code into the PHP source now. BUt it look

Re: [PHP-DEV] Bug #8732

2001-01-24 Thread Andi Gutmans
Executing external programs right now doesn't work on Windows. Hopefully this will be fixed soon. Andi At 12:14 PM 1/24/2001 +0100, Edin Kadribasic wrote: >I'm experiencing the same probmlem on one of our 5 production servers. >Exec functions always fail with -1 as the return code. No error mess

Re: [PHP-DEV] Proposal for updating the PDF-extension

2001-01-24 Thread Andi Gutmans
At 05:43 PM 1/24/2001 +0200, Jani Taskinen wrote: >On Wed, 24 Jan 2001, Uwe Steinmann wrote: > > >On Wed, Jan 24, 2001 at 03:07:09PM +0100, Cynic wrote: > >> confuse folks. and the consensus (at least I got it it's agreed > >> on) is pdf_add_local_link-like names. > >>From the php point of view th

[PHP-DEV] --enable-tiny

2001-01-27 Thread Andi Gutmans
Hi, I often want to test things in PHP which don't require the default extensions to be compiled in. It would be nice if we had something like --enable-tiny which would automatically turn off all of the default extensions (besides standard) which are pcre, mysql, xml and session. Right now ./c

Re: [PHP-DEV] --enable-tiny

2001-01-27 Thread Andi Gutmans
is obsolete" -- Andy Tanenbaum, January 29th, 1992 >- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >http://www.JEEP-FOR-SALE.com/ -- I need a buyer > Get your own Free, Private email at http://www.smackdown.com/ > >On Sat, 27 Jan 2001, Andi Gutmans wrote: >

Re: [PHP-DEV] how to catch '=' operations on objects

2001-01-27 Thread Andi Gutmans
You have to do echo $obj->serialize(). It's just an additional few characters to type :) Andi At 05:54 PM 1/27/2001 +0100, Harald Radi wrote: >hi, > >i've written an extension and want the following: > > > >$var = new myObject(); > >$echo $var->elem;

RE: [PHP-DEV] ooops, i thought it new one but:

2001-01-27 Thread Andi Gutmans
Moshe, It's quite difficult to exploit this vulnerability without knowing your servers setup. It is possible, but personally I wouldn't worry too much about it although you should urge your ISP to upgrade to 4.0.4pl1. Andi At 08:07 PM 1/27/2001 +, James Moore wrote: >No. the bug was local

Re: [PHP-DEV] include_path with "."

2001-08-02 Thread Andi Gutmans
I have already commited a change that if I file isn't found in the include_path then PHP will check for the file in the running scripts' cwd. Andi At 07:36 AM 8/3/2001 +0200, Stig S. Bakken wrote: >Hi, > >I would like to suggest that we change how "." in the include_path is >treated to being re

Re: [PHP-DEV] include_path with "."

2001-08-05 Thread Andi Gutmans
an include, instead of > > relative to the main script file. There was some mention of this a few > > weeks ago, and it's a problem for PEAR users using ISPs that won't let > > them change their include_path. > > [Andi Gutmans <[EMAIL PROTECTED]>] > >

Re: [PHP-DEV] Coding standard: API functions

2001-08-05 Thread Andi Gutmans
At 07:57 AM 8/5/2001 +0200, [EMAIL PROTECTED] wrote: >Hi, > >Some PHPAPI function demand a char* and int when they want a string, others >a zval which is expected to be IS_STRING. > >Which one is preferred? I think in any case the function should accept a char * and a length so that it'll be bin

Re: [PHP-DEV] Constanst are case-insensitive

2001-08-05 Thread Andi Gutmans
At 10:34 AM 8/5/2001 -0500, Andrei Zmievski wrote: >At 05:35 PM 8/5/01 +0300, Zeev Suraski wrote: >>No time for this in the near future, I'm afraid :I > >Um, the fix is trivial. Want me to do it? Are you sure we want to have non-capitalized constants? It might be good practice to always have con

[PHP-DEV] New ZendEngine2 CVS tree

2001-08-05 Thread Andi Gutmans
Hi, I started the new CVS tree. The point where it was split from the Engine 1 tree was tagged PRE_ENGINE_SPLIT. Please if you commit to the old CVS make sure you also commit to the new one if needed. Thanks, Andi -- PHP Development Mailing List To unsubscribe, e-mail

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c formatted_print.c php_string.h

2001-08-07 Thread Andi Gutmans
In what case is this useful? I'm kind of worried that so many functions are popping up in PHP which accept arrays as parameters. It's much slower than passing the arguments in a regular way. How often do people dynamically build formats *and* then dynamically build an array of arguments? Andi

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c formatted_print.c php_string.h

2001-08-07 Thread Andi Gutmans
At 02:53 PM 8/7/2001 -0500, Andrei Zmievski wrote: >On Tue, 07 Aug 2001, Andi Gutmans wrote: > > In what case is this useful? I'm kind of worried that so many functions > are > > popping up in PHP which accept arrays as parameters. It's much slower than > > pass

Re: [PHP-DEV] PATCH for #12581, #7374: dbase boolean import error

2001-08-07 Thread Andi Gutmans
Lawrence, Patches to PHP need to be released under the PHP License. We need to have the same license on all code in PHP. On a side note, the GPL doesn't allow Apache-like (BSD-like) licenses such as the PHP license to link with GPL code. Best regards, Andi At 10:43 PM 8/7/2001 -0500, Lawrence

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

2001-08-08 Thread Andi Gutmans
At 09:39 AM 8/8/2001 +0200, Thies C. Arntzen wrote: >On Wed, Aug 08, 2001 at 09:28:02AM +0200, Stig Sæther Bakken >wrote: > > [Zeev Suraski <[EMAIL PROTECTED]>] > > > At 17:55 07-08-01, Stig Sæther Bakken wrote: > > > >Now we're talking! I assume it is not straightforward, what are the > > > >tec

Re: [PHP-DEV] PHP 4.0.7

2001-08-08 Thread Andi Gutmans
At 02:01 PM 8/8/2001 -0500, Jason Greene wrote: >There is one issue with 4.0.7 that probably should be fixed before branch. >The build >system currently adds a libtool flag into CFLAGS whether libtool is in >link or compile mode. >Since this option is only valid in compile, it gets passed to the

Re: [PHP-DEV] PHP 4.0.7

2001-08-08 Thread Andi Gutmans
At 02:22 PM 8/8/2001 -0500, Jason Greene wrote: >Well it's actually libtool 1.4 combined with automake that creates the issue >Automake needs the libtool mode=compile prefer-pic,prefer-non-pic flags >added to CFLAGS >so that it gets added to the compile line. The problem is that CFLAGS is >passe

Re: [PHP-DEV] PHP 4.0.7

2001-08-08 Thread Andi Gutmans
At 06:10 AM 8/9/2001 +0200, Sascha Schumann wrote: >On Wed, 8 Aug 2001, Jason Greene wrote: > > > If this is done should it occur before or after the branch? > > It should not be done at all. So how do you suggest to fix the current problems? Andi -- PHP Development Mailing List

Re: [PHP-DEV] PHP 4.0.7

2001-08-08 Thread Andi Gutmans
Cool. Andi At 06:25 AM 8/9/2001 +0200, Jani Taskinen wrote: >On Thu, 9 Aug 2001, Andi Gutmans wrote: > > >At 06:10 AM 8/9/2001 +0200, Sascha Schumann wrote: > >>On Wed, 8 Aug 2001, Jason Greene wrote: > >> > >> > If this is done should it occur be

[PHP-DEV] Engine 2

2001-08-10 Thread Andi Gutmans
Hey, The Engine 2 CVS pretty much implements the first step of the new object model. Objects are now handles which reference the same object and $obj->method1()->method2() is supported now. Quite a few places in PHP that use objects like call_user_function() might still not work though. If any

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot php_sablot.h

2001-08-10 Thread Andi Gutmans
At 09:18 AM 8/10/2001 -0500, Andrei Zmievski wrote: >On Fri, 10 Aug 2001, Rasmus Lerdorf wrote: > > Is this really what the goal is here? It seems like a contest to see how > > many times "Zend" can appear in the code. I think some of this stuff > > should be PHP_ or for things that really are e

Re: [PHP-DEV] Engine 2

2001-08-10 Thread Andi Gutmans
At 05:31 PM 8/10/2001 +0300, Heikki Korpela wrote: >On Fri, 10 Aug 2001, Andi Gutmans wrote: > > > I'm also > > interested in how many scripts are actually broken by the fact that objects > > are not copied when sent to functions by value and so on. > >Did

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/sablot php_sablot.h

2001-08-10 Thread Andi Gutmans
At 09:31 AM 8/10/2001 -0500, Andrei Zmievski wrote: >On Fri, 10 Aug 2001, [EMAIL PROTECTED] wrote: > > This is not about renaming, it's about removing duplicate macro's. > >Of course it's about renaming. We used to have just PHP_* macros and >then Zeev added the ZEND_* versions and now PHP_* ones

Re: [PHP-DEV] Engine 2

2001-08-10 Thread Andi Gutmans
i Korpela wrote: >On Fri, 10 Aug 2001, Andi Gutmans wrote: > > > I'm also > > interested in how many scripts are actually broken by the fact that objects > > are not copied when sent to functions by value and so on. > >Did I get this right: > >function func1($

Re: [PHP-DEV] PHP vs. Zend paranoia?

2001-08-13 Thread Andi Gutmans
At 11:46 PM 8/12/2001 +0300, Alexander Bokovoy wrote: >I've took some time to read Zend2 specs and also would like to propose >additions in a month or so if it isn't so far from deadline. >Unfortunately, there is not much time to do so right now... Just getting the basic infrastructure for the ne

Re: [PHP-DEV] Patch for ext/java/java.c

2001-08-13 Thread Andi Gutmans
At 04:19 AM 8/13/2001 +0200, Alexander Wirtz wrote: >Good morning (or evening ? ;-)), > >I made another patch, because java.c ran into difficulties with ZE2. >Let's hope, that everything is ok, cause I'm really tired... Wirtz, I don't have the Java build setup here. I commited a patch similar to

Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans
Thanks, I fixed it. You can go ahead and update your CVS tree. Andi At 06:18 PM 8/19/2001 +1000, GaM3R wrote: >got bored and decided to have a look at it but i kinda hit a problem . . . > >su-2.05# make >Making all in Zend >/bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. >

Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans
;method1()->method2(); Andi At 05:36 PM 8/19/2001 +0200, Markus Fischer wrote: >Sorry, maybe I missed it, but what are the current chages to the >ZE2 ? Which feature can we expect to have when testing it ? > >- Markus > >On Sun, Aug 19, 2001 at 06:22:31PM +0300, Andi Gutmans w

Re: [PHP-DEV] Zend-Engine2

2001-08-19 Thread Andi Gutmans
date/php4-ze2/TSRM -O6 -fomit-frame-pointer - >o libsapi.la sapi_apache.lo mod_php4.lo php_apache.lo >Making all in TSRM >make: don't know how to make ../config.status. Stop >*** Error code 1 > >Stop in /.1/update/php4-ze2. > > > >- Original Message - &g

Re: [PHP-DEV] object to string convertion patch

2001-08-22 Thread Andi Gutmans
http://www.geocrawler.com/mail/thread.php3?subject=%5BPHP-DEV%5D+__string_value%28%29++crashes+with+return&list=5 First of all I suggest everyone catches up on the reading :) Thies and I were against it. Zeev wanted to keep it and most of the rest that replied seemed to be against too. Persona

Re: [PHP-DEV] Crash in var_dump and print_r

2001-08-26 Thread Andi Gutmans
What Zeev meant is that it should be a valid zval * but it isn't. Andi At 11:31 AM 8/26/2001 -0400, George Schlossnagle wrote: >If NULL's a valid zval*, then both of thise routines need to be fixed to >handle null pointers. Here's some patches: > >--- zend.c.orig Sun Aug 26 11:14:28 2001 >+++

<    5   6   7   8   9   10   11   >