|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-03-02 06:41 UTC] sas
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 18 19:00:01 2025 UTC |
serialize broken with arrays. Here's a fix. Check 'array_each' and 'unset' for reasons... --- /tmp/var.c Fri Feb 19 15:32:47 1999 +++ /usr/local/src/php-3.0.6/functions/var.c Fri Feb 19 15:47:06 1999 @@ -212,6 +212,10 @@ if (_php3_hash_get_current_data(struc->value.ht, (void **) (&data)) != SUCCESS || !data || (data == struc)) { continue; } + /* ref: basic_functions.c/array_each() - needed because of 'variables.c/unset()'.*/ + if (data->type == IS_STRING && data->value.str.val==undefined_variable_string) { + continue; + } switch (i) { case HASH_KEY_IS_LONG: d.type = IS_LONG; Mark Edwards