Home
last modified time | relevance | path

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

/PHP-8.1/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.1/main/streams/
H A Dstreams.c2300 unsigned int vector_size = 0; local
2313 if (nfiles == vector_size) {
2314 if (vector_size == 0) {
2315 vector_size = 10;
2317 if(vector_size*2 < vector_size) {
2323 vector_size *= 2;
2325 vector = (zend_string **) safe_erealloc(vector, vector_size, sizeof(char *), 0);
2331 if(vector_size < 10 || nfiles == 0) {

Completed in 17 milliseconds