Home
last modified time | relevance | path

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

/PHP-7.1/main/
H A Dphp_scandir.c64 int vector_size = 0; in php_scandir() local
85 if (nfiles == vector_size) { in php_scandir()
87 if (vector_size == 0) { in php_scandir()
88 vector_size = 10; in php_scandir()
90 vector_size *= 2; in php_scandir()
93 newv = (struct dirent **) realloc (vector, vector_size * sizeof (struct dirent *)); in php_scandir()
/PHP-7.1/main/streams/
H A Dstreams.c2274 unsigned int vector_size = 0; local
2287 if (nfiles == vector_size) {
2288 if (vector_size == 0) {
2289 vector_size = 10;
2291 if(vector_size*2 < vector_size) {
2297 vector_size *= 2;
2299 vector = (zend_string **) safe_erealloc(vector, vector_size, sizeof(char *), 0);
2305 if(vector_size < 10 || nfiles == 0) {

Completed in 18 milliseconds