Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:27453 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98212 invoked by uid 1010); 15 Jan 2007 10:21:14 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 98196 invoked from network); 15 Jan 2007 10:21:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jan 2007 10:21:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=antony@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=antony@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: antony@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from [212.25.124.162] ([212.25.124.162:45205] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B9/A0-28777-8955BA54 for ; Mon, 15 Jan 2007 05:21:14 -0500 Received: (qmail 11031 invoked from network); 15 Jan 2007 10:19:30 -0000 Received: from internal.zend.office (HELO ?127.0.0.1?) (10.1.1.1) by internal.zend.office with SMTP; 15 Jan 2007 10:19:30 -0000 Message-ID: <45AB5590.6070803@zend.com> Date: Mon, 15 Jan 2007 13:21:04 +0300 User-Agent: Thunderbird 1.5.0.8 (X11/20061025) MIME-Version: 1.0 To: BuildSmart CC: internals@lists.php.net References: <77A8DF6B-4BA4-428C-8591-E0DD8F49297D@daleenterprise.com> In-Reply-To: <77A8DF6B-4BA4-428C-8591-E0DD8F49297D@daleenterprise.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PHP issues. From: antony@zend.com (Antony Dovgal) On 01/15/2007 12:14 PM, BuildSmart wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > There seems to be a lot of issues in the build process on Mac OS X, > not to mention once you get them squared away the build still doesn't > work without editing the makefile and adding '-framework > ApplicationServices' > > Trying to build on Mac OS X, configuring fails if you build ICU in > the manner they instruct for building ICU for Mac OS X. > From the config.log it appears to have a problem linking the ICU > library and I believe this is related to not saving the runtime > paths, a note for Mac OSX should be included explaining this issue to > prevent unwanted back-chatter, for the faint at heart, the easiest > solution is to build ICU with '--disable-shared --enable-static'. > > At this time I've reworked the ICU binaries to be Mac OS X > environment complaint and the configure now progresses as expected. Do you think this is PHP problem? It looks like ICU issue to me. > +++++++ > > The included imap extension fails to build as well as the pdo_dblib > extension. > > For the imap extension I had to add: > > #ifdef HAVE_NEW_MIME2TEXT > #undef HAVE_NEW_MIME2TEXT > #endif > > to get it to build as it complained with: > > /SourceCache/php6/ext/imap/php_imap.c:84: error: conflicting types > for 'utf8_mime2text' > /usr/local/imap/include/utf8.h:466: error: previous declaration of > 'utf8_mime2text' was here > > > and I figured this out to be related to the 2006c1 and newer API and > I'm using the 2004g source so a different check is required to > determine which library API is really valid. PHP looks for "mail_append_set" im mail.h (which is present only in new versions of c-client) and uses new utf8_mime2text() semantics if it's present. If you have BOTH "mail_append_set" and old "utf_mime2text()", then it's likely you have some problems with the headers. > After examining the pdo_dblib code, I found the code supplied with > php-5.2.0 to be newer and seems to build and work without any issues > (some modification required). > > GD doesn't appear to work properly, I have a small script that > populates text on a generated png image and serves it but it doesn't > seem to output anything and I'm not seeing any error messages. Could you please elaborate? A short but complete reproduce script would be most welcome. > I tried enabling display_errors and when I do, I see messages about > 'utf8 is not support, assuming iso-8859-1' throughout the phpinfo() > page so I added the following to ext/standard/html.c: > { "utf8", cs_utf_8 }, > which seems to have resolved this. Probably, because it's "utf-8", not "utf8". Though, I don't really understand what you're talking about here.. > Now that I have PHP-6 built, installed and configured I'm seeing a > lot of errors related to 'Strict Standards' (I thought his could be > turned off but it doesn't) and even worse, pear doesn't appear to > work citing too many issues. > SEE: (example) > http://www.daleenterprise.com:8081/maia/admin/configtest.php So... ? E_STRICT is definitely not PHP problem. but a problem of your code. > The following php script code exhausts memory. > > // PHP Modules > ob_start(); > phpinfo(INFO_MODULES); > $php_info = ob_get_contents(); > ob_end_clean(); Could you please explain what do you mean by "exhausts memory" ? -- Wbr, Antony Dovgal