Re: [PHP-DEV] practical phar considerations

2008-03-29 Thread Lars Strojny
Hi Greg, Am Samstag, den 29.03.2008, 17:58 -0500 schrieb Greg Beaver: [...] > If one uses file_put_contents('/path/to/this/file', 'hi') and > '/path/to/this' does not exist, there is an error. The same is true of > fopen, regardless of mode. mkdir() even fails unless the recursive > parameter

Re: [PHP-DEV] REMINDER - stream wrappers in include_path

2008-03-29 Thread Greg Beaver
Dmitry Stogov wrote: Hi Marcus, Sorry, if I broke something in latest patch, I just didn't see any comments from others about it. And from my point of view the patch did unnecessary things. I still think the same, becaus I mainly changed code that checks for wrapper in given argument, but not in

Re: [PHP-DEV] practical phar considerations

2008-03-29 Thread Greg Beaver
Lars Strojny wrote: Hi Greg, Am Freitag, den 28.03.2008, 17:13 -0500 schrieb Greg Beaver: [...] In addition, this would mean that offsetGet() would have to create a directory. Why? $phar['full']['path']['to']['file'] = 'hi' calls offsetGet() with 'full', 'path', and 'to', and offsetSet() on

[PHP-DEV] CVS Account Request: alexxed

2008-03-29 Thread Alexandru Szasz
Submitting translated documentation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DEV] Re: phar API

2008-03-29 Thread Elizabeth M Smith
Hi Marcus, warning I smashed those two replies together into this > You are right about Phar::canWrite() however there is also > Phar::isWriteable(). All we have to do is overload it correctly so that it > returns SplFileInfo::isWriteable() && Phar::canWrite(). Sounds good - one gripe fixed ;) >

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Lars Strojny
Hi Felipe, ..., Am Freitag, den 28.03.2008, 20:28 -0300 schrieb Felipe Pena: > 2008/3/24, Marcus Boerger <[EMAIL PROTECTED]>: [...] > Here's a possible fix: > - http://felipe.ath.cx/diff/double-quote-heredoc.diff Tested your patch a bit further and it seems to work fine. Created a few other test

Re: [PHP-DEV] Richard's lack of understanding of instances vs classes.

2008-03-29 Thread Marcus Boerger
Hello Richard, Friday, March 28, 2008, 6:27:24 PM, you wrote: > On 27/03/2008, Lokrain <[EMAIL PROTECTED]> wrote: >> Hello Internals, >> >> This discussion was very interesting to me so I made some research about all >> languages OOP. >> Each time I saw definition of public, protected, private

Re: [PHP-DEV] phar API

2008-03-29 Thread Marcus Boerger
Hello Elizabeth, Friday, March 28, 2008, 7:50:28 PM, you wrote: >>> The only things I see missing are an addFile and addDirectory shortcut >>> methods for when I don't want to mess with all the metadata or creating >>> iterators. >> >> addDirectory() is called createDirectory() in my RFC, just i

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Pierre Joye
Hi Lars, On Sat, Mar 22, 2008 at 9:17 PM, Lars Strojny <[EMAIL PROTECTED]> wrote: > Hi, > > as we introduce NOWDOC in 5.3 it would be logical to allow a double > quoted syntax sister of NOWDOC which acts as HEREDOC (same as for $var = > "$var" vs $var = '$var'). Currently we have the following

Re: [PHP-DEV] Re: phar API

2008-03-29 Thread Marcus Boerger
Hello Elizabeth, Friday, March 28, 2008, 2:21:01 PM, you wrote: > First of all Greg, thanks for all your hard work on phar - however I do > agree that some of the API choices are going to cause confusion with > "casual" phar users. >> 1) if you want to know writability without Phar::canWrite(),

Re: [PHP-DEV] [RFC] Double quoted NOWDOC is HEREDOC

2008-03-29 Thread Lars Strojny
Hi Felipe, Am Freitag, den 28.03.2008, 20:28 -0300 schrieb Felipe Pena: > 2008/3/24, Marcus Boerger <[EMAIL PROTECTED]>: [...] > +1 for same reason. > > However, the patch is wrong, see below: > > $foo = 'foobar'; > > $test = <<<"a > $foo > a; > > var_dump($test); > /* > string(7) "foobar > "

Re: [PHP-DEV] practical phar considerations

2008-03-29 Thread Lars Strojny
Hi Greg, Am Freitag, den 28.03.2008, 17:13 -0500 schrieb Greg Beaver: [...] > In addition, this would mean that offsetGet() would have to create a > directory. Why? > > $phar['full']['path']['to']['file'] = 'hi' calls offsetGet() with > 'full', 'path', and 'to', and offsetSet() only with 'file