Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49765 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32798 invoked from network); 18 Sep 2010 20:01:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Sep 2010 20:01:15 -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.104 as permitted sender) X-PHP-List-Original-Sender: jb_jeff@hotmail.com X-Host-Fingerprint: 65.55.111.104 blu0-omc2-s29.blu0.hotmail.com Windows 2000 SP4, XP SP1 Received: from [65.55.111.104] ([65.55.111.104:51697] helo=blu0-omc2-s29.blu0.hotmail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/26-22251-A8A159C4 for ; Sat, 18 Sep 2010 16:01:14 -0400 Received: from BLU138-W20 ([65.55.111.72]) by blu0-omc2-s29.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 18 Sep 2010 13:01:12 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_2d384403-008e-4299-be2c-e1db1cdcc0ec_" X-Originating-IP: [84.108.22.110] To: Date: Sat, 18 Sep 2010 20:01:11 +0000 Importance: Normal MIME-Version: 1.0 X-OriginalArrivalTime: 18 Sep 2010 20:01:12.0617 (UTC) FILETIME=[3E759990:01CB576C] Subject: Cannot register classes after MINIT From: jb_jeff@hotmail.com (Jeff Brown) --_2d384403-008e-4299-be2c-e1db1cdcc0ec_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 fi= ne but every time I declare a class after the call to my function=2C e.g:cr= eate_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 an= d all goes well as with other PHP extensions. That got me wondering as to what was causing the crash and if it is indeed = not possible to register classes after module & request init (no matter the= reason for the registration)=2C if there is a way after all I would like t= o know about it but I mostly wonder as to why this is not possible. Thank you = --_2d384403-008e-4299-be2c-e1db1cdcc0ec_--