4.0.1에서의 readdir() error_reporting() 함수버그를 수정한 patch level 2 가 현지시간 6월 30일자로 발표 되었습니다.
테스트 해 본 결과 readdir()은 정상 작동을 하는 군요.
출처: http://www.php.net