Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Hannes Magnusson
On Wed, Sep 9, 2009 at 17:59, Daniel Convissor wrote: > Hi Greg: > >> Copy-on-write still happens, the example you gave doesn't change a >> variable, only a property. > > Yeah. > > >> A better comparison would be between arrays and objects, as this >> demonstrates that they behave differently in PH

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Daniel Convissor
Hi Greg: > Copy-on-write still happens, the example you gave doesn't change a > variable, only a property. Yeah. > A better comparison would be between arrays and objects, as this > demonstrates that they behave differently in PHP 5, but were the same in > PHP 4 > > $a = array('m' => 'foo');

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Greg Beaver
Daniel Convissor wrote: > // Copy-on-write is not what happens when dealing only with objects: > class not_copy_on_write { > public $m = 'foo'; > } > $a = new not_copy_on_write; > $b = $a; > $a->m = 'bar'; > echo "\$a->m = $a->m, \$b->m = $b->m\n"; > > ?> Hi Dan, Copy-on-write still happens

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Daniel Convissor
Hi Brandon: > http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html Yeah, that's a good article. I've seen it on other occasions. But she's kind of "lying" too... m = $b->m\n"; // Copy-on-write is not what happens when dealing only with objects: class not_copy_on_write {

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Daniel Convissor
On Tue, Sep 08, 2009 at 07:56:43PM -0700, Lars Torben Wilson wrote: > > Personally I like "property" I agree. That's what I, and most people, call them. It'd be good to have that be the term throughout the manual. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Brandon Savage
On Wed, Sep 9, 2009 at 9:35 AM, Brandon Savage wrote: > > > On Wed, Sep 9, 2009 at 9:31 AM, G. T. Stresen-Reuter < > tedmaster...@gmail.com> wrote: > >> >> On Sep 9, 2009, at 2:02 PM, Hannes Magnusson wrote: >> >> On Wed, Sep 9, 2009 at 13:20, Brandon Savage >>> wrote: >>> This documentation

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Brandon Savage
On Wed, Sep 9, 2009 at 9:31 AM, G. T. Stresen-Reuter wrote: > > On Sep 9, 2009, at 2:02 PM, Hannes Magnusson wrote: > > On Wed, Sep 9, 2009 at 13:20, Brandon Savage >> wrote: >> >>> This documentation already exists in that section. >>> >>> I'll amend my diff to reference this section. Something

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread G. T. Stresen-Reuter
On Sep 9, 2009, at 2:02 PM, Hannes Magnusson wrote: On Wed, Sep 9, 2009 at 13:20, Brandon Savage wrote: This documentation already exists in that section. I'll amend my diff to reference this section. Something along the lines of "PHP 5's object model also significantly changes the way ob

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Hannes Magnusson
On Wed, Sep 9, 2009 at 13:20, Brandon Savage wrote: > This documentation already exists in that section. > > I'll amend my diff to reference this section. Something along the lines of > "PHP 5's object model also significantly changes the way objects are > handled, and each variable representation

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Brandon Savage
This documentation already exists in that section. I'll amend my diff to reference this section. Something along the lines of "PHP 5's object model also significantly changes the way objects are handled, and each variable representation contains an object identifier instead of the object itself. P

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Hannes Magnusson
On Wed, Sep 9, 2009 at 01:29, Brandon Savage wrote: > However, each spot where the documentation states that objects are passed by > reference is wrong. See this blog post by Sara Golemon: > http://blog.libssh2.org/index.php?/archives/51-Youre-being-lied-to..html > [...] > > I'm not sure how to cha

Re: [PHP-DOC] oop5 basic rewrite informal RFC

2009-09-09 Thread Lars Torben Wilson
Philip Olson wrote: On Sep 8, 2009, at 11:32 PM, Lars Torben Wilson wrote: Lars Torben Wilson wrote: Lars Torben Wilson wrote: Daniel Convissor wrote: Hi Lars: In an earlier draft I had words to this effect, but it just got to be unwieldy, since it felt like if I explained that some peop