1
0
mirror of https://github.com/php/php-src.git synced 2026-03-27 09:42:22 +01:00

Some fixes in Udm_Cat_List and Udm_Cat_Path functions.

This commit is contained in:
Sergey Kartashoff
2001-05-03 08:59:49 +00:00
parent d805c9740f
commit e176e5c101

View File

@@ -1155,7 +1155,8 @@ DLEXPORT PHP_FUNCTION(udm_cat_list)
while(c->rec_id){
snprintf(buf, UDMSTRSIZ, "%s%s",c->link[0]?"@ ":"", c->name);
add_assoc_string(return_value, c->link[0]?c->link:c->path, buf, 1);
add_next_index_string(return_value, c->link[0]?c->link:c->path, 1);
add_next_index_string(return_value, buf, 1);
c++;
}
@@ -1204,7 +1205,8 @@ DLEXPORT PHP_FUNCTION(udm_cat_path)
while(c->rec_id){
snprintf(buf, UDMSTRSIZ, "%s%s",c->link[0]?"@ ":"", c->name);
add_assoc_string(return_value, c->link[0]?c->link:c->path, buf, 1);
add_next_index_string(return_value, c->link[0]?c->link:c->path, 1);
add_next_index_string(return_value, buf, 1);
c++;
}