Tenon Intersystems Please see text links at bottom of page for navigation
Please see text links at bottom of page for navigation

Search tenon.com

Thanks to:

iTools

Re: PHP4 dyn modules

To: <itools@xxxxxxxxxxxxxxx>
Subject: Re: PHP4 dyn modules
From: Todd Daniel Woodward <tdwoodward@xxxxxxxxxxxxxxx>
Date: Tue, 22 Aug 2000 18:32:38 -0500
on 8/22/00 5:35 PM, Technical Support at support@xxxxxxxxx wrote:

> You may still have the original version of PHP4 for iTools.  In this
> version the libraries were compiled in statically.  The newest
> version of PHP4 for iTools which can be downloaded at
> http://iris.sysci.org/tenon/PHP4-4.0.1pl2.pkg.tar.gz is a dynamic
> build.  In this version, the PHP4 package and all of the libraries
> (i.e. PDFlib, GDlib, FreeType which were first built dynamically)
> were compiled dynamically.  You can see the dynamic libraries in the
> folder "/usr/local/libs" if you issue the command "ps -alx" then you
> will notice the Apache processes are running around 600K, now if you
> hit a PHP enabled page and then depending on which library you use, a
> pdf test page is always nice for this demo, you will see a jump in
> the process footprint to around 2.5 - 3.5M.

OK, bear with me. I've screwed up once in a big way already today. ;-)

I have the newest version. I downloaded it a second time and installed it
again just to make sure.

Running a test script phpinfo(), one of the things I get under Configure
Command:

../configure' '--with-xml' '--with-apache=/usr/local/src/apache_1.3.12'
'--enable-versioning' '--enable-ftp' '--with-mysql=/usr/local/mysql'
'--with-pdflib=/usr/local/pdflib' '--with-zlib-dir=/usr/local/zlib'
'--with-png-dir=/usr/local/libpng' '--with-jpeg-dir=/usr/local/jpeg'
'--with-ttf=/usr/local/freetype' '--with-gd=/usr/local/gd'
'--with-tiff-dir=/usr/local/tiff' '--enable-track-vars'

If this is the config commands that Tenon used to compile PHP4, then it was
linked statically (as opposed to a shared Apache module via APXS) into the
Apache binary, and support for MySQL, PDFlib, Zlib, etc. are embedded into
the PHP4 library.

Wouldn't the config commands be the following if it were compiled shared?

../configure' '--with-xml' '--with-apxs' '--enable-versioning' '--enable-ftp'
'--with-mysql=shared' '--with-pdflib=shared'
'--with-zlib-dir=/usr/local/zlib' '--with-png-dir=/usr/local/libpng'
'--with-jpeg-dir=/usr/local/jpeg' '--with-ttf=shared'
'--with-gd=/usr/local/gd' '--with-tiff-dir=/usr/local/tiff'
'--enable-track-vars'


> It sounds as if some people on the list have been asking about adding
> new libraries to PHP, this is not possible without rebuilding the
> entire PHP DSO module.  PHP is not like Apache in the sense that
> modules can be easily added and removed without re-linking at the
> minimum.  PHP does seem to be making the move to this ideology with
> the introduction of PHP4.

Well, Tenon has pretty much included everything and the kitchen sink. ;-)
I'm just desperately needing the FrontBase extension compiled in. I could
compile it myself, but I'd loose all the other modules that Tenon compiled
into PHP4. Some of which I have not been able to successfully compile
myself, such as FreeType and PDFlib.

> If you are planning to build your own copy of PHP4, we built it
> against our Apache 1.3.12 source, and then linked it against the
> dynamic libraries that we had to compile ourselves.

When you make changes to open source software to get it to compile on Mac OS
X Server, do you submit those diffs to the authors?


Todd Daniel Woodward
Technical Consultant
RadioDigest.com

http://radiodigest.com

----
Tenon Intersystems' iTools Mailing List
To unsubscribe: send mail to itools-request@xxxxxxxxx
with the subject: unsubscribe

<Prev in Thread] Current Thread [Next in Thread>

| Tenon Home | Products | Order | Contact Us | About Tenon | Register | Tech Support | Resources | Press Room | Mailing Lists |

Powered By iTools

Copyright©2003 Tenon Intersystems, 232 Anacapa Street, Suite 2A, Santa Barbara, CA 93101. All rights reserved.
Questions about our website - Contact: webmaster@tenon.com.


Tenon Home  Tenon Home  Tenon Home  Tenon Home Product Info  Tenon Ordering Contact About Register Support Resources Press Mailing Lists