summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHartmut Holzgraefe <hholzgra@php.net>2003-04-23 16:20:48 +0000
committerHartmut Holzgraefe <hholzgra@php.net>2003-04-23 16:20:48 +0000
commit18829205ca3f9a283b4a062429c229824f8703ae (patch)
treecc62da7358d52452c7842feb6dd6c6c8e9df046f /scripts
parentc1fb09e34e0afa55ad055465fff3ec736c0ae0b1 (diff)
downloadphp-git-18829205ca3f9a283b4a062429c229824f8703ae.tar.gz
enable resource lookup by name
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ext_skel_ng/extension_parser.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/scripts/ext_skel_ng/extension_parser.php b/scripts/ext_skel_ng/extension_parser.php
index d6fae956b8..b191691611 100644
--- a/scripts/ext_skel_ng/extension_parser.php
+++ b/scripts/ext_skel_ng/extension_parser.php
@@ -163,11 +163,12 @@
function handle_resources_resource($attr) {
$this->_check_c_name($attr['name'], "resource name");
- $this->resources[] = new php_resource($attr['name'],
- @$attr['payload'],
- @$attr['alloc'],
- @$this->resource_destruct,
- @$this->resource_description);
+ $this->resources[$attr['name']] = new php_resource($attr['name'],
+ @$attr['payload'],
+ @$attr['alloc'],
+ @$this->resource_destruct,
+ @$this->resource_description
+ );
unset($this->resource_description);
unset($this->resource_destruct);