1
0
mirror of https://github.com/php/php-src.git synced 2026-04-20 22:41:20 +02:00
This commit is contained in:
Rasmus Lerdorf
2011-09-23 13:16:37 +00:00
parent d938844d8f
commit f5ec360df7

View File

@@ -2028,6 +2028,11 @@ string_copy:
convert_to_string_ex(current);
zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, NULL);
/* Pretend we have a string_key here */
if(!string_key) {
spprintf(&string_key, 0, "%ld", num_key);
string_key_len = strlen(string_key)+1;
}
postval = Z_STRVAL_PP(current);