Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Alex, Tuesday, July 26, 2005, 11:54:02 PM, you wrote: > On Tue, 2005-07-26 at 10:10 +0200, Marcus Boerger wrote: >> > I still think the namespace import behavior should be separate from the >> > __autoload function. Of course, this is just me. What does everyone else >> > think? I'd like to

Re: [PHP-DEV] PHP 5.1 Release Candidate 1

2005-07-26 Thread Andrei Zmievski
We probably shouldn't merge anything in until after OSCON. When is Dmitriy back? -Andrei On Jul 26, 2005, at 5:50 PM, Andi Gutmans wrote: Hi all, As planned (a tiny bit delayed), I'd like to RC1 PHP 5.1 within the next few days. I suggest to aim for Tuesday in a week. If there are any cr

[PHP-DEV] PHP 5.1 Release Candidate 1

2005-07-26 Thread Andi Gutmans
Hi all, As planned (a tiny bit delayed), I'd like to RC1 PHP 5.1 within the next few days. I suggest to aim for Tuesday in a week. If there are any critical issues which need addressing please email me. As previously mentioned, I'd like to branch of PHP_5_1 after RC1 in order to allow for the

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Alex Kiesel
On Tue, 2005-07-26 at 10:10 +0200, Marcus Boerger wrote: > > I still think the namespace import behavior should be separate from the > > __autoload function. Of course, this is just me. What does everyone else > > think? I'd like to gather opinions on which is preferred. I will also like > > to kno

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Jessie Hernandez
Hello Alex, "Alex Kiesel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > import $this is just something I'd expect PHP to be able to deal with - > but I could live without it. > I never meant to implement this, and I also agree with Marcus that there's no reason to allow it. > B

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Alex Kiesel
On Mon, 2005-07-25 at 23:59 +0200, Marcus Boerger wrote: > > I don't like this idea; it restricts the developer to this Java-like > > class / directory layout. It also restricts him to name his files after > > the scheme you defined (which is .php) - many use other > > schemes. Shouldn't PHP let yo

Re: [PHP-DEV] new bug in 5.1.0b3 with length param in fread() with local files

2005-07-26 Thread Wez Furlong
>From the description, it doesn't sound like a bug. Awaiting more details. --Wez. On 7/25/05, Andi Gutmans <[EMAIL PROTECTED]> wrote: > Has anyone had a chance to look at this problem? > > At 10:08 PM 7/21/2005 -0600, Greg Beaver wrote: > >Hi, > > > >I have noticed that fread()'s behavior has ch

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Jessie Hernandez
Hello Weyert, "Weyert de Boer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > May I make some sort of suggestion, without having a closer look at the > internal working of PHP, the below is jsut one big day dream for me. > > My idea is to wrap namespaces by default, for e

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Jessie Hernandez
Yes, you are correct, 'break' should be 'return'. -- Jessie "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > On a first sight i only see that 'break' should be 'return'. > > Best regards, > Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsu

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 8:59:55 PM, you wrote: > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Hello Weyert, >> >> Tuesday, July 26, 2005, 10:04:28 AM, you wrote: >> >> > Hello, >> >> > How can I use the namespaces support, in such way that I can

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 5:50:35 PM, you wrote: > Hi Marcus, > "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> > 3) Simply pass an extra argument (or pass an array or object as the > first >> > argument) to __autoload containing the names of the

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Jessie Hernandez
"Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Weyert, > > Tuesday, July 26, 2005, 10:04:28 AM, you wrote: > > > Hello, > > > How can I use the namespaces support, in such way that I can use with my > > coding guideline? > > > interfaces -> interface.NAME.inc.p

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Jessie Hernandez
Hi Marcus, "Marcus Boerger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > 3) Simply pass an extra argument (or pass an array or object as the first > > argument) to __autoload containing the names of the imported namespaces of > > the calling file. __autoload can then use this

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Weyert de Boer
I will work on a little proof of concept, thingy to see I can make this work. Hopefully I have something nice to show in a while, hope guys won't have serious problems when I use the current lexer etc.? -- Yours, Weyert de Boer ([EMAIL PROTECTED]) innerfuse* http://www.innerfuse.biz/ -- PHP

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Weyert de Boer
Hello, May I make some sort of suggestion, without having a closer look at the internal working of PHP, the below is jsut one big day dream for me. My idea is to wrap namespaces by default, for example when you aren't using any namespace-keywords into your code, the parser will add these acc

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Weyert, Tuesday, July 26, 2005, 10:04:28 AM, you wrote: > Hello, > How can I use the namespaces support, in such way that I can use with my > coding guideline? > interfaces -> interface.NAME.inc.php > classes -> class.NAME.inc.php > It doesn't seem it's possible now, because it's hard c

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, Tuesday, July 26, 2005, 5:24:02 AM, you wrote: > Marcus Boerger wrote: >> >> You already have the ability to overload __autoload or provide several >> userspace __autoload functions that would be called one after another >> until the first succeeds. What else do you want? Besides

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Weyert de Boer
Hello, How can I use the namespaces support, in such way that I can use with my coding guideline? interfaces -> interface.NAME.inc.php classes -> class.NAME.inc.php It doesn't seem it's possible now, because it's hard coded against NAME.php. Oh well, I might will have a look at it, and try t

Re: [PHP-DEV] $this availability inside static-functions

2005-07-26 Thread Sebastian Mendel
Andi Gutmans wrote: > I haven't quite understood what is wrong with instantiating the object. i think its faster to just pull out the name (single value) from a database than the whole object (row or even rows from different tables) > After all, it most probably reflects some external data (or t

Re: [PHP-DEV] [PATCH] Namespace Patch, Alpha 3

2005-07-26 Thread Marcus Boerger
Hello Jessie, i am quite sure it tells you that you have a conflict with the ternary operator. Look up the archives on the issue. There should also be an example on the matter. marcus Tuesday, July 26, 2005, 2:02:56 AM, you wrote: > Alex Kiesel wrote: >> Hi Jessie, >> >> first, while your p

Re: [PHP-DEV] Re: static members of internal classes

2005-07-26 Thread Michael Wallner
Hi Andi Gutmans, you wrote: >> Also zval_internal_dtor() implies that one cannot set >> a static member of a ZEND_INTERNAL_CLASS to be a stream, >> array etc... > > > Yes, that's correct. It's a limitation you have to live with because > those datastructures are destroyed at the end of the request