Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:17352 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70947 invoked by uid 1010); 21 Jul 2005 07:27:10 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 70931 invoked from network); 21 Jul 2005 07:27:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2005 07:27:09 -0000 X-Host-Fingerprint: 212.183.42.40 M2482P008.adsl.highway.telekom.at Received: from ([212.183.42.40:23772] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.0 beta r(6227M)) with SMTP id D2/4B-33635-D4E4FD24 for ; Thu, 21 Jul 2005 03:27:09 -0400 Message-ID: To: internals@lists.php.net Date: Thu, 21 Jul 2005 09:25:15 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en, en-GB, en-US MIME-Version: 1.0 X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDC55C06C50D8D595E04B55C4" X-Posted-By: 212.183.42.40 Subject: static members of internal classes From: mike@php.net (Michael Wallner) --------------enigDC55C06C50D8D595E04B55C4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, I have some issues with static members of internal classes. AFAICS no extension uses them so far (did I miss something?). There seems to be missing a proper cleanup routine for the static_member hashtable in PHP-5.0 because there are mem-leaks for each property to which another value (i.e. strings) will be assigned. And in PHP-5.1 there seems to be a cleanup routine which causes a memory read error: _zval_internal_dtor(_zval_struct * 0x00f22340, char * 0x106665a0 `string', unsigned int 401) line 79 + 11 bytes _zval_internal_ptr_dtor(_zval_struct * * 0x00f222ac, char * 0x1067203c `string', unsigned int 181) line 401 + 27 bytes _zval_internal_ptr_dtor_wrapper(_zval_struct * * 0x00f222ac) line 181 + 25 bytes zend_hash_destroy(_hashtable * 0x00f20a80) line 519 + 15 bytes destroy_zend_class(_zend_class_entry * * 0x01140a6c) line 178 + 15 bytes zend_hash_destroy(_hashtable * 0x0113f2f0) line 519 + 15 bytes compiler_globals_dtor(_zend_compiler_globals * 0x00ea2870, void * * * 0x00ea1ab0) line 461 + 15 bytes tsrm_shutdown() line 180 + 34 bytes main(int 3, char * * 0x00ea1b20) line 1152 + 8 bytes mainCRTStartup() line 338 + 17 bytes KERNEL32! 77e9893d() Thanks for any insight! -- Michael - < mike(@)php.net > --------------enigDC55C06C50D8D595E04B55C4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (Cygwin) iD8DBQFC303d2pTtEijQyW0RAkFRAJ9STkX6nj4RZ5CtjVPvGjQlqb1MawCgjUpy 4uWDFbUxOXKRYjA2+Uz38YA= =fGFE -----END PGP SIGNATURE----- --------------enigDC55C06C50D8D595E04B55C4--