Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Ron Korving
Shouldn't PHP suppress this warning then? Right now 3 warnings are shown for just one bad statement. I think one warning would suffice. Of course this is all rather unimportant and very low-priority, but I still think it's a situation that could be improved. You can see the warnings at http://bugs

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Christian Stocker
On 2.8.2005 10:16 Uhr, Ron Korving wrote: > Shouldn't PHP suppress this warning then? Right now 3 warnings are shown for > just one bad statement. I think one warning would suffice. Of course this is > all rather unimportant and very low-priority, but I still think it's a > situation that could b

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Ron Korving
The 5.1 error handling looks very promising. For me personally, the 3 warnings are no problem. I want to suppress all 3 of them (so I don't really care if I suppress 1 or 3 and I don't really care how these warnings are formatted). But I figured what goes for me, doesn't necessarily go for the rest

RE: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread David Zülke
This sounds awesome. Good job, Jessie. Keep it up! - David > -Original Message- > From: Jessie Hernandez [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 02, 2005 6:07 AM > To: internals@lists.php.net > Subject: [PHP-DEV] [PATCH] Namespace Patch, Beta 1 > > Attached is the latest versi

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread John LeSueur
Jessie Hernandez wrote: Attached is the latest version of the namespace patch! It finally includes namespace imports and it even includes anonymous namespace support. Also, the previous bison shift/reduce conflict has been removed. Here is a summary of its features: - Simple imports: import ns:

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Nuno Lopes
On 2.8.2005 10:16 Uhr, Ron Korving wrote: Shouldn't PHP suppress this warning then? Right now 3 warnings are shown for just one bad statement. I think one warning would suffice. Of course this is all rather unimportant and very low-priority, but I still think it's a situation that could be impr

[PHP-DEV] Property Overloading RFC

2005-08-02 Thread Derick Rethans
Hello! we're finding some problems with property overloading (__get() and __set()). Here is an RFC describing what we'd like to see changed. Please comment on this. Introduction: PHP currently supports property overloading with the magic functions __get() and __set(). Those methods are called

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Rob Richards
Column numbers in errors are not yet implemented everywhere in libxml and 0 is often returned. Rob Nuno Lopes wrote: The most interesting example is at http://php.net/libxml_get_errors But while I was reading again the example I wrote, I found that libxml always returns column 0: Th

Re: [PHP-DEV] Property Overloading RFC

2005-08-02 Thread Ondrej Ivanič
Derick Rethans wrote: Hello! we're finding some problems with property overloading (__get() and __set()). Here is an RFC describing what we'd like to see changed. Please comment on this. Introduction: PHP currently supports property overloading with the magic functions __get() and __set().

[PHP-DEV] parent::construct not reliable working on php5.1 b2/b3

2005-08-02 Thread Meno Abels
Hello, With my application that uses heavily inherent classes, sometimes I get the following message: PHP Fatal error: Call to undefined method Rank::_construtor() in .../inc/Links.class.php. It works with php 4.x when I use the old style of constructor calling $this->(

Re: [PHP-DEV] parent::construct not reliable working on php5.1 b2/b3

2005-08-02 Thread Pawel Bernat
On Tue, Aug 02, 2005 at 03:42:00PM +0100, Meno Abels wrote: > Hello, > > With my application that uses heavily inherent classes, sometimes I > get the following message: > PHP Fatal error: Call to undefined method Rank::_construtor() in > .../inc/Links.class.php. It work

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread Jessie Hernandez
"John LeSueur" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > so, if I understand correctly, if your __autoload is defined in a > different file(file1) from where the import was > called(file2), then get_imported_namespaces() returns the namespace > imports for file1. > get_impo

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread Jessie Hernandez
Forgot to mention, since I expect the majority of users to follow the PEAR convention for their classes (basically one class per file, file is named like class, with "namespace" directories), then maybe a default implementation can be provided in SPL's autoload. That way, namespace imports can be u

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread Michael Wallner
Hi Jessie Hernandez, you wrote: > Forgot to mention, since I expect the majority of users to follow the PEAR > convention for their classes (basically one class per file, file is named > like class, with "namespace" directories) With the minor but essential logical difference: $file = str

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread Jessie Hernandez
Hi Michael, Yes, I am aware of this. Underscores were used due to the lack of namespaces. For user classes which use namespaces (and in the case where some PEAR classes get modified to be under namespaces), the colon would be used as the separator, and this would get replaced by the slash to form

Re: [PHP-DEV] is this a bug?

2005-08-02 Thread Nuno Lopes
OK thanks for the info. I'll add that to the documentation. Nuno - Original Message - Column numbers in errors are not yet implemented everywhere in libxml and 0 is often returned. Rob Nuno Lopes wrote: The most interesting example is at http://php.net/libxml_get_errors But while

[PHP-DEV] CVS Account Request: thienvk

2005-08-02 Thread Vu Khanh Thien
thienvk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] [PATCH] Namespace Patch, Beta 1

2005-08-02 Thread Andi Gutmans
FYI, I haven't had a chance to look at this patch yet (nor a lot of the emails on the subject). After PHP 5.1 goes RC and we start our Unicode work, I should have time to look into it. Interesting to see if it addresses the issues we had in the past. I think some of them weren't solvable althou

[PHP-DEV] Re: Property Overloading RFC

2005-08-02 Thread Christian Schneider
Derick Rethans wrote: class. The magic methods are responsibly for: - checking if the property actually "exists" This is something I wouldn't encourage as one of the virtues of fully dynamic languages is the "lack" of checking this. Otherwise what happens if e.g. one inherits such a class to

[PHP-DEV] Re: [PHP-DOC] Re: [PHP-DEV] PHP_INI_SYSTEM and httpd.conf

2005-08-02 Thread Gabor Hojtsy
>> I can clearly set the PHP_INI_SYSTEM option in the httpd.conf. >> As stated in http://php.net/configuration.changes you should use the >> 'php_admin_xx' directive instead of 'php_xx'. > > *cough* > Yes, you're right. > Sorry for the noise. So since Sean misunderstood something, this might be a

[PHP-DEV] > PHP include_path maximimal length?

2005-08-02 Thread Weyert de Boer
Hmm, it looks like that the include_path value is limited to a specific size under FreeBSD. Anyone know if this, right? -- Yours, Weyert de Boer ([EMAIL PROTECTED]) innerfuse* http://www.innerfuse.biz/ -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www

Re: [PHP-DEV] Property Overloading RFC

2005-08-02 Thread James Crumpton
My concern with the self::isVirtual() syntax would be... class Base { function __get($name) { if (!self::isVirtual($name)) throw; } } class Foo { abstract public $bar = 1; } $f = new Foo; echo $f->bar; ... Are these 'virtual' members going to work like static me

[PHP-DEV] Re: Property Overloading RFC

2005-08-02 Thread Greg Beaver
Hi, As for the first question of how to document virtual properties, I have been recommending that users do this textually inside the docblock for __get()/__set(). This is actually ideal in almost every case, as anyone using __get()/__set() for finite, concrete properties should almost defin

[PHP-DEV] [PATCH] cgi dates

2005-08-02 Thread Steph
I missed one...Index: sapi/cgi/cgi_main.c === RCS file: /repository/php-src/sapi/cgi/cgi_main.c,v retrieving revision 1.266 diff -u -r1.266 cgi_main.c --- sapi/cgi/cgi_main.c 16 Jun 2005 14:54:51 - 1.266 +++ sapi/cgi/cgi_main.