July 20, 201015 yr Is there a way to add extensions to the current php? Or is there a way to replace the current php with an extended version? In doing searches I find later versions of php in slackware 12.2. I found this in phpinfo page. Configure Command => './configure' '--enable-force-cgi-redirect' '--enable-pcntl' '--enable-sigchild' '--prefix=/usr' '--libdir=/usr/lib' '--with-libdir=lib' '--sysconfdir=/etc' '--disable-all' '--without-apxs2' '--disable-libxml' '--enable-cli' '--build=i486-slackware-linux' and what I'm finding is that I have not been able to get xmlrpc or some derivative to work yet. I even noticed small issues in that to split up some values with the split command, the php documentation says the interface is deprecated. it suggests using pcre_split, but the PCRE library is not installed/linked. Tom, was there a slackbuild script you used to compile and install this custom tailored version of php? If so can you post the slackbuild script so I can extend it? Or... Is there a way to have the customized PHP in one location and an extended version of PHP in another? I really think some of the API calls should be done as XMLRPC which is what I'm looking to do.
July 20, 201015 yr Lack of perl regexp is going to bite someone badly one day... but OTOH, it is pretty big. I'd like to have it though.
July 20, 201015 yr Author Lack of perl regexp is going to bite someone badly one day... but OTOH, it is pretty big. I'd like to have it though. I'm seeing it as 120k for the library. How much does that add to the php core?
July 20, 201015 yr Author Lack of perl regexp is going to bite someone badly one day... but OTOH, it is pretty big. I'd like to have it though. I'm seeing it as 120k for the library. How much does that add to the php core? Wait a minute, is it already on the distro? rwxrwxrwx 1 root root 16 Jul 19 08:45 libpcre.so.0 -> libpcre.so.0.0.1* -rwxr-xr-x 1 root root 141596 Feb 27 2008 libpcre.so.0.0.1*
July 20, 201015 yr Using PHP version 5.2.13 - can update to 5.3.2 if needed. I took the stock php.SlackBuild script, which is a "generic kitchen sink" configuration & pruned it down to only what I needed. Also got rid of the Apache2 module and the FastCGI interpreter. Attached is the php.SlackBuild file I'm currently using. php.SlackBuild.txt
July 20, 201015 yr Author Added pcre and compiled php. Configure Command => './configure' '--enable-force-cgi-redirect' '--enable-pcntl' '--enable-sigchild' '--prefix=/usr' '--libdir=/usr/lib' '--with-libdir=lib' '--sysconfdir=/etc' '--disable-all' '--without-apxs2' '--disable-libxml' '--enable-cli' '--with-pcre-regex' '--build=i486-slackware-linux' The size variance is not much so far as I start to add functionality back in to php. What I'm concerned about at this point is that there is no shared ldd line for pcre. So I've included an ls -l of my pcre incase I reinstalled the pcre statically on my system. Many times I do this to cut down on shared dependencies. root@unraidvm:/usr/local/webGui/plugins# ls -l /usr/bin/php* -rwxr-xr-x 1 root root 2541763 Jul 20 15:14 /usr/bin/php* -rwxr-xr-x 1 root root 2362558 Jul 5 17:30 /usr/bin/php.bak* rcotrone@slacky:~/src.slacky$ ls -l /usr/lib/libpcre* -rw-r--r-- 1 root root 151168 2007-01-24 17:00 /usr/lib/libpcre.a -rwxr-xr-x 1 root root 786 2007-01-24 17:00 /usr/lib/libpcre.la* lrwxrwxrwx 1 root root 16 2008-02-21 13:43 /usr/lib/libpcre.so -> libpcre.so.0.0.1* lrwxrwxrwx 1 root root 16 2008-02-21 13:43 /usr/lib/libpcre.so.0 -> libpcre.so.0.0.1* -rwxr-xr-x 1 root root 126760 2007-01-24 17:00 /usr/lib/libpcre.so.0.0.1* -rw-r--r-- 1 root root 35132 2007-01-24 17:00 /usr/lib/libpcrecpp.a -rwxr-xr-x 1 root root 913 2007-01-24 17:00 /usr/lib/libpcrecpp.la* lrwxrwxrwx 1 root root 19 2008-02-21 13:43 /usr/lib/libpcrecpp.so -> libpcrecpp.so.0.0.0* lrwxrwxrwx 1 root root 19 2008-02-21 13:43 /usr/lib/libpcrecpp.so.0 -> libpcrecpp.so.0.0.0* -rwxr-xr-x 1 root root 29212 2007-01-24 17:00 /usr/lib/libpcrecpp.so.0.0.0* -rw-r--r-- 1 root root 3362 2007-01-24 17:00 /usr/lib/libpcreposix.a -rwxr-xr-x 1 root root 841 2007-01-24 17:00 /usr/lib/libpcreposix.la* lrwxrwxrwx 1 root root 21 2008-02-21 13:43 /usr/lib/libpcreposix.so -> libpcreposix.so.0.0.0* lrwxrwxrwx 1 root root 21 2008-02-21 13:43 /usr/lib/libpcreposix.so.0 -> libpcreposix.so.0.0.0* -rwxr-xr-x 1 root root 4932 2007-01-24 17:00 /usr/lib/libpcreposix.so.0.0.0* I know it's a bit of work, but my goal is to try and set up some kind of xmlrpc plugin so functions can be called across other applications. I.E. XBMC to check and spin up disks. Don't shoot me right now, I'm just considering a standards based remote procedure call API.
July 23, 201015 yr Author Just thought I should post this. I think the pcre should be compiled back in. http://www.php.net/manual/en/reference.pcre.pattern.posix.php At some point this will need to be handled. I was about ready to port my syslog monitor condensed viewer and noticed that the egrep may disappear.
Archived
This topic is now archived and is closed to further replies.