Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88928 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60762 invoked from network); 24 Oct 2015 01:12:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Oct 2015 01:12:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=francois@php.net; spf=unknown; sender-id=unknown Authentication-Results: pb1.pair.com header.from=francois@php.net; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 212.27.42.9 as permitted sender) X-PHP-List-Original-Sender: francois@php.net X-Host-Fingerprint: 212.27.42.9 smtpfb1-g21.free.fr Linux 2.6 Received: from [212.27.42.9] ([212.27.42.9:37057] helo=smtpfb1-g21.free.fr) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/01-55100-EDADA265 for ; Fri, 23 Oct 2015 21:12:00 -0400 Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id 021FA2D96F for ; Sat, 24 Oct 2015 03:06:20 +0200 (CEST) Received: from [127.0.0.1] (unknown [82.232.41.54]) (Authenticated sender: flaupretre@free.fr) by smtp6-g21.free.fr (Postfix) with ESMTPSA id B02A482248; Sat, 24 Oct 2015 02:55:27 +0200 (CEST) To: PHP internals Cc: derick@php.net Message-ID: <562AD91A.6080500@php.net> Date: Sat, 24 Oct 2015 03:04:26 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 151023-1, 23/10/2015), Outbound message X-Antivirus-Status: Clean Subject: run-tests.php and dynamic extension dependencies From: francois@php.net (=?UTF-8?Q?Fran=c3=a7ois_Laupretre?=) Hi, 4 years ago, Derick proposed a patch to add an '--EXTENSIONS--' section in phpt files for extensions depending on another one (http://grokbase.com/t/php/php-internals/11bwptaj78/run-tests-php-and-dynamic-extension-dependencies). I don't know why, but it seems the patch was not commited. So, could someone explain how I can write and run phpt tests in an extension which depends on another dynamically loaded one ? Everything I tried so far except directly modifying the Makefile failed. And even modifying the Makefile is far from trivial. I tried to look at pdo drivers but, in practice, they don't need this because pdo is always compiled statically. They just use module dependencies for loading order. Thanks in advance François