Home
last modified time | relevance | path

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

/php-src/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-src/main/streams/
H A Dstreams.c2454 unsigned int vector_size = 0; local
2467 if (nfiles == vector_size) {
2468 if (vector_size == 0) {
2469 vector_size = 10;
2471 if(vector_size*2 < vector_size) {
2477 vector_size *= 2;
2479 vector = (zend_string **) safe_erealloc(vector, vector_size, sizeof(char *), 0);
2485 if(vector_size < 10 || nfiles == 0) {

Completed in 10 milliseconds