Re: [PHP-DEV] [patch] Variables in .ini files

2004-05-10 Thread Andi Gutmans
I'll take a look at it. Thanks. At 01:20 PM 5/10/2004 -0700, Andrei Zmievski wrote: This is a patch I'd like to propose for inclusion in PHP 5. It is very useful to be able to refer to other .ini variables when defining them. Things like concatenation and reusing the same dir in multiple places be

[PHP-DEV] CVS Account Request: clay

2004-05-10 Thread Clay Loveless
Maintaining PEAR VersionControl::SVN package, recently approved via PEPr system. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] [patch] Variables in .ini files

2004-05-10 Thread Andrei Zmievski
This is a patch I'd like to propose for inclusion in PHP 5. It is very useful to be able to refer to other .ini variables when defining them. Things like concatenation and reusing the same dir in multiple places become possible. With the attached patch you can do things like: default_dir = "/h

[PHP-DEV] mysqli replication

2004-05-10 Thread Juergen Mueller
Hello, I play a little bit with the new mysqli replication functions. during the tests nothing happend, so that I think that these functions are currently in beta status. when could I use these new mysqli replication functions, any timeframe? thanks a lot and great work so far! best regards, JM

Re: [PHP-DEV] Re: constant name

2004-05-10 Thread Mehdi Achour
Andi Gutmans wrote: No, you should say that only [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]* are valid. In addition, maybe post 5.0 we will unify global const and class const and then it'll definitely not work with those weird names. There are also plenty of weird things you can do with C which ar

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Hans Lellelid
Andi Gutmans wrote: As no good syntax has been found for the less common case of allowing NULL's, I think the best solution for now is not to allow null in the regular type hint syntax, and have people who want to allow NULL's not use type hints at all (in any case, they need to manually check t

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Marcus Boerger
Hello Ferdinand, Monday, May 10, 2004, 6:01:12 PM, you wrote: > On 10 May 2004 at 11:31, Jason Garber wrote: >> The only way I see that as being useful is to be able to assume > that you >> can safely say $bar->DoSomething()from within your function > WITHOUT >> FIRST HAVING TO write a

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Jason Garber
Hi Marcus, You are totally correct. I should have clarified my statement on the default parameter vs allowing nulls as they are very different. To sum it up, as Andi said: "I think the best solution for now is not to allow null in the regular type hint syntax, and have people who want to allo

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Marcus Boerger
Hello Jason, Monday, May 10, 2004, 5:31:38 PM, you wrote: > Hello, > I've been following this discussion from the beginning. To be pointed, I > think that the whole matter is rather a serious case of "overfunctionality". > Consider allowing a type hint such as > function foo(MyClass $bar) >

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Andi Gutmans
I think it's hard to put closure on this type hints issue. The main problem as I see it, is that most PHP users, unlike Java users, usually do pass instantiated objects to functions which except objects, and as mentioned here, people would like to do $obj->method() without having to test for NUL

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Ferdinand Beyer
On 10 May 2004 at 11:31, Jason Garber wrote: > The only way I see that as being useful is to be able to assume that you > can safely say $bar->DoSomething()from within your function WITHOUT > FIRST HAVING TO write an if() statement that verifies that it is not null. On the other hand i

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Jason Garber
Hello, I've been following this discussion from the beginning. To be pointed, I think that the whole matter is rather a serious case of "overfunctionality". Consider allowing a type hint such as function foo(MyClass $bar) The only way I see that as being useful is to be able to assume that you

Re: [PHP-DEV] Comparing objects on PHP5

2004-05-10 Thread Andi Gutmans
This should be fixed now. Basically in non-compatibility mode == does the same as PHP 4 (it compares object type and properties) and === compares object handles (this is because comparing object handles from our experience with Java isn't used that often and it's very useful to be able to use th

[PHP-DEV] New curl functions supported in php 5.0?

2004-05-10 Thread Oostrum van Lucas
Hi, I already sent a message about php_curl.dll, but unfortunately there was no response. Does anybody know if in the new release of php, the php_curl.dll is updated as well ? Because in the current version "CURLOPT_PROXYAUTH" isn't supported. And I'm running a server behind a IIS proxy server

[PHP-DEV] CVS Account Request: stsneo

2004-05-10 Thread hejia
Developing the PHP runtime Translating the documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DEV] Serialization And Internal Objects

2004-05-10 Thread l0t3k
looking through the serialization code, it appears that the read_property handler is not called for variable names returned from __sleep. IOW serialization is currenty only useful for userland objects. is this on the TODO list for PHP5 ? l0t3k -- PHP Internals - PHP Runtime Development Mailing L

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Derick Rethans
On Mon, 10 May 2004, Magnus [iso-8859-1] Määttä wrote: > On Monday 10 May 2004 11.20, Andi Gutmans wrote: > > Hi, > > > > I will probably make it per-process, obviously it'll stay alive in between > > requests with a TTL. I don't think it should take more than a few KB so I > > wouldn't worry abou

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Magnus Määttä
On Monday 10 May 2004 11.20, Andi Gutmans wrote: > Hi, > > I will probably make it per-process, obviously it'll stay alive in between > requests with a TTL. I don't think it should take more than a few KB so I > wouldn't worry about memory. I might in any case, limit the maximum of > memory it can

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Masaki fujimoto
Hello, All of your point is acceptable for me, too. Of cource I do not think APC has something to do with realpath calls, and as I wrote in another mail, APC is just a way to make skipping realpath() calls more easy (to be exact, it's the way to suppress realpath() only once for each script th

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Andi Gutmans
Hi, I will probably make it per-process, obviously it'll stay alive in between requests with a TTL. I don't think it should take more than a few KB so I wouldn't worry about memory. I might in any case, limit the maximum of memory it can take. Give me a couple of weeks and hopefully I'll have

Re: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Masaki fujimoto
Hi, I'm glad to hear that:) Actually, my first try was writing an experimental patch to cache realpath() for this problem because perhaps this is the finest and most "transparent" solution as you say. And my experimental patch worked fine , too (though it's too ugly to post here:). Anyway, th

[PHP-DEV] CVS Account Request: akdeivanaathan

2004-05-10 Thread Deivanaathan A Krishnan
Hi, I am very much interested to take part in the development process of PHP and i am eager to contribute in development of extensions for PHP. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread Derick Rethans
On Mon, 10 May 2004, BUSTARRET, Jean-Francois wrote: > To what versions of PHP do you plan to include your realpath cache ? > > I hope you'll add it to PHP4... PHP 4 will not get new features. Derick -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.

RE: [PHP-DEV] [PATCH] suppressing realpath() with APC + tiny patches

2004-05-10 Thread BUSTARRET, Jean-Francois
To what versions of PHP do you plan to include your realpath cache ? I hope you'll add it to PHP4... Thanks Jean-Francois > -Message d'origine- > De : Andi Gutmans [mailto:[EMAIL PROTECTED] > Envoyé : dimanche 9 mai 2004 18:09 > À : Masaki Fujimoto; [EMAIL PROTECTED] > Objet : Re: [PH

Re: [PHP-DEV] Why can constants only be scalars?

2004-05-10 Thread Ilya Sher
[snip] Same here. I have a number of static arrays that I use for reference data that are usually encapsulated in a function, or a global / session variable. It would be very handy to be able to define a constant array instead. - Gabriel = Agreed. Also using arrays of constants without a way

Re: [PHP-DEV] [RFC] Type hints

2004-05-10 Thread Stanislav Malyshev
CS>>Just a thought: Allow default values to violate the type hint (maybe CS>>only a default value of null). Non-null defaults for class-typehinted variable is definitely bad. This means you code has to check somewhere if it's default or not - then why typehint it? If your method accepts non-obje

[PHP-DEV] PHP 4 Bug Summary Report

2004-05-10 Thread internals
PHP 4 Bug Database summary - http://bugs.php.net Num Status Summary (769 total including feature requests) ===[*General Issues]== 27372 Verified parse error loading browscap.ini at apache startup (new parser required) 28328 Feedback

Re: [PHP-DEV] Read PHP script from...

2004-05-10 Thread Srdjan Mijanovic
Thanks - the streams seem to be the solution. The basic problem is never with the "main file", but with includes. I will try and let the newsgroup know how this works. Regards, Srdjan Mijanovic -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/un