Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49768 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46737 invoked from network); 19 Sep 2010 19:00:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Sep 2010 19:00:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=jb_jeff@hotmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=jb_jeff@hotmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain hotmail.com designates 65.55.111.101 as permitted sender) X-PHP-List-Original-Sender: jb_jeff@hotmail.com X-Host-Fingerprint: 65.55.111.101 blu0-omc2-s26.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.101] ([65.55.111.101:63611] helo=blu0-omc2-s26.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 47/55-15948-FCD569C4 for ; Sun, 19 Sep 2010 15:00:32 -0400 Received: from BLU138-W17 ([65.55.111.73]) by blu0-omc2-s26.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sun, 19 Sep 2010 12:00:29 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_a0a0bdc8-779d-4bf0-89b3-b50201aa630c_" X-Originating-IP: [84.108.22.110] To: Date: Sun, 19 Sep 2010 19:00:29 +0000 Importance: Normal In-Reply-To: <1284915117.2340.7.camel@guybrush> References: ,<1284915117.2340.7.camel@guybrush> MIME-Version: 1.0 X-OriginalArrivalTime: 19 Sep 2010 19:00:29.0407 (UTC) FILETIME=[ED599EF0:01CB582C] Subject: RE: [PHP-DEV] Cannot register classes after MINIT From: jb_jeff@hotmail.com (Jeff Brown) --_a0a0bdc8-779d-4bf0-89b3-b50201aa630c_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What differentiates user declared classes from "built in" classes? I am not= sure whether 'extension' defined classes (PDO for example) are what you co= nsider "built in"=2C but to better understand=2C is there some special trea= tment PHP gives classes defined in a certain manner (like those defined at = the MINIT stage)? If you could elaborate that would help me greatly. Furthermore I have decided with the kind help of the #php.pecl people (some= of them are here I guess) to debug PHP (thank god for --enable-debug) and = see what goes on=2C will let you know if I find anything. Thanks :D > From: johannes@schlueters.de > To: jb_jeff@hotmail.com > CC: internals@lists.php.net > Date: Sun=2C 19 Sep 2010 18:51:56 +0200 > Subject: Re: [PHP-DEV] Cannot register classes after MINIT >=20 > On Sat=2C 2010-09-18 at 20:01 +0000=2C Jeff Brown wrote: > > I have recently tried registering a class (via zend_register_class) > > inside of a PHP_FUNCTION=2C though this may sound weird and an > > unecessary function I ask that you ignore this request.I have noticed > > that registering goes fine but every time I declare a class after the > > call to my function=2C e.g:create_class_function('class_name')=3Bclass > > Test { } > > My PHP process crashes=2C not declaring the Test classes causes no > > crash=2C I also noticed that If I move my code to the MINIT part no > > crash occurs and all goes well as with other PHP extensions. >=20 > I have no idea why it crashes=2C but in general there are a few > assumptions around "built in" classes=2C like not freeing them on request > shutdown etc. >=20 > Adding them at run time really is no good idea ... >=20 > johannes >=20 >=20 >=20 > --=20 > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe=2C visit: http://www.php.net/unsub.php >=20 = --_a0a0bdc8-779d-4bf0-89b3-b50201aa630c_--