[GRLUG] sysadmin job opening

mikemol at gmail.com mikemol at gmail.com
Sun Jan 31 15:26:45 EST 2010


On Sun, Jan 31, 2010 at 2:23 PM, Adam Tauno Williams > 3. The whole pass-by-reference vs. pass-by-value thing in PHP is a
> confused mess.  Which maybe explains why seemingly valid code such as -
>
> for ($enterprises as $e) {
>  $a = array('name' => $e['name'],
>             'location' => &$ogo->getSubkeyReference($e, '_ADDRESSES', 'type' 'location'));
>  }
>
>  - will crash PHP cold, but -
>
> for ($enterprises as $e) {
>  $l = &$ogo->getSubkeyReference($e, '_ADDRESSES', 'type' 'location');
>  $a = array('name' => $['name'],
>             'location' => &$l);
>  }
>
> - works.  Weird.

That sounds like a reportable bug.

*ducks out of the rest of the discussion*

-- 
:wq


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 271 bytes
Desc: OpenPGP digital signature
Url : http://shinobu.grlug.org/pipermail/grlug/attachments/20100131/d9fb3a15/attachment.pgp 


More information about the grlug mailing list