Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Jan 21, 2025
1 parent 52b2dad commit f12cae3
Show file tree
Hide file tree
Showing 14 changed files with 34 additions and 30 deletions.
2 changes: 1 addition & 1 deletion bin/gen_callmap.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
foreach ($prevData as $func => $descr) {
if (!isset($nextData[$func])) {
$diff['removed'][$func] = $descr;
} else if ($nextData[$func] !== $descr) {
} elseif ($nextData[$func] !== $descr) {
$diff['changed'][$func] = [
'old' => $descr,
'new' => $nextData[$func],
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_70.php
Original file line number Diff line number Diff line change
Expand Up @@ -56149,7 +56149,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_71.php
Original file line number Diff line number Diff line change
Expand Up @@ -56902,7 +56902,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_72.php
Original file line number Diff line number Diff line change
Expand Up @@ -57538,7 +57538,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_73.php
Original file line number Diff line number Diff line change
Expand Up @@ -57746,7 +57746,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_74.php
Original file line number Diff line number Diff line change
Expand Up @@ -58003,7 +58003,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
2 changes: 1 addition & 1 deletion dictionaries/CallMap_80.php
Original file line number Diff line number Diff line change
Expand Up @@ -57331,7 +57331,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
6 changes: 3 additions & 3 deletions dictionaries/CallMap_81.php
Original file line number Diff line number Diff line change
Expand Up @@ -23002,7 +23002,7 @@
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
0 => 'Fiber|null',
),
'fiber::getreturn' =>
array (
Expand Down Expand Up @@ -50798,7 +50798,7 @@
),
'multipleiterator::current' =>
array (
0 => 'array<array-key, mixed>|false',
0 => 'array<array-key, mixed>',
),
'multipleiterator::detachiterator' =>
array (
Expand Down Expand Up @@ -56334,7 +56334,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
6 changes: 3 additions & 3 deletions dictionaries/CallMap_82.php
Original file line number Diff line number Diff line change
Expand Up @@ -23069,7 +23069,7 @@
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
0 => 'Fiber|null',
),
'fiber::getreturn' =>
array (
Expand Down Expand Up @@ -50889,7 +50889,7 @@
),
'multipleiterator::current' =>
array (
0 => 'array<array-key, mixed>|false',
0 => 'array<array-key, mixed>',
),
'multipleiterator::detachiterator' =>
array (
Expand Down Expand Up @@ -56443,7 +56443,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
6 changes: 3 additions & 3 deletions dictionaries/CallMap_83.php
Original file line number Diff line number Diff line change
Expand Up @@ -23681,7 +23681,7 @@
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
0 => 'Fiber|null',
),
'fiber::getreturn' =>
array (
Expand Down Expand Up @@ -51550,7 +51550,7 @@
),
'multipleiterator::current' =>
array (
0 => 'array<array-key, mixed>|false',
0 => 'array<array-key, mixed>',
),
'multipleiterator::detachiterator' =>
array (
Expand Down Expand Up @@ -57092,7 +57092,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
6 changes: 3 additions & 3 deletions dictionaries/CallMap_84.php
Original file line number Diff line number Diff line change
Expand Up @@ -27224,7 +27224,7 @@
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
0 => 'Fiber|null',
),
'fiber::getreturn' =>
array (
Expand Down Expand Up @@ -55170,7 +55170,7 @@
),
'multipleiterator::current' =>
array (
0 => 'array<array-key, mixed>|false',
0 => 'array<array-key, mixed>',
),
'multipleiterator::detachiterator' =>
array (
Expand Down Expand Up @@ -60717,7 +60717,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
8 changes: 2 additions & 6 deletions dictionaries/override/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -14458,10 +14458,6 @@
0 => 'void',
'callback' => 'callable',
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
),
'fiber::getreturn' =>
array (
0 => 'mixed',
Expand Down Expand Up @@ -40405,7 +40401,7 @@
),
'multipleiterator::current' =>
array (
0 => 'array<array-key, mixed>|false',
0 => 'array<array-key, mixed>',
),
'multipleiterator::detachiterator' =>
array (
Expand Down Expand Up @@ -45864,7 +45860,7 @@
),
'passthru' =>
array (
0 => 'void',
0 => 'false|null',
'command' => 'string',
'&w_result_code=' => 'int',
),
Expand Down
15 changes: 11 additions & 4 deletions dictionaries/override/CallMap_81_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@
0 => 'void',
'callback' => 'callable',
),
'fiber::getcurrent' =>
array (
0 => 'null|self',
),
'fiber::getreturn' =>
array (
0 => 'mixed',
Expand Down Expand Up @@ -3118,6 +3114,17 @@
'encoding=' => 'null|string',
),
),
'multipleiterator::current' =>
array (
'old' =>
array (
0 => 'array<array-key, mixed>|false',
),
'new' =>
array (
0 => 'array<array-key, mixed>',
),
),
'mysqli::connect' =>
array (
'old' =>
Expand Down
3 changes: 2 additions & 1 deletion docs/contributing/editing_callmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ final callmaps in `dictionaries/CallMap_*`, which are the actual callmaps in use
After editing an override callmap, run `bin/gen_callmap.php` to regenerate the final callmap file.

To also regenerate the base callmaps, run `bin/gen_callmap.sh`: it will use the dockerfiles in `bin/`
to extract types from PHP and a set of extensions.
to extract types from PHP and a set of extensions.
To add types from an extension to the callmap, edit all versions of the Dockerfiles.

## Full callmap format

Expand Down

0 comments on commit f12cae3

Please sign in to comment.