Skip to content

Commit 9337088

Browse files
authored
Improved scanner to only look at the "returnvalues" sections (#305)
1 parent a5fa665 commit 9337088

20 files changed

+460
-1201
lines changed

composer.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
"generated/curl.php",
2828
"generated/datetime.php",
2929
"generated/dir.php",
30-
"generated/dom.php",
3130
"generated/eio.php",
3231
"generated/errorfunc.php",
3332
"generated/exec.php",
@@ -62,7 +61,6 @@
6261
"generated/opcache.php",
6362
"generated/openssl.php",
6463
"generated/outcontrol.php",
65-
"generated/password.php",
6664
"generated/pcntl.php",
6765
"generated/pcre.php",
6866
"generated/pgsql.php",

generated/Exceptions/DomException.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

generated/Exceptions/PasswordException.php

Lines changed: 0 additions & 11 deletions
This file was deleted.

generated/calendar.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,6 @@
44

55
use Safe\Exceptions\CalendarException;
66

7-
/**
8-
* This function will return a Unix timestamp corresponding to the
9-
* Julian Day given in julian_day. The time returned is
10-
* UTC.
11-
*
12-
* @param int $julian_day A julian day number between 2440588 and 106751993607888
13-
* on 64bit systems, or between 2440588 and 2465443 on 32bit systems.
14-
* @return int The unix timestamp for the start (midnight, not noon) of the given Julian day
15-
* @throws CalendarException
16-
*
17-
*/
18-
function jdtounix(int $julian_day): int
19-
{
20-
error_clear_last();
21-
$result = \jdtounix($julian_day);
22-
if ($result === false) {
23-
throw CalendarException::createFromPhpError();
24-
}
25-
return $result;
26-
}
27-
28-
297
/**
308
* Return the Julian Day for a Unix timestamp
319
* (seconds since 1.1.1970), or for the current day if no

generated/curl.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -577,26 +577,6 @@ function curl_init(string $url = null)
577577
}
578578

579579

580-
/**
581-
* Return an integer containing the last multi curl error number.
582-
*
583-
* @param resource $multi_handle A cURL multi handle returned by
584-
* curl_multi_init.
585-
* @return int Return an integer containing the last multi curl error number.
586-
* @throws CurlException
587-
*
588-
*/
589-
function curl_multi_errno($multi_handle): int
590-
{
591-
error_clear_last();
592-
$result = \curl_multi_errno($multi_handle);
593-
if ($result === false) {
594-
throw CurlException::createFromPhpError();
595-
}
596-
return $result;
597-
}
598-
599-
600580
/**
601581
* Ask the multi handle if there are any messages or information from the individual transfers.
602582
* Messages may include information such as an error code from the transfer or just the fact

0 commit comments

Comments
 (0)