Re: [PHP-DEV] Pb : access control

2003-03-17 Thread Andi Gutmans
Can you cut down the script to like 10 lines and say what your result is and what you'd expect? At 05:37 PM 3/17/2003 +0100, Fabrice Le Coz wrote: Hi, I'm playing with PHP5 and have some trouble wtith access control, here's the code I run with last php5 from snaps.php.net under windows XP :

RE: [PHP-DEV] Possible problem in the parser

2003-03-14 Thread Andi Gutmans
ere the bug is and how to fix it. Secondly, not meaning to insult anyone here, but I think people who write such code without using parentheses should improve their coding style :) Andi At 12:01 PM 3/14/2003 +, Ford, Mike [LSS] wrote: > -Original Message- > F

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Andi Gutmans
explanation of the post ethics. I wouldn't call this drastic at all. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Newbie developer's information

2003-03-12 Thread Andi Gutmans
welcome. I'm not sure where the best place would be. Maybe on the web site? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Andi Gutmans
esponse system. We have all of the necessary infra-structure ready. Hopefully we can reach an agreement ASAP because I can't handle all of these emails anymore :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /tests/classes interface_class.phpt interface_doubled.phpt interface_implemented.phpt interface_instantiate.phpt interface_member.phpt interface_method.phpt interface_method_final.phpt interface_method_private.phpt interface_must_be_implemented.phpt

2003-03-12 Thread Andi Gutmans
this runs fine for me with no errors. 1. What is the difference between the following: interface Foo { } class Boo extends Foo { } This shouldn't work. I guess there's a bug someplace. It's new code so I'm sure there will be some small things which need to be

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-03-11 Thread Andi Gutmans
why those checks on state->cwd_length are being made. This will help ppl understand this weirdness later on... Andi At 04:38 PM 3/10/2003 +0200, Jani Taskinen wrote: Andi, what's the status with this? --Jani On Sun, 23 Feb 2003, Wez Furlong wrote: >Hi Andi (and James) > >

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-03-04 Thread Andi Gutmans
At 01:29 PM 3/5/2003 +0800, James Devenish wrote: In message <[EMAIL PROTECTED]> on Wed, Mar 05, 2003 at 07:24:20AM +0200, Andi Gutmans wrote: > It might be less confusing to just have one. Hasn't worked so far ;) Well we're talking about changing the name from OnUpdateInt t

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-03-04 Thread Andi Gutmans
e change OnUpdateInt to work with ints and fix the whole code. It might be less confusing to just have one. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] ZE2 constructors

2003-03-01 Thread Andi Gutmans
The patch look OK. Go ahead and commit it. Andi At 08:20 PM 2/28/2003 +0100, Marcus Börger wrote: Hi Zeev, according to the plans the following test file should PASS: --TEST-- The new constructor/destructor is called --SKIPIF-- --FILE-- class early { function early

Re[2]: [PHP-DEV] Weak references in PHP

2003-02-28 Thread Andi Gutmans
At 08:00 PM 2/28/2003 +0300, Konstantin Knizhnik wrote: Hello Andi, The problem is that script can fetch very large number of objects and all of them doesn't fit in the memory. Lets say we have very large list of objects (several millions objects or more). And our script traverse the lis

Re: [PHP-DEV] #php.bugs invite only?

2003-02-28 Thread Andi Gutmans
i with the same question :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-28 Thread Andi Gutmans
ted Andi's message. That's also an option but I think OnUpdateInt() is confusing and how do we stop ppl from using it in new extensions which who's commit messages aren't followed via php-cvs? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-28 Thread Andi Gutmans
t not all extension code is under our direct control. I don't think there's much choice. Do you have a better idea? If so, please explain it. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-28 Thread Andi Gutmans
remember this incorrectly? No, you are correct but misunderstood me. We should introduce OnUpdateLong() for ppl using longs and use OnUpdateInt() for ppl who want to use ints. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Weak references in PHP

2003-02-28 Thread Andi Gutmans
nt them to be destroyed during the request? Andi At 02:39 PM 2/28/2003 +0300, Konstantin Knizhnik wrote: To be able to implmenet interface of object-oriented database to PHP I need to have object cache which will map persistent object identifier (OPID) to loaded instance of the object. This cache

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

2003-02-28 Thread Andi Gutmans
Have you submitted a CVS account request? At 09:41 PM 2/27/2003 +, J Smith wrote: A few weeks ago, I kind of volunteered to maintain testing scripts for ZE2 on the ZE2 mailing list. (See the thread beginning at http://www.zend.com/lists/engine2/200302/msg3.html ) Just to make good on my

Re: [PHP-DEV] [PATCH] - fix for 64 bit issues with OnUpdateInt

2003-02-28 Thread Andi Gutmans
d make the zend_parse_parameters() function a macro and make sure that people are passing long's and not ints. I'm not really sure it's worth it though. Andi At 06:19 PM 2/28/2003 +0800, James Devenish wrote: Hi, Preface: This e-mail uses the distribution list (To and CC addresses) that the ori

Re: [PHP-DEV] Flex never-interactive mode

2003-02-26 Thread Andi Gutmans
set it to false when we know we're not interactive. It shouldn't be a problem. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Name of variable

2003-02-22 Thread Andi Gutmans
I think xdebug might do it (http://xdebug.derickrethans.nl/) although I've never used it. Andi At 03:56 PM 2/22/2003 +0100, Ivan Rodriguez wrote: I need to get the because i doing a simple debugger, and i get the type of variable and his information , and i would like to get his name

Re: [PHP-DEV] Name of variable

2003-02-22 Thread Andi Gutmans
You can't get the name of the variable. For what purpose do you need it? Andi At 03:45 PM 2/22/2003 +0100, Ivan Rodriguez wrote: Hello, i need to get the name of the variables who passed in one function, for example: switch ((*struc)->type) { case

Re: [PHP-DEV] Announcement: Next generation ext_skel

2003-02-21 Thread Andi Gutmans
It'd be nice to see an example of the XML. I liked the simplicity of today's prototype file, I'm not sure XML isn't an overkill. Andi At 11:24 AM 2/19/2003 +0100, Hartmut Holzgraefe wrote: i've just added the first working results of a replacement for the good o

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-02-16 Thread Andi Gutmans
is the main problem in this loop? Does it add / or c:\ in the beginning of the string? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] (resend) fix for bug #21600 and #22231

2003-02-15 Thread Andi Gutmans
We'll review it. I think we'll use it almost as-is except that we won't do the old check variable_ptr_ptr != value_ptr_ptr If you don't see anything on this front in the next couple of days please remind me. Andi At 03:58 AM 2/16/2003 +0900, Moriyoshi Koizumi wrote: Hi, Cou

Re: [PHP-DEV] [patch] solaris getcwd() brokeness

2003-02-15 Thread Andi Gutmans
Hey, The fchdir() part of the patch looks fine but I didn't quite understand the rest. PHP only uses realpath() if it doesn't fail, so what is the exact problem? What does that other code do? Andi At 03:29 PM 2/12/2003 -0500, James E. Flemer wrote: Well all the fancy new streams cod

Re: [PHP-DEV] [PATCH] new idate() - sunrise() - sunset() functions

2003-02-07 Thread Andi Gutmans
At 02:37 PM 2/7/2003 +0200, moshe doron wrote: well, what about sun_set(), sun_rise()? I hope you're kidding. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] new idate() - sunrise() - sunset() functions

2003-02-07 Thread Andi Gutmans
At 12:47 PM 2/7/2003 +0200, moshe doron wrote: "Andi Gutmans" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I haven't been following this whole discussion. > However, the function names should follow the coding stand

Re: [PHP-DEV] [PATCH] new idate() - sunrise() - sunset() functions

2003-02-07 Thread Andi Gutmans
I haven't been following this whole discussion. However, the function names should follow the coding standards and be named something like date_sunrise(), date_sunset() (or whatever other prefix makes sense). Andi At 05:02 PM 2/6/2003 +0200, Moshe Doron wrote: "Zeev Suraski" &l

[PHP-DEV] Re: Bug # 13551, bcmath scale:: when to apply

2003-02-04 Thread Andi Gutmans
tation then I'd leave it. IMO, just go ahead and commit. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: Bug # 13551, bcmath scale:: when to apply

2003-02-03 Thread Andi Gutmans
right scale. In any case, it probably makes sense for you to go ahead and commit it. BTW, is php_str2num() only supposed to work on whole or decimal values? What about exponents? I think you're probably right but I just want to make sure you thought about it. Thanks, Andi At 01:51 PM 2/3/

Re: [PHP-DEV] PHP 5 mailing list

2003-02-03 Thread Andi Gutmans
er's community (i.e. php-dev, php-qa) to be part it. The last thing we need is to have the whole PHP users community on it. We won't get anything done and that was the whole reason to keep things small. Andi P.S.-I don't think your negative tone was called for. -- PHP Developme

Re: [PHP-DEV] RE: zend_API.c

2003-02-03 Thread Andi Gutmans
keep the functional support for all extensions like PHP 4. The only question is, if and how we support an OO paradigm. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Again scope

2003-02-02 Thread Andi Gutmans
why his answer was in english) Anyway, what he talked about was why that code didn't work for him. Sounded strange to me since it was noted in ZEND_CHANGES.txt. The file isn't up-to-date. I'll make sure it's correct once namespaces are finalized. Andi -- PHP Developmen

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Andi Gutmans
. Andi P.S.-Theoretically the only time it could cause problems is if someone, while the server is running, changes a symlink in one of the cached paths. This is highly unlikely. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Andi Gutmans
to have a mode which uses fstat() then we should probably just document what we believe could break and with a "use this with care!" warning. I'm going to try and think if there are other options which won't break functionality. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] If... Else.. I'm not getting it!

2003-01-25 Thread Andi Gutmans
This list is only for people who develop PHP and not _with_ PHP. Please contact a PHP users mailing list such as [EMAIL PROTECTED] Good luck, Andi At 10:24 AM 1/25/2003 +0100, Frank Keessen wrote: Hi all, Please can you help me with the following: If got a little sample code: This one is

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-25 Thread Andi Gutmans
e fstat() to get some device information on the open file. I am worried about functionality though. I'm not sure it's worth breaking. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Andi Gutmans
At 02:42 AM 1/25/2003 +0200, Andi Gutmans wrote: At 04:32 PM 1/24/2003 -0800, Rasmus Lerdorf wrote: > I can't really think of any way of getting around this. include_once() and > require_once() are basic language constructs and they require this. Well, they require us to be able

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Andi Gutmans
require us to know the canonical filename. This could be done in a single stat where we grab the device number and inode. Yeah but on broken systems single stat's also stat each directory (AFAIK). I don't think it's any faster or at least not noticably. Andi -- PHP Deve

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Andi Gutmans
a direct effect. What OS are you running on? Are you running over NFS? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Reducing the number of system calls for includes

2003-01-24 Thread Andi Gutmans
think of all the things which could effect it and use those as part of a hash key but frankly, smart OS's like Linux don't take too long and the file system cache usually works pretty well. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: php4 /ext/standard file.c formatted_print.c

2003-01-11 Thread Andi Gutmans
7;ni', which will eventually be used as the the length argument for the copyin operation. I might be misunderstanding the problem and I didn't have time to read the phrack article, but doesn't this mean that leaving it unsigned is better? It wouldn't pass the length che

Re: [PHP-DEV] Non threadsafe Windows build

2003-01-11 Thread Andi Gutmans
ects, then I think nuking it is OK. What do others think? (I'm interested in hearing from Windows users) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] PROPOSAL: default value handling

2003-01-11 Thread Andi Gutmans
This has been discussed in the past and won't be done. PHP behaves like C where the result of the boolean "or" operation is true or false. Andi At 12:38 AM 1/11/2003 -0500, Nyk Cowham wrote: As a convert from Perl one of the 'features' I miss from Perl is the short-c

RE: [PHP-DEV] bcmath, calendar, ftp, wddx on Win32

2003-01-11 Thread Andi Gutmans
At 12:25 PM 1/10/2003 +0100, Lukas Smith wrote: > From: Andi Gutmans [mailto:[EMAIL PROTECTED]] > Sent: Friday, January 10, 2003 12:14 PM > > At 06:36 PM 1/9/2003 +0100, Sebastian Bergmann wrote: > > For as long as I can remember, the bcmath, calendar, ftp and wddx > >

Re: [PHP-DEV] bcmath, calendar, ftp, wddx on Win32

2003-01-10 Thread Andi Gutmans
is harder and it's probably easiest for Windows users to have stuff in by default. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] size of session vars

2003-01-10 Thread Andi Gutmans
reply that they should please mail php-general without giving them the answers. Andi At 04:26 AM 1/8/2003 -0700, Rick Widmer wrote: At 10:52 AM 1/8/03 +0100, Hannes Smit wrote: Does anyone know how much space can be stored in a session? How much free space do you have on the drive that

Re: [PHP-DEV] What headers/libs does Win32 Snaps build use?

2003-01-10 Thread Andi Gutmans
romix, ext/interbase and sapi/pi3web. I actually think the more complete we can make the win32build.zip the better. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Include a file from inside an extension...

2003-01-10 Thread Andi Gutmans
You are probably best off using zend_eval_string() and eval "include "$myfile.inc;". Andi At 04:51 PM 1/7/2003 +, Stefano Corsi wrote: Hello, does someone understand if this is the right procedure to include a filename from inside a C extension? MAKE_STD_ZVAL(filename_

[PHP-DEV] ext_skel

2003-01-05 Thread Andi Gutmans
ig.m4 and so on is OK for development. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Statistical analysis extension

2003-01-05 Thread Andi Gutmans
If you haven't received any approval you should assume that it's disapproval. Andi At 10:16 AM 1/5/2003 +0200, Andrey Hristov wrote: Hi GSL(GNU Scientific Library) has a part about statistics. It has 27 functions. I think not to copy the names of all functions. At the moment or b

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

2003-01-04 Thread Andi Gutmans
ate some kind of abstraction in TSRM and use that everywhere. These fixes might achieve your goal for making PHP work on netware but they are making our code butt ugly and hard to maintain. Andi At 03:59 PM 1/3/2003 +, Anantha Kesari H Y wrote: hyanantha Fri Jan 3 10:5

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

2003-01-04 Thread Andi Gutmans
tt ugly. They are just hacking at our code instead of fixing it nicely. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Happy New Year!

2002-12-31 Thread Andi Gutmans
Happy New Year to everyone! It's already 2003 here in Israel. Thanks to everyone who has contributed. The way things look, 2003 will be a very fruitful year for PHP with hopefully a new major version! A special thanks to Derick for the cool Look Back of 2002! Andi -- PHP Development Ma

Re: [PHP-DEV] option to start in PHP mode

2002-12-28 Thread Andi Gutmans
At 01:45 AM 12/28/2002 +0100, Marcus Börger wrote: At 22:40 27.12.2002, Andi Gutmans wrote: I don't think it's beneficial to PHP to have two modes especially as the cli more you're talking about would support ?> followed by a Let's keep things similar across the board.

Re: [PHP-DEV] Re: PHP 4.3.0 released

2002-12-27 Thread Andi Gutmans
I think you're right. I also see some weird language :) Andi At 12:18 AM 12/28/2002 +0100, Niels Leenheer wrote: [snip] > What this means for users is that any I/O function that works with > streams (and that is almost all of them) can access built-in protocols, > such as HTTP

Re: [PHP-DEV] option to start in PHP mode

2002-12-27 Thread Andi Gutmans
I don't think it's beneficial to PHP to have two modes especially as the cli more you're talking about would support ?> followed by a Let's keep things similar across the board. Andi At 02:11 PM 12/27/2002 -0500, Andrei Zmievski wrote: We've talked about this in the

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

2002-12-23 Thread Andi Gutmans
is prone to error. Can't you cast the right side? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: Fwd: Re: [PHP-DEV] ext_skel

2002-12-23 Thread Andi Gutmans
Actually I think we should keep it as simple as it is today. I'd just change what the function prints out :) Andi At 12:43 PM 12/23/2002 -0800, David Gillies wrote: OK, how about a much-expanded version for 4.3.1, say? I'm a big fan of self-documenting code (use the source, Luke).

Fwd: Re: [PHP-DEV] ext_skel

2002-12-23 Thread Andi Gutmans
To: David Gillies <[EMAIL PROTECTED]> From: Andi Gutmans <[EMAIL PROTECTED]> Subject: Re: [PHP-DEV] ext_skel Yeah but then it might make sense to print something like "Argument passed = ", no? Andi At 08:56 AM 12/23/2002 -0800, David Gillies wrote: Well, if nothin

Re: [PHP-DEV] Re: #20993 [Ver]:Elementvaluechangeswithoutasking

2002-12-21 Thread Andi Gutmans
I meant a big warning should be in place :) Andi At 08:18 PM 12/21/2002 +0200, Andi Gutmans wrote: At 07:13 PM 12/21/2002 +0100, Melvyn Sopacua wrote: At 18:24 21-12-2002, Andi Gutmans wrote: Yes I object. Think of references as a "symbolic link" to the same place. Now you h

Re: [PHP-DEV] Re: #20993 [Ver]:Elementvaluechangeswithoutasking

2002-12-21 Thread Andi Gutmans
At 07:13 PM 12/21/2002 +0100, Melvyn Sopacua wrote: At 18:24 21-12-2002, Andi Gutmans wrote: Yes I object. Think of references as a "symbolic link" to the same place. Now you have such a reference in an array which you assign to an additional variable. Now two variables contain co

[PHP-DEV] ext_skel

2002-12-21 Thread Andi Gutmans
nsion/config.m4. Module myextension is now compiled into PHP.". The second appearance of myextension is the parameter passed to the function. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: #20993 [Ver]:Elementvaluechangeswithoutasking

2002-12-21 Thread Andi Gutmans
ill change the other. In many ways it makes sense, and even in cases where it's a bit weird and where it seems wrong, I think we should live with it because I don't like having to check the whole array each time. If you have deeply nested arrays it's really slow and doesn't make

Re: [PHP-DEV] Interesting result

2002-12-21 Thread Andi Gutmans
Again, as it is undefined in PHP the question "Why" in itself is wrong :) Andi At 04:43 PM 12/21/2002 +0200, Andrey Hristov wrote: - Original Message ----- From: "Andi Gutmans" <[EMAIL PROTECTED]> To: "Andrey Hristov" <[EMAIL PROTECTED]>; <[

Re: [PHP-DEV] Interesting result

2002-12-21 Thread Andi Gutmans
It doesn't matter because the behavior here is undefined just like in C. You can't use a variable and it's post/pre increment value in the same expression. Andi At 03:26 PM 12/21/2002 +0200, Andrey Hristov wrote: Hi, i got an interesting case : Result int(2) int(3) Can someb

Re: [PHP-DEV] ZE2: accessing a class static variable

2002-12-20 Thread Andi Gutmans
This is a known limitation. I will try and address this probably with some kind of special syntax. Andi At 04:49 PM 12/20/2002 +0100, Mickael Bailly wrote: Hello, One line to say this is my first post here, I thought about posting in php-general, but ZE2 is in development, so... I

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-20 Thread Andi Gutmans
At 11:57 PM 12/20/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans <[EMAIL PROTECTED]> wrote: > At 01:28 PM 12/19/2002 +, Wez Furlong wrote: > >Actually, it does seem valid to me; streams based on FILE* are not > >registered in the persistent list, so does it m

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-19 Thread Andi Gutmans
shutdown? If these are per-request constants then you are correct and the patch was OK. I thought these were constants which survive requests. Andi --Wez. On Wed, 18 Dec 2002, Andi Gutmans wrote: > I don't like these voodoo patches. I think if the stream is destroyed twice > tha

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-18 Thread Andi Gutmans
wn. > >If you think my patch is bogus, feel free to revert it unless I can give > >more reasonable explanation. I comitted tha patch and I'll revert it. Just to clarify one thing: constanst throuout PHP should be created as CONST_PERSISTENT? Yeah in almost all cases.

Re: [PHP-DEV] CGI and CLI

2002-12-18 Thread Andi Gutmans
now was php for CGI and php-cli for CLI or am I a bit behind things? :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /sapi/cli php_cli.c

2002-12-18 Thread Andi Gutmans
At 11:17 AM 12/17/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans <[EMAIL PROTECTED]> wrote: > I didn't understand the explanation. Why do you mind if the resources are > destroyed before the constants? That's good, no? Sorry, I'm still unsure if my patch is the co

Re: [PHP-DEV] Constants inside strings, sometimes

2002-12-17 Thread Andi Gutmans
ot; is a special support to make working with array offsets and strings easier. The "{...}" support should allow you to put any PHP expression in there. Basically echo $arr[a] and "{$arr[a]}" should behave exactly the same. There's a difference between $arr[a] and &

Re: [PHP-DEV] $this scope (was T_PAAMAYIM_NEKUDOTAYIM)

2002-12-17 Thread Andi Gutmans
ys been considered a bug and not a feature. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2002-12-17 Thread Andi Gutmans
It won't be supported but you can use eval() if you really need to. Andi At 08:47 PM 12/16/2002 +0100, Bertrand Mansion wrote: <[EMAIL PROTECTED]> wrote : > On Mon, 16 Dec 2002, Bertrand Mansion wrote: > >> <[EMAIL PROTECTED]> wrote : >> >>>

Re: [PHP-DEV] Re: #20993 [Ver]: Element valuechangeswithoutasking

2002-12-17 Thread Andi Gutmans
At 12:49 AM 12/17/2002 +0900, Moriyoshi Koizumi wrote: Andi Gutmans <[EMAIL PROTECTED]> wrote: > I don't understand what you're doing here. Are you actually separating on > every assignment and doing a deep copy? What I'm trying to do in my patch can be divided int

Re: [PHP-DEV] Re: #20993 [Ver]: Element value changeswithoutasking

2002-12-15 Thread Andi Gutmans
I don't understand what you're doing here. Are you actually separating on every assignment and doing a deep copy? Andi At 04:09 PM 12/15/2002 +0900, Moriyoshi Koizumi wrote: Oops, the patch was wrong as the runtime occationally segfaults in a case like: $a = 0; $a = &$

Re: [PHP-DEV] loading modules

2002-12-11 Thread Andi Gutmans
ze of each process but also at how much is shared. Andi At 08:03 PM 12/11/2002 -0800, Gustavo A. Baratto wrote: Greetings, I'm not sure if this is the right place to ask, but here it goes... We have a multihosted environment for apache/php and we try to accept all requests to add new php e

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/bcmath bcmath.c php_bcmath.h

2002-12-10 Thread Andi Gutmans
ll the next revision (4.4 or 5.0 -- whichever it winds up being) I'd go for #1 now as this should be done anyway. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/bcmath bcmath.c php_bcmath.h

2002-12-10 Thread Andi Gutmans
I think this is one of those exceptions where we should probably not go by our standard and call the function bcpowmod(). It looks a bit funny that all of the BC functions don't have underscores but only one does. It'll probably confuse people more than it helps. What do you guys t

RE: [PHP-DEV] php.exe - php-cgi.exe

2002-12-09 Thread Andi Gutmans
It's not as if we're breaking BC for the sake of adding very much needed functionality. Anyway, I'm -0 for the change and +0 to find a more suitable name for the CLI :) Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] 4.3 when?

2002-12-09 Thread Andi Gutmans
Any idea how many more bugs are waiting to be addressed? Andi At 12:36 PM 12/9/2002 +, Wez Furlong wrote: Because we are still finding and fixing bugs in the RCs. --Wez. On Mon, 9 Dec 2002, Andi Gutmans wrote: > Now that still leave my original question about 4.3. Why the hell aren&#

Re: [PHP-DEV] 4.3 when?

2002-12-09 Thread Andi Gutmans
At 02:24 PM 12/9/2002 +0200, Jani Taskinen wrote: On Mon, 9 Dec 2002, Andi Gutmans wrote: >At 02:13 PM 12/9/2002 +0200, Jani Taskinen wrote: >>On Mon, 9 Dec 2002, Andi Gutmans wrote: >> >> >Hi, >> > >> >I'd like to start working towards a beta of Z

Re: [PHP-DEV] 4.3 when?

2002-12-09 Thread Andi Gutmans
At 02:13 PM 12/9/2002 +0200, Jani Taskinen wrote: On Mon, 9 Dec 2002, Andi Gutmans wrote: >Hi, > >I'd like to start working towards a beta of ZE2 but it seems that 4.3 is >still lingering and I'd like to wait until after 4.3. >What's happening with that? Shouldn&#x

[PHP-DEV] 4.3 when?

2002-12-09 Thread Andi Gutmans
lent 2-3 weeks following Christmas to fix them. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-09 Thread Andi Gutmans
Tom, This should be fixed now. Please update your Zend CVS and let me know if it works for you. Andi At 08:06 PM 12/8/2002 -0800, Tom Fishwick wrote: I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
I'll try and see what I can do about this. Andi At 11:56 AM 12/8/2002 -0800, Tom Fishwick wrote: I was reading an email from stdin. But regardless of bad coding style :-), the script is using _way_ more memory than it should. $s = ''; while(strlen($s) < 266768) {

Re: [PHP-DEV] huge memory usage in concat op, ZE2

2002-12-08 Thread Andi Gutmans
e times where the malloc()/memcpy() will be necessary. So what are you doing? Is it something you have to do? Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Default Return-Path with mail() and qmail

2002-12-07 Thread Andi Gutmans
Are you sure you should be using malloc()/free() and not emalloc()/efree()? Also please use strlcpy() instead of strncpy(). (Weird I mentioned it twice in one day :) http://www.courtesan.com/todd/papers/strlcpy.html Andi At 04:54 PM 12/7/2002 +0100, Daniel Lorch wrote: --- php-4.2.3/ext

Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c

2002-12-02 Thread Andi Gutmans
At 06:59 PM 12/2/2002 +0100, Sascha Schumann wrote: On Mon, 2 Dec 2002, Andi Gutmans wrote: > I still haven't understood from your answer if this is a problem which was > in 4.2.x. This problem has existed for a long time. There is not much which can break, because it h

[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c

2002-12-02 Thread Andi Gutmans
I still haven't understood from your answer if this is a problem which was in 4.2.x. Andi At 09:45 PM 12/1/2002 -0800, Shane Caraveo wrote: It's not a matter of php cgi just having a couple bugs, it was completely broken. If we don't put it in 4.3, pull the cgi module out en

[PHP-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c

2002-12-01 Thread Andi Gutmans
Are you sure we should have this stuff in the branch of 4.3? Are these bugs which didn't exist in 4.2.3? If they did exist I'm -1. If they didn't exist then that's life and the patch should stay in but people familiar with CGI should review it carefully. Andi At 02:21 AM 12

Re: [PHP-DEV] Zend fast cache

2002-12-01 Thread Andi Gutmans
ze? Or perhaps we should just malloc() after a certain size is reached (ok, 16k of prealloc'd stuff, if we don't have a free slot, just do uncached mallocs). We'd recreate the cache ever request. It wouldn't cost very much. By the way, I think you did misunderstand me.

Re: [PHP-DEV] Zend fast cache

2002-11-30 Thread Andi Gutmans
tructure itself, i.e., when the bucket isn't used we can use its memory for the pointer to the next element. So allocation just takes the bucket out of the free list. So basically the bucket is a union between sizeof(zval) and sizeof(*) (or sizeof(int)). If it's still not clear I can

Re: [PHP-DEV] Zend fast cache

2002-11-30 Thread Andi Gutmans
At 02:59 PM 11/30/2002 -0500, Sterling Hughes wrote: Hey, I was checking the CVS logs, and I read :: revision 1.13 date: 2001/11/26 17:27:59; author: andi; state: Exp; lines: +1 -1 - Turn off fast cache until we make sure it performs well. - The best solution is probably to limit its size

Re: [PHP-DEV] ZE2 + public/protected/private/final

2002-11-29 Thread Andi Gutmans
asses but I'm not sure it'd be too bad in PHP. If I were to implement this I'd probably use a counter to *remember* how many abstract methods a class has. Andi -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] ZE2 question

2002-11-29 Thread Andi Gutmans
At 04:30 PM 11/28/2002 +, James Cox wrote: it means double colon in hebrew... i think Zeev and Andi must not have known what to call it in english when they put it in... but hey, it was the first i18n'ized error message :) We are very attached to this token because it was put in wh

Re: [PHP-DEV] ZE2 and standard class initialization

2002-11-29 Thread Andi Gutmans
Applied. Andi At 05:31 PM 11/28/2002 +0100, Marcus Börger wrote: In ZE2 zend.c there is a structure member not initialized for. See patch below. marcus Index: Zend/zend.c === RCS file: /repository/ZendEngine2/zend.c,v retrieving

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
At 03:18 PM 11/27/2002 -0500, George Schlossnagle wrote: Ok... but that looks nasty when you are passed an array or an object. Yeah but backtraces tend to look nasty :) Andi Andi Gutmans wrote: At 03:13 PM 11/27/2002 -0500, George Schlossnagle wrote: Hmmm any hints on how to get

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
the name of the variable. Sorry if I wasn't clear. Andi George Andi Gutmans wrote: I'd probably go for class::function($arg1, $arg2). Also take into consideration that the args aren't always available. Andi At 02:58 PM 11/27/2002 -0500, George Schlossnagle wrote: Is there a con

  1   2   3   4   5   6   7   8   9   10   >