ID: 12826 Updated by: sniper Reported By: [EMAIL PROTECTED] Old Status: Open Status: Bogus Bug Type: Session related Operating System: Win2000 SP2 PHP Version: 4.0.6 New Comment: RTFM: http://www.php.net/manual/en/function.array-walk.php "func must be a user-defined function, and can't be a native PHP function. Thus, you can't use array_walk() straight with str2lower(), you must build a user-defined function with it first, and pass this function as argument." --Jani Previous Comments: ------------------------------------------------------------------------ [2001-08-18 12:03:51] [EMAIL PROTECTED] Check this out! I thought array_walk would be a good workaround for the session_unregister limitation of 'one variable unregistering at a time'. <? session_start(); $one = 1; $two = 2; session_register('one','two'); $foo = array('one','two'); @array_walk($foo,'session_unregister'); if(session_is_registered('one') || session_is_registered('two')){ echo 'why?'; } ?> Well.. there is even a workaround for this workaround, but when you look at it, it makes you smile ironically :) <? function damn_unregister($what){ session_unregister($what); } @array_walk($foo,'damn_unregister'); if(!session_is_registered('one') && !session_is_registered('two')){ echo 'now ok'; } ?> What am I missing here ? ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12826&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]