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
You are right that it doesn't behave the same as C. However, personally although it might have been better for it to work like C I don't think it's a good idea to change it now. First of all it would break backwards compatibility in a way which would be hard for people to find where the bug is

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
At 08:53 AM 3/12/2003 -0500, Andrei Zmievski wrote: I have 2 questions: 1. Do the interface functions have to be explicitly specified as abstract? Nope. It shouldn't be allowed to be abstract because it's abstract by definition. interface Foo { function bar(); } Because this runs

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Andi Gutmans
This discussion itself is creating more spam than those emails people send. I agree with Sascha that we shouldn't take drastic measures. We still want to make it easy for people to join the PHP developer's community. I think the most interesting idea so far was Shane's first post response

[PHP-DEV] Newbie developer's information

2003-03-12 Thread Andi Gutmans
At 04:17 PM 3/12/2003 -0500, David Hill \(php.net\) wrote: As a newbie commiter, still wet behind the ears, I would have *really* appreciated a page that was a little clearer and a bit more up to date than what I started with. My sources of information README.CVS-RULES, the building from cvs web

Re: [PHP-DEV] Moderate PHP-DEV

2003-03-12 Thread Andi Gutmans
At 11:01 PM 3/12/2003 +0100, Sascha Schumann wrote: I wouldn't consider 3rd one that drastic. It has worked very well for me, I haven't got any spam to my php.net addy, but people who really wanted to send me email got through.. Well, maybe I am an exception, but I usually

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

2003-03-11 Thread Andi Gutmans
, 16 Feb 2003, Andi Gutmans wrote: At 03:41 PM 2/13/2003 -0500, James E. Flemer wrote: RCS file: /repository/TSRM/tsrm_virtual_cwd.c,v retrieving revision 1.41 diff -u -b -r1.41 tsrm_virtual_cwd.c --- TSRM/tsrm_virtual_cwd.c 6 Nov 2002 18:07:22 - 1.41 +++ TSRM/tsrm_virtual_cwd.c

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

2003-03-04 Thread Andi Gutmans
At 11:03 PM 3/4/2003 +0100, Sascha Schumann wrote: On Tue, 4 Mar 2003, Jani Taskinen wrote: Yup, that was the idea. I'll first change them all to OnUpdateInteger, and then use your patch to change the ones that need to be long to use OnUpdateLong. Is there any specific reason

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 to OnUpdateLong. It should

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-- ?php if (version_compare(zend_version(),

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

2003-02-28 Thread Andi Gutmans
Hi, The reason the zend_parse_parameters() API only exposes long is because the Zend zval (container which holds the engine values) only supports longs and not ints. So anything which touches scripting engine values should be using long. However, extensions which have INI parameters may want

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

Re: [PHP-DEV] Weak references in PHP

2003-02-28 Thread Andi Gutmans
Hi, I don't quite understand. If you are thinking of implementing something similar to JDO then your persistent object manager will only hold the objects which are retrieve by the script. At the end of the request it'll persist the changes and will free the objects. Why would you want them to

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

2003-02-28 Thread Andi Gutmans
At 04:28 PM 2/28/2003 +0100, Sascha Schumann wrote: So I think the fix of adding OnUpdateLong() is the correct fix. I was under the impression that OnUpdateInt was actually expecting a long. I remember changing some int's to long's to address 64 bit issues. Do I remember this

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

2003-02-28 Thread Andi Gutmans
At 04:47 PM 2/28/2003 +0100, Sascha Schumann wrote: 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. Well, and how are you planning to mitigate the BC issues? Remember that not all

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

2003-02-28 Thread Andi Gutmans
At 04:50 PM 2/28/2003 +0100, Sascha Schumann wrote: I think that simply adding OnUpdateLong and deprecating OnUpdateInt is fine while retaining its current semantics. I just don't see any value in changing the meaning of OnUpdateInt; at least that's how I interpreted Andi's

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

2003-02-28 Thread Andi Gutmans
At 12:12 PM 2/28/2003 -0500, Ilia A. wrote: On February 28, 2003 11:50 am, George Schlossnagle wrote: #php.bugs seems to be invite only now. How do I go about getting myself invited? It would appear someone had accidentaly set the channel to invite only, it is fixed now. I mailed Jani with the

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 list and

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

2003-02-26 Thread Andi Gutmans
At 12:48 PM 2/26/2003 -0800, Rasmus Lerdorf wrote: I think we can add %option never-interactive to the ini-scanner lexer to speed it up a tiny little bit. Speeding up the ini scanner might be important for the folks running the cgi version. More importantly, to me anyway, when we know we are not

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 IS_BOOL:

Re: [PHP-DEV] Name of variable

2003-02-22 Thread Andi Gutmans
possible way does not exist?¿ thx El sáb, 22-02-2003 a las 15:42, Andi Gutmans escribió: 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

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 old ext_skel script in

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

2003-02-16 Thread Andi Gutmans
At 03:41 PM 2/13/2003 -0500, James E. Flemer wrote: RCS file: /repository/TSRM/tsrm_virtual_cwd.c,v retrieving revision 1.41 diff -u -b -r1.41 tsrm_virtual_cwd.c --- TSRM/tsrm_virtual_cwd.c 6 Nov 2002 18:07:22 - 1.41 +++ TSRM/tsrm_virtual_cwd.c 13 Feb 2003 20:40:07 - @@

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 code in 4.3.0

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, Could anyone who has ZE

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 [EMAIL PROTECTED]

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 standards and be named something like date

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

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

2003-02-04 Thread Andi Gutmans
At 11:31 AM 2/4/2003 -0800, Sara Golemon wrote: BTW, is php_str2num() only supposed to work on whole or decimal values? What about exponents? bc_str2num() only allows whole or decimal values so that's all I wrote php_str2num to allow for. By 'exponents' do you mean scientific notation? I

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

2003-02-03 Thread Andi Gutmans
Hey, I think the discussion you guys are having is much broader than just mysqli. We should probably come up with a general approach which we will use consistently for PHP 5. I suggest we move this discussion to the PHP 5 dev list and try and come up with a good solution. Obviously we will

Re: [PHP-DEV] PHP 5 mailing list

2003-02-03 Thread Andi Gutmans
At 03:22 PM 2/3/2003 -0500, Dan Kalowsky wrote: To all concerned, I would like to request that yet again the PHP5 mailing list be made public and no longer kept private. Given that comments in the past few hours have centered around the existence of the mailing list, it seems rather absurd to

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

2003-02-03 Thread Andi Gutmans
Hi, Indeed I wasn't aware of this bug report. It seems as if your patch is fine although I could only look at it briefly. It does look strange that you need to initialize the resulting scale manually. I thought the BC functions are supposed to take care of returning the results as the right

Re: [PHP-DEV] Again scope

2003-02-02 Thread Andi Gutmans
At 10:20 PM 2/2/2003 +0100, Maxim Maletsky wrote: On Sun, 2 Feb 2003 22:06:24 +0100 (CET) Derick Rethans [EMAIL PROTECTED] wrote: On Sun, 2 Feb 2003, Maxim Maletsky wrote: stranno, dovrebbe comunque funzionare datto che ZEND_CHANGES.txt ha quasi un anno mentre il tuo CVS checkout e,

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

2003-01-25 Thread Andi Gutmans
At 04:51 PM 1/24/2003 -0800, Rasmus Lerdorf wrote: Which broken systems? Certainly not on FreeBSD or Linux. A little test: stat(/home/rasmus/foo/u2.inc,sb); That ends up doing just a single stat on FreeBSD: stat(/home/rasmus/foo/u2.inc,0x9fbffa0c) = 0 (0x0) and on Linux:

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

2003-01-25 Thread Andi Gutmans
At 02:30 AM 1/25/2003 -0800, Rasmus Lerdorf wrote: That said, we could possibly have a fast mode and use fstat() to get some device information on the open file. I am worried about functionality though. I'm not sure it's worth breaking. Yes, fstat() is fast. And perhaps it isn't worth

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

2003-01-24 Thread Andi Gutmans
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. There is no way I can think of to cache these results because they often depend on include_path and cwd which might change. Yes, we could try and think

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

2003-01-24 Thread Andi Gutmans
At 04:06 PM 1/24/2003 -0800, Rasmus Lerdorf wrote: 5. Looking at Linux's syscall implementation and implementing the good ideas in FreeBSD. Well yes, but fixing the os is pretty drastic. For now I will be patching things here to short-circuit all that stuff, but I think it is also

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

2003-01-24 Thread Andi Gutmans
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 to uniquely identify a file, they do not necessarily require us to

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 to uniquely

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 extensions are enabled

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-circuit behavior of the or

Re: [PHP-DEV] Non threadsafe Windows build

2003-01-11 Thread Andi Gutmans
At 07:13 AM 1/11/2003 +0100, Sebastian Bergmann wrote: The project file(s) for the non threadsafe Windows build are out of sync with the thread safe one(s). IIRC, there was already some discussion to ditch the non threadsafe version. That way we didn't have to maintain two sets of files,

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

2003-01-11 Thread Andi Gutmans
At 12:38 AM 1/12/2003 +0100, Sascha Schumann wrote: On Sun, 12 Jan 2003, Moriyoshi Koizumi wrote: On Sun, Jan 12, 2003 at 12:12:39AM +0100, Sascha Schumann wrote: As many past security advisories have shown, signedness issues are the frequent cause for severe vulnerabilities in

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_z);

Re: [PHP-DEV] size of session vars

2003-01-10 Thread Andi Gutmans
Hi, Lately, when people start asking php-general questions on php-dev people give them the answer and add but you should have asked on the php-general list. Having received a good answer from php-dev gives them incentive to mail us again :) I suggest we keep to the standard polite reply that

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

2003-01-10 Thread Andi Gutmans
At 06:36 PM 1/9/2003 +0100, Sebastian Bergmann wrote: For as long as I can remember, the bcmath, calendar, ftp and wddx extensions are enabled by default on Win32. But why? I mean, they are not enabled by default on *NIX, so why the inconsistency? Because building this stuff on Windows

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

2003-01-10 Thread Andi Gutmans
At 01:31 AM 1/8/2003 +0100, Edin Kadribasic wrote: Yes, Steph is right, the set of libraries used on the snaps machine is ~70MB (uncompressed) and I don't think it's practical to update win32build.zip to include them all. And this 70 MB does not include files needed for building ext/infromix,

[PHP-DEV] ext_skel

2003-01-05 Thread Andi Gutmans
Hi, Someone seems to have changed ext_skel to create the ZEND_FETCH_RESOURCE() call to be inside an if() statement to check the resource is non-zero, i.e.: if (myresource) { ZEND_FETCH_RESOURCE(); } What is the reason this was added? The resource mechanism checks for this automatically

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

2003-01-04 Thread Andi Gutmans
At 08:25 PM 1/3/2003 +0100, Sascha Schumann wrote: On Fri, 3 Jan 2003, Anantha Kesari H Y wrote: hyanantha Fri Jan 3 10:59:02 2003 EDT Modified files: /php4/sapi/apache2filter php_apache.h sapi_apache2.c Log: Modifications for NetWare. I need to say it again.

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

2003-01-04 Thread Andi Gutmans
It doesn't make sense to me to have the following lines repeated all over PHP: +#if defined(NETWARE) defined(CLIB_STAT_PATCH) + struct stat_libc finfo; +#else struct stat finfo; +#endif You are making the PHP source tree very hard to maintain. If anything, we should probably create some kind of

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

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 ?php. So all you're saving is the opening tag. I think any PHP

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 ?php. So all you're saving is the opening tag. I think any PHP programmer can handle it. Let's keep things similar across the board. Andi At 02:11 PM 12/27/2002

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/HTTPS and

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 nothing else, for the novice

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

2002-12-23 Thread Andi Gutmans
a default function with all the bells and whistles (checking for references, grabbing a resource, etc, all documented up the wazoo). Best Wishes David Gillies San Jose Costa Rica --- Andi Gutmans [EMAIL PROTECTED] wrote: To: David Gillies [EMAIL PROTECTED] From: Andi Gutmans [EMAIL PROTECTED

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

2002-12-23 Thread Andi Gutmans
At 08:50 AM 12/23/2002 +, Stefan Esser wrote: sesser Mon Dec 23 03:50:06 2002 EDT Modified files: /php4/ext/mime_magicmime_magic.c Log: fix compile error on IRIX Index: php4/ext/mime_magic/mime_magic.c diff -u php4/ext/mime_magic/mime_magic.c:1.19

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 : ?php $a = 1; var_dump($a + $a++); $a = 1; $x

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]; [EMAIL PROTECTED] Sent: Saturday, December 21, 2002 4:17 PM

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

2002-12-21 Thread Andi Gutmans
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 copies of an array but somewhere inside you have two copies of the symbolic link. Changing one will change the

[PHP-DEV] ext_skel

2002-12-21 Thread Andi Gutmans
Hey, What's the reason that confirm_myextension_compiled(..) takes a string as an argument? Why doesn't it just use the string myextension in it's message? For those who don't remember it prints out Congratulations! You have successfully modified ext/myextension/config.m4. Module myextension is

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 copies

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 have

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 make sense to have the associated

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-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 that should

[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 correct one, as I said

Re: [PHP-DEV] CGI and CLI

2002-12-18 Thread Andi Gutmans
At 03:54 PM 12/18/2002 -0500, Andrei Zmievski wrote: On Wed, 18 Dec 2002, Xavier Spriet wrote: Experimental or not, people use it and have developed a need for it. Many apps out there are based on experimental technology, that's not a reason to break them all... So I strongly suggest that

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

2002-12-18 Thread Andi Gutmans
At 12:56 AM 12/19/2002 +0100, Edin Kadribasic wrote: Sorry, I'm still unsure if my patch is the correct one, as I said in the first mail. As far as I've looked into it, the streams seem to be destructed and freed twice, once in deactivation and once in shutdown. If you think my patch is

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 into two phases. In the first phase

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 : Its neither, its a fact of the language, the following:

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

2002-12-17 Thread Andi Gutmans
At 11:26 AM 12/17/2002 +0800, Alan Knowles wrote: It would be usefull to have a direction on this, - It's come up a number of times in bug reports. It has a number of uses (primarily breaking large classes up, into smaller components..), and a clearer way to write code than using a huge

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

2002-12-17 Thread Andi Gutmans
At 05:16 PM 12/17/2002 +, Philip Olson wrote: Hello, I stumbled upon this feature today and am wondering why it exists: ?php error_reporting(E_ALL); ini_set('display_errors', 1); define('a', 'b'); $arr = array('a' = 'apple', 'b' = 'banana', 'c' = 'cranberry');

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: ?php $a = 0; $a = $a; /* is_ref=1,

Re: [PHP-DEV] loading modules

2002-12-11 Thread Andi Gutmans
Hi, You are really best off loading those dso's from your PHP INI. There is a dl() but it does have its issues (performance wise and in some cases stability wise). I think quite a lot of your memory will be shared between the processes so make sure you don't only look at the size of each

[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 think? Andi

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

2002-12-10 Thread Andi Gutmans
At 05:10 PM 12/10/2002 -0800, Sara Golemon wrote: I'm hearing two options here: 1) Name the new function bcpowmod() to keep it similiar to existing functions, we'll worry about renaming the functions in this module later... 2) Name the new function bc_powmod(), rename the existing functions

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

2002-12-09 Thread Andi Gutmans
be in zend_mm_realloc? Tom Andi Gutmans [EMAIL PROTECTED] wrote: At 12:30 AM 12/8/2002 -0800, Tom wrote: hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc

[PHP-DEV] 4.3 when?

2002-12-09 Thread Andi Gutmans
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't we get it out before Christmas? If any bad bugs creep in that'd mean we can use the relatively silent 2-3 weeks following

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't we get it out before Christmas

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 ZE2 but it seems that 4.3 is still lingering and I'd like

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't we

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

2002-12-09 Thread Andi Gutmans
At 05:34 PM 12/9/2002 +0100, Marcus Börger wrote: At 14:52 09.12.2002, Mike Robinson wrote: Wez Furlong writes: On Sun, 8 Dec 2002, Mike Robinson wrote: Sorry. There's just no way this should happen. But it has happened, and it's going stay this way. Now, if you don't have anything

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

2002-12-08 Thread Andi Gutmans
At 12:30 AM 12/8/2002 -0800, Tom wrote: hey there, I'm using the cvs and ZE2, there seems to be some huge memory usage when concatenating a string to a length over 262080 bytes, when the string length gets to that size the malloc call inside zend_mm_add_memory_block starts grabing memory 262168

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

2002-12-08 Thread Andi Gutmans
uses 151Megs on my system. the same code uses about 2megs with php4.3. php4.3 seems to realloc/memcpy when the string gets big, and php5 just does malloc's and memcpy's (I don't see calls to free() though). I'm thinking the problem might be in zend_mm_realloc? Tom Andi Gutmans [EMAIL PROTECTED

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-DEV] Re: [PHP-CVS] cvs: php4(PHP_4_3) /sapi/cgi cgi_main.c

2002-12-02 Thread Andi Gutmans
it's useless. Yet another point of view also, since no one has seriously complained about it's brokeness, it can't realy effect many people either if it is in 4.3. Shane Andi Gutmans wrote: 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

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 has not been

Re: [PHP-DEV] Zend fast cache

2002-12-01 Thread Andi Gutmans
At 05:27 PM 12/1/2002 -0500, Sterling Hughes wrote: At 07:17 PM 11/30/2002 -0500, Sterling Hughes wrote: hrm. :) My only question is really about sequential accesses. for the purpose of example let's pretend its just for zvals... (pool is our pool array of zval structs) ALLOC_ZVAL()

[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/2/2002 +, Shane

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] Zend fast cache

2002-11-30 Thread Andi Gutmans
At 07:17 PM 11/30/2002 -0500, Sterling Hughes wrote: hrm. :) My only question is really about sequential accesses. for the purpose of example let's pretend its just for zvals... (pool is our pool array of zval structs) ALLOC_ZVAL() - Do we have a zval available? - yes! - return

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

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

2002-11-29 Thread Andi Gutmans
At 06:25 PM 11/28/2002 +0100, Marcus Börger wrote: With current ZE2 it is possible to instanciate an abstract class. That is a class that has at least one abstract method. When we add a flag field to class_entry struct we can handle this. We simply need to set an abstract flag for the class

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
At 03:41 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Miham KEREKES wrote: Hi! I'm new to this list, I want to know if there is any function which could return the actual call stack, or is it planned to be added? It could be very useful (for example in my case, now :-).

Re: [PHP-DEV] my own superglobals?

2002-11-27 Thread Andi Gutmans
Hi, No, this mechanism is only meant for the special variables (see archives of php-dev). In any case, I suggest you do use $GLOBALS[] and not the 'global' keyword because it works better and the recommended way. Andi At 01:06 PM 11/27/2002 +0200, Alexander Radivanovich wrote: Hi Gurus Is

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
At 07:23 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Andi Gutmans wrote: At 03:41 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Miham KEREKES wrote: debug_backtrace() will be available in PHP 4.3.0 and higher. if someone has time to implement

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
That'd be cool. At 01:32 PM 11/27/2002 -0500, George Schlossnagle wrote: I'll do it, if you want. Andi Gutmans wrote: At 07:23 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002, Andi Gutmans wrote: At 03:41 PM 11/27/2002 +0100, Derick Rethans wrote: On Wed, 27 Nov 2002

Re: [PHP-DEV] call_stack

2002-11-27 Thread Andi Gutmans
class::function() called at file:line Perhaps class::function() called at file:line Arguments: print_r(args) ?? Andi Gutmans wrote: That'd be cool. At 01:32 PM 11/27/2002 -0500, George Schlossnagle wrote: I'll do it, if you want. Andi Gutmans wrote: At 07:23 PM 11/27/2002 +0100

  1   2   3   4   5   6   7   8   9   10   >