Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:25851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62495 invoked by uid 1010); 28 Sep 2006 08:02:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62480 invoked from network); 28 Sep 2006 08:02:16 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2006 08:02:16 -0000 Authentication-Results: pb1.pair.com smtp.mail=jasper@albumltd.co.nz; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jasper@albumltd.co.nz; sender-id=unknown; domainkeys=bad (key type) Received-SPF: error (pb1.pair.com: domain albumltd.co.nz from 210.55.31.88 cause and error) DomainKey-Status: bad (key type) X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: jasper@albumltd.co.nz X-Host-Fingerprint: 210.55.31.88 mail.albumltd.co.nz Linux 2.5 (sometimes 2.4) (4) Received: from [210.55.31.88] ([210.55.31.88:47021] helo=mail.albumltd.co.nz) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B4/86-30481-E718B154 for ; Thu, 28 Sep 2006 04:02:12 -0400 Received: from mail.albumltd.co.nz (www.album.co.nz [127.0.0.1]) by mail.albumltd.co.nz (Postfix) with ESMTP id 73C9930626; Thu, 28 Sep 2006 20:02:03 +1200 (NZST) DomainKey-Signature: a=rsa-sha1; h=Received:Message-ID:Date:From:Organization:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:X-Enigmail-Version:OpenPGP:Content-Type:Content-Transfer-Encoding; b=YyhNQd+76W9qh3pNDZyhDr4VlhKL50qB8VooQ7/QeoDrNWv54s1sVatDTpIKUk26Ki4hqPkCoYpIeJWB+qkYnfBCPw1fnMAWoHRjZFGlbrnaE0hW0SHTNgcI9AKVdp7NcyjvaDaHJ3esu0hXC8SIEMPp72ftnp2d0b3QiIK8tKo=; c=nofws; d=albumltd.co.nz; q=dns; s=ks1 Received: from [10.0.1.1] (222-154-246-93.adsl.xtra.co.nz [222.154.246.93]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jasper) by mail.albumltd.co.nz (Postfix) with ESMTP id 0F3DB18AD; Thu, 28 Sep 2006 20:02:02 +1200 (NZST) Message-ID: <451B817C.3080409@albumltd.co.nz> Date: Thu, 28 Sep 2006 20:02:04 +1200 Organization: Album Limited User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: Roland Schwingel CC: internals@lists.php.net References: <57.D8.08641.D099A154@pb1.pair.com> In-Reply-To: <57.D8.08641.D099A154@pb1.pair.com> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=0A3ABF58 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [PHP Guru question]: run php script from within pecl extension From: jasper@albumltd.co.nz (Jasper Bryant-Greene) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 At this point I think one starts wondering whether PHP is the correct tool for the job... Jasper Roland Schwingel wrote: > Hi... > > For several reasons I need to call a php script every x minutes. > I need that on several platforms so I started to write a pecl > extension that implements something like a cron service. > > I am running my php 5.1.5 always together with apache 2.2.3. > So I made a small pecl that spawns a thread using apache apr functions. > > In this thread I want to call a php script, so I do this whenever > the time to execute the script is reached: > > TSRMLS_FETCH(); > > zend_file_handle zfd; > > zfd.type = ZEND_HANDLE_FILENAME; > zfd.filename = > zfd.free_filename = 0; > zfd.opened_path = NULL; > > php_execute_script(&zfd TSRMLS_CC); > > Obviously I miss something in initing php, because php > crashes in main/streams/streams.c function > php_stream_locate_url_wrapper() when I call php_execute_script() > > because the variable > 'wrapper_hash' inited at the very beginning in that > function appears to become a bad value. > > So I hope someone here can help me or give me some pointers > to get help... > > Thanks in advance, > > Roland > - -- Jasper Bryant-Greene Director Album Limited jasper@album.co.nz +64 21 708 334 / 0800 425 286 http://www.album.co.nz/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5-ecc0.1.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iFcDBQFFG4F8nqZ4vwo6v1gRCjTcAQCYxarnzuhCEyxO5q1AzRQp9Cfu/d3ob22p /v4OuCnqVQEAnXx/1xYi7awcDtQ2iCS7/a16RHggUyKLStuB/5ZydWQ= =VNlE -----END PGP SIGNATURE-----