Hello, I try to run script below with PHP4 and it works. --TEST-- Test session_encode() function : variation --SKIPIF-- <?php include('skipif.inc'); ?> --FILE-- <?php ob_start(); echo "*** Testing session_encode() : variation ***\n"; var_dump(session_start()); $array = array(1,2,3); $array["foo"] = &$array; $array["blah"] = &$array; $_SESSION["data"] = &$array; var_dump(session_encode()); var_dump(session_destroy()); echo "Done"; ob_end_flush(); ?> --EXPECTF-- *** Testing session_encode() : variation *** bool(true) string(64) "data|a:5:{i:0;i:1;i:1;i:2;i:2;i:3;s:3:"foo";R:1;s:4:"blah";R:1;}" bool(true) Done But in PHP5 x64 I have errors like: /root/src/php-5.2.6/Zend/zend_hash.c(247) : Freeing 0x0E76BC50 (75 bytes), script=ext/session/tests/session_encode_variation5.phpt [Sat Dec 27 11:27:09 2008] Script: 'ext/session/tests/session_encode_variation5.phpt' /root/src/php-5.2.6/Zend/zend_vm_execute.h(3596) : Freeing 0x0E76B990 (71 bytes), script=ext/session/tests/session_encode_variation5.phpt /root/src/php-5.2.6/Zend/zend_hash.c(388) : Actual location (location was relayed) If I add: $array["foo"] = null; $array["blah"] = null; in test code it works without errors. But is I always need to add 'null' ? I'm asking because I have some site which genereating many errors like "Actual location (location was relayed)". Thanks Pawel R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php