Skip to content

Commit ba6212a

Browse files
committed
[PHP] Add core function: get_resource_id
php/php-src#5427 Signed-off-by: Jack Cherng <[email protected]>
1 parent 340e3c9 commit ba6212a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

PHP/PHP Source.sublime-syntax

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,7 @@ contexts:
23962396
scope: support.function.url.php
23972397
- match: |-
23982398
\b(?xi:
2399-
boolval | debug_zval_dump | doubleval | empty | floatval | get_debug_type | get_defined_vars | get_resource_type | gettype |
2399+
boolval | debug_zval_dump | doubleval | empty | floatval | get_debug_type | get_defined_vars | get_resource_id | get_resource_type | gettype |
24002400
import_request_variables | intval | is_array | is_bool | is_callable | is_countable | is_double | is_float |
24012401
is_int | is_integer | is_iterable | is_long | is_null | is_numeric | is_object | is_real |
24022402
is_resource | is_scalar | is_string | isset | print_r | serialize | settype | strval |

PHP/PHP.sublime-completions

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5860,6 +5860,12 @@
58605860
"kind": "function",
58615861
"details": "Alias of get_included_files()"
58625862
},
5863+
{
5864+
"trigger": "get_resource_id()",
5865+
"contents": "get_resource_id(${1:handle})",
5866+
"kind": "function",
5867+
"details": "Get the resource ID."
5868+
},
58635869
{
58645870
"trigger": "get_resource_type()",
58655871
"contents": "get_resource_type(${1:handle})",

0 commit comments

Comments
 (0)