Skip to content

Commit 7551a59

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

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
@@ -2361,7 +2361,7 @@ contexts:
23612361
scope: support.function.url.php
23622362
- match: |-
23632363
\b(?xi:
2364-
boolval | debug_zval_dump | doubleval | empty | floatval | get_debug_type | get_defined_vars | get_resource_type | gettype |
2364+
boolval | debug_zval_dump | doubleval | empty | floatval | get_debug_type | get_defined_vars | get_resource_id | get_resource_type | gettype |
23652365
import_request_variables | intval | is_array | is_bool | is_callable | is_countable | is_double | is_float |
23662366
is_int | is_integer | is_iterable | is_long | is_null | is_numeric | is_object | is_real |
23672367
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
@@ -4992,6 +4992,12 @@
49924992
"contents": "get_required_files()",
49934993
"kind": "function"
49944994
},
4995+
{
4996+
"trigger": "get_resource_id()",
4997+
"contents": "get_resource_id(${1:handle})",
4998+
"kind": "function",
4999+
"details": "Get the resource ID."
5000+
},
49955001
{
49965002
"trigger": "get_resource_type()",
49975003
"contents": "get_resource_type(${1:handle})",

0 commit comments

Comments
 (0)