From: Hartmut Holzgraefe Date: Wed, 23 Apr 2003 16:20:48 +0000 (+0000) Subject: enable resource lookup by name X-Git-Tag: SPL_ALPHA~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18829205ca3f9a283b4a062429c229824f8703ae;p=php enable resource lookup by name --- 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);