# windows build broken in php_scandir

- Thread: https://externals.io/message/26754
- Original archive: https://news-web.php.net/php.internals/26754
- Started by Stanislav Malyshev on 2006-12-01T19:38:45+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #26754 — Stanislav Malyshev — 2006-12-01T19:38:45+00:00

URL: https://externals.io/message/26754#26754

Latest patch to php_scandir:
http://cvs.php.net/viewvc.cgi/php-src/main/php_scandir.c?r1=1.12.2.1&r2=1.12.2.1.2.1

Seems to break windows build in two places:

main\php_scandir.c(65) : error C2065: 'MAXPATHLEN' : undeclared identifier
main\php_scandir.c(65) : error C2057: expected constant expression
main\php_scandir.c(65) : error C2466: cannot allocate an array of 
constant size 0
main\php_scandir.c(65) : error C2133: 'entry' : unknown size
main\php_scandir.c(76) : warning C4013: 'php_readdir_r' undefined; 
assuming extern returning int
main\php_scandir.c(76) : warning C4047: '=' : 'dirent *' differs in 
levels of indirection from 'int'

I'll try to fix it.
-- 
Stanislav Malyshev, Zend Products Engineer
stas@zend.com  http://www.zend.com/

---

## #26755 — Ilia Alshanetsky — 2006-12-01T19:56:09+00:00

URL: https://externals.io/message/26754#26755 · In reply to: #26754

Stas,

Frank already has a patch for this that should be committed shortly.




> Latest patch to php_scandir:
> http://cvs.php.net/viewvc.cgi/php-src/main/php_scandir.c? 
> r1=1.12.2.1&r2=1.12.2.1.2.1
>
> Seems to break windows build in two places:
>
> main\php_scandir.c(65) : error C2065: 'MAXPATHLEN' : undeclared  
> identifier
> main\php_scandir.c(65) : error C2057: expected constant expression
> main\php_scandir.c(65) : error C2466: cannot allocate an array of  
> constant size 0
> main\php_scandir.c(65) : error C2133: 'entry' : unknown size
> main\php_scandir.c(76) : warning C4013: 'php_readdir_r' undefined;  
> assuming extern returning int
> main\php_scandir.c(76) : warning C4047: '=' : 'dirent *' differs in  
> levels of indirection from 'int'
>
> I'll try to fix it.
> -- 
> Stanislav Malyshev, Zend Products Engineer
> stas@zend.com  http://www.zend.com/
>
> -- 
> 
> 
>
>

Ilia Alshanetsky
