Hi Derick:
On Tue, May 04, 2010 at 03:50:36PM +0100, Derick Rethans wrote:
> On Tue, 4 May 2010, Daniel Convissor wrote:
>
> > Revision: http://svn.php.net/viewvc?view=revision&revision=298971
> >
> > Log:
> > Procedural methods operate on object by reference.
>
> Uh? That's nonsense. They don't operator on a reference of the object.
> Objects are not passed by a real reference here.
While the C source code is not using references (I haven't looked, but I
believe you), they sure act like they are. The object passed as the
parameter gets modified. For example:
$date = date_create();
date_date_set($date, 2001, 2, 3);
echo date_format($date, 'Y-m-d'); // 2001-02-03
It seems the documentaiton should cover behavior, not the internal
technical structure. If people disagree, is there a better way to
docment this?
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 P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409