Home
last modified time | relevance | path

Searched refs:vector_size (Results 1 – 2 of 2) sorted by relevance

/PHP-8.0/main/
H A Dphp_scandir.c56 int vector_size = 0; in php_scandir() local
76 if (nfiles == vector_size) { in php_scandir()
78 if (vector_size == 0) { in php_scandir()
79 vector_size = 10; in php_scandir()
81 vector_size *= 2; in php_scandir()
84 newv = (struct dirent **) realloc (vector, vector_size * sizeof (struct dirent *)); in php_scandir()
/PHP-8.0/main/streams/
H A Dstreams.c2313 unsigned int vector_size = 0; local
2326 if (nfiles == vector_size) {
2327 if (vector_size == 0) {
2328 vector_size = 10;
2330 if(vector_size*2 < vector_size) {
2336 vector_size *= 2;
2338 vector = (zend_string **) safe_erealloc(vector, vector_size, sizeof(char *), 0);
2344 if(vector_size < 10 || nfiles == 0) {

Completed in 19 milliseconds