ports/145619: www/eaccelerator: patch for php 5.3.2
Bartosz Stec
bartosz.stec at it4pro.pl
Sun Apr 11 11:40:05 UTC 2010
The following reply was made to PR ports/145619; it has been noted by GNATS.
From: Bartosz Stec <bartosz.stec at it4pro.pl>
To: bug-followup at FreeBSD.org, spil.oss at gmail.com
Cc:
Subject: Re: ports/145619: www/eaccelerator: patch for php 5.3.2
Date: Sun, 11 Apr 2010 13:33:54 +0200
This is a multi-part message in MIME format.
--------------020005070700010104090301
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
I did a little testing.
Patch submitted above allow eaccelerator to compile with PHP 5.3.2,
hovewer I couldn't make it actually work with it. Regardless of ony
settings related to eaccelerator in php.ini I always get in apache error
log:
eAccelerator: shmmax should be at least 2MBPHP Warning:
[eAccelerator] Can not create shared memory area in Unknown on line 0
PHP Fatal error: Unable to start eAccelerator module in Unknown on
line 0
With PHP 5.2.X it always worked like a charm. Here are my php.ini
settings for eaccelerator:
zend_extension="/usr/local/lib/php/20090626/eaccelerator.so"
eaccelerator.shm_size="32"
eaccelerator.cache_dir="/tmp/eaccelerator"
eaccelerator.enable="1"
eaccelerator.optimizer="1"
eaccelerator.check_mtime="1"
eaccelerator.debug="0"
eaccelerator.filter=""
eaccelerator.shm_max="0"
eaccelerator.shm_ttl="600"
eaccelerator.shm_prune_period="0"
eaccelerator.shm_only="0"
eaccelerator.compress="1"
eaccelerator.compress_level="9"
Playing with eaccelerator.shm_max ("2M","8M") made no difference. It
seems that little more work is needed to make this version work.
# uname -a
FreeBSD mainframe.kkip.pl 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Apr
9 23:12:44 CEST 2010
ncpnc at mainframe.kkip.pl:/usr/obj/usr/src/sys/AMD64SMP8 amd64
#php -v
PHP 5.3.2 with Suhosin-Patch (cli) (built: Apr 9 2010 15:24:51)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
(There is no eaccelerator in output because It is disabled by now )
--
Bartosz Stec
--------------020005070700010104090301
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
I did a little testing.<br>
Patch submitted above allow eaccelerator to compile with PHP 5.3.2,
hovewer I couldn't make it actually work with it. Regardless of ony
settings related to eaccelerator in php.ini I always get in apache
error log: <br>
<blockquote>eAccelerator: shmmax should be at least 2MBPHP Warning:
[eAccelerator] Can not create shared memory area in Unknown on line 0<br>
PHP Fatal error: Unable to start eAccelerator module in Unknown on
line 0<br>
</blockquote>
With PHP 5.2.X it always worked like a charm. Here are my php.ini
settings for eaccelerator:<br>
<blockquote>zend_extension="/usr/local/lib/php/20090626/eaccelerator.so"<br>
eaccelerator.shm_size="32"<br>
eaccelerator.cache_dir="/tmp/eaccelerator"<br>
eaccelerator.enable="1"<br>
eaccelerator.optimizer="1"<br>
eaccelerator.check_mtime="1"<br>
eaccelerator.debug="0"<br>
eaccelerator.filter=""<br>
eaccelerator.shm_max="0"<br>
eaccelerator.shm_ttl="600"<br>
eaccelerator.shm_prune_period="0"<br>
eaccelerator.shm_only="0"<br>
eaccelerator.compress="1"<br>
eaccelerator.compress_level="9"<br>
</blockquote>
Playing with eaccelerator.shm_max ("2M","8M") made no difference. It
seems that little more work is needed to make this version work.<br>
<blockquote># uname -a<br>
FreeBSD mainframe.kkip.pl 8.0-STABLE FreeBSD 8.0-STABLE #1: Fri Apr 9
23:12:44 CEST 2010
<a class="moz-txt-link-abbreviated" href="mailto:ncpnc at mainframe.kkip.pl:/usr/obj/usr/src/sys/AMD64SMP8">ncpnc at mainframe.kkip.pl:/usr/obj/usr/src/sys/AMD64SMP8</a> amd64<br>
</blockquote>
<blockquote>#php -v<br>
PHP 5.3.2 with Suhosin-Patch (cli) (built: Apr 9 2010 15:24:51)<br>
Copyright (c) 1997-2009 The PHP Group<br>
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies<br>
</blockquote>
(There is no eaccelerator in output because It is disabled by now )<br>
<br>
<pre class="moz-signature" cols="72">--
Bartosz Stec
</pre>
</body>
</html>
--------------020005070700010104090301--
More information about the freebsd-ports-bugs
mailing list