-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
No need to check aliases on each fetch iteration. Should be checked only once per statement.
Lines 1694 to 1711 in 4d808e9
| /** | |
| * Ensure no two columns have identical names: | |
| * keep generating new names until we find one that is unique. | |
| */ | |
| switch (*alias) { | |
| void *p; | |
| default: | |
| i = 1; | |
| base = alias; | |
| while ((p = zend_symtable_str_find_ptr( | |
| Z_ARRVAL_P(return_value), alias, strlen(alias))) != NULL) { | |
| case '\0': | |
| snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++); | |
| } | |
| } |
Metadata
Metadata
Assignees
Labels
No labels