Merge branch 'PHP-5.6'

* PHP-5.6:
  add include for missing usleep proto
  C89 compat
  Added more useful warning messages
  Changed based on comments and make its behaviour equal to the Windows version
  Fix #53092 - dns_get_record does not return false on dns server failure
  Fix php cli (-S option) inconsistent port parsing

Conflicts:
	main/streams/plain_wrapper.c
This commit is contained in:
Anatol Belski 2014-12-01 08:32:12 +01:00
commit 49de5b7aed

View file

@ -1262,15 +1262,12 @@ static int php_plain_files_rmdir(php_stream_wrapper *wrapper, const char *url, i
url += sizeof("file://") - 1;
}
#if PHP_WIN32
int url_len = (int)strlen(url);
#endif
if (php_check_open_basedir(url TSRMLS_CC)) {
return 0;
}
#if PHP_WIN32
if (!php_win32_check_trailing_space(url, url_len)) {
if (!php_win32_check_trailing_space(url, (int)strlen(url))) {
php_error_docref1(NULL TSRMLS_CC, url, E_WARNING, "%s", strerror(ENOENT));
return 0;
}