Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/hessianphp/htdocs/pmwiki.php on line 242

Warning: Cannot modify header information - headers already sent by (output started at /home/project-web/hessianphp/htdocs/pmwiki.php:242) in /home/project-web/hessianphp/htdocs/pmwiki.php on line 727
HessianPHP | FAQ / ArrayHandling
Recent Changes - Search:

Documents

Community

Related Projects

Powered by PmWiki

FAQ /

ArrayHandling

When I send an associative array, the other side interprets it as a list and not as a map, why does this happen?

The first version of HessianPHP was designed to send any array as a list, because of the problem of knowing if a php array *is* a list, an indexed list of elements whose indexes start at 0 and are all continuous integers.

Currently, HessianPHP will try to detect if an array is associative and if so, it will send a map, otherwise a list. This is not strict, so be careful when creating arrays for sending. HessianPHP considers an array associative if at least one of its keys is a string or it's negative, so if you create an array that has only positive integer numbers as keys, but they are not in order, it will send an ordered list.

PHP has some weird rules about array keys, you can have negative integer array keys, keys with the value of null, false, true, empty string and floating point values which get casted into string data type.


Warning: strftime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/project-web/hessianphp/htdocs/pmwiki.php(461) : regexp code on line 1
Edit - History - Print - Recent Changes - Search
Page last modified on December 21, 2005, at 02:25 AM

Warning: fopen(wiki.d/.flock): failed to open stream: Permission denied in /home/project-web/hessianphp/htdocs/pmwiki.php on line 355

PmWiki can't process your request

Cannot acquire lockfile

We are sorry for any inconvenience.