[PHP] crc32() and hash('crc32') Differ

2007-03-18 Thread Morgan Doocy
Hi, I'm curious why I'm getting two different digests of the same message using crc32() and hash('crc32'). I've tried both hash('crc32') and hash('crc32b'), and neither match my crc32(). Some example code: ?php $message = foo; $crc32 = crc32($message); $hash_crc32 =

[PHP] Referencing Containing (Non-Parent) Object?

2005-10-29 Thread Morgan Doocy
I'm trying to figure out if PHP has the facility to reference containing, non-parent objects. I have three classes, embedded hierarchically, but which are NOT extended classes of their containing objects. I'd like to be able to reference variables in the higher-level objects from the