Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15235 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46226 invoked by uid 1010); 28 Feb 2005 23:21:01 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 46198 invoked from network); 28 Feb 2005 23:21:01 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 28 Feb 2005 23:21:01 -0000 X-Host-Fingerprint: 67.78.11.230 relay.daleenterprise.com FreeBSD 4.7-5.2 (or MacOS X 10.2-10.3) (1) Received: from ([67.78.11.230:56471] helo=daleenterprise.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id C5/28-43672-C57A3224 for ; Mon, 28 Feb 2005 18:21:00 -0500 Received: from mail.daleenterprise.com (localhost [127.0.0.1]) by daleenterprise.com (Postfix) with ESMTP id E5B6A5DECE1 for ; Mon, 28 Feb 2005 18:20:56 -0500 (EST) Received: from daleenterprise.com ([127.0.0.1]) by mail.daleenterprise.com (daleenterprise.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13080-01 for ; Mon, 28 Feb 2005 18:20:56 -0500 (EST) Received: from [10.1.100.21] (relay.mustangrestomods.com [67.78.11.226]) by daleenterprise.com (Postfix) with ESMTP id B37065DECCD for ; Mon, 28 Feb 2005 18:20:55 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <34900efc47cb182dea88e31506d65417@daleenterprise.com> References: <34900efc47cb182dea88e31506d65417@daleenterprise.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-ID: <203c3d16d3cc473975ce7a3c14da0a33@daleenterprise.com> Content-Transfer-Encoding: 7bit Date: Mon, 28 Feb 2005 18:20:50 -0500 To: PHPdev List X-Mailer: Apple Mail (2.619.2) MTA-Interface: amavisd-new-2.2.1 (2004-12-22) at daleenterprise.com X-Spam-Scanned: using SpamAssassin at daleenterprise.com X-Virus-Scanned: using ClamAV at daleenterprise.com Subject: Re: [PHP-DEV] project_logo[] - update From: info@daleenterprise.com (D . Walsh) On Feb 28, 2005, at 17:52, D.Walsh wrote: > I'm trying to add a logo and URL to the info of my project, > unfortunately, I can't seem to find all of the API info to make it > work. > > I've generated a project_logo.h file using the logos.h file as a > footprint (tested it by replacing the zend_logo data with my data so I > know it's valid and works) > > defined my PROJECT_LOGO_GUID and added my function: > > PHP_FUNCTION(project_logo_guid) > { > if (ZEND_NUM_ARGS() != 0) { > WRONG_PARAM_COUNT; > } > > RETURN_STRINGL(PROJECT_LOGO_GUID, sizeof(PROJECT_LOGO_GUID)-1, 1); > } > /* }}} */ > > created my > > PHP_FUNCTION(project_info) { > > PUTS(" Transitional//EN\" \"DTD/xhtml1-transitional.dtd\">\n"); > PUTS(""); > PUTS("\n"); > php_info_print_style(TSRMLS_C); > PUTS("project_info()"); > PUTS("\n"); > PUTS("
\n"); > > php_info_print_box_start(1); > PUTS(" src=\""); > if (SG(request_info).request_uri) { > PUTS(SG(request_info).request_uri); > } > PUTS("?="PROJECT_LOGO_GUID"\" alt=\"project logo\" />\n"); > php_printf("

PROJECT Version %s

\n", > PHP_PROJECT_VERSION_STRING); > php_info_print_box_end(); > > } > > What additional code am I missing? > > -- Dale I added the following entry to 'PHP_MINIT_FUNCTION(project)' and it displays the logo now: php_register_info_logo(PROJECT_LOGO_GUID , "image/gif", project_logo , sizeof(project_logo)); is there anything I need to do in 'PHP_MSHUTDOWN_FUNCTION(project)' -- Dale