cvs: php4 /scripts/ext_skel_ng extension_parser.php

From: Date: Wed, 23 Apr 2003 16:20:48 +0000
Subject: cvs: php4 /scripts/ext_skel_ng extension_parser.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20446@lists.php.net to get a copy of this message
hholzgra Wed Apr 23 12:20:48 2003 EDT Modified files: /php4/scripts/ext_skel_ng extension_parser.php Log: enable resource lookup by name Index: php4/scripts/ext_skel_ng/extension_parser.php diff -u php4/scripts/ext_skel_ng/extension_parser.php:1.11 php4/scripts/ext_skel_ng/extension_parser.php:1.12 --- php4/scripts/ext_skel_ng/extension_parser.php:1.11 Wed Apr 23 12:19:08 2003 +++ php4/scripts/ext_skel_ng/extension_parser.php Wed Apr 23 12:20:48 2003 @@ -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);

« previous php.cvs (#20446) next »