PHP.INI include patch

iceuk626

Verified User
Joined
May 6, 2006
Messages
250
Location
United Kingdom
Has anyone actually had any success with this patch
http://tekrat.com/php-ini-includes/

Because i use php as FCGI and all users have there own php.ini i thought it was a good idea to use this patch so i can have a common.ini for things like the zend directives and caching and all i have to do is use a include directive in the users php.ini, the problem is it doesnt seem to work.. it patches fine as ive included it in the custombuild script:
Code:
doPhp5_suphp() {
        if [ "${PHP5_CGI_OPT}" != "yes" ]; then
                do_exit 1 "Can not build PHP5 as CGI because it is not set in options.conf."
        fi
        checkCURL
        checkFreeType
        checkIconv
        checkMCrypt
        checkMHash
        quitIfLocked doPhp5_suphp
        touch ${WORKDIR}/.custombuild
        mkdir -p /usr/local/etc/php5/cgi
        cd ${CWD};
        FILE=${CWD}/php-${PHP5_VER}.tar.gz
        checkFile ${FILE}
        echo "Extracting ...";
        tar xzf ${FILE}
        echo "Done.";

        if [ "${APPLY_MAIL_HEADER_PATCH}" = "yes" ]; then
                patch -p0 < ${MAIL_HEADER_FILE_PHP5}
        fi

        cd php-${PHP5_VER}
        [COLOR="Red"][B]wget http://tekrat.com/downloads/bits/php_ini_includes.5.2.4.patch
        patch -p1 -i php_ini_includes.5.2.4.patch[/B][/COLOR]
        #make sure we have the sendmail link
        ln -sf exim /usr/sbin/sendmail

        #some reports of missing -lltdl, problem found to be simple missing link
        if [ ! -e /usr/lib/libltdl.so ]; then
Im not sure what the problem is.. php as FCGI? the way my .ini's are setup?

Anyone have any ideas? smtalk ? :P
 
Still cant get it to work.. Brian assures me it does but no luck for me.

Ive now decided to use scan directory instead and all works fine now.
 
Back
Top