[atomic] PHP 5.2.13

Atomic repository announcements, new release notifications and other news regarding the atomic yum repository.
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic] PHP 5.2.13

Unread post by diego »

As Bruce Lee i was also having the segfault issue, and solved removing php-eaccelerator.

Any chance off getting the latest release of eaccelerator in art's repo?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

ah that wouldnt surprise me. Whats the latest version, last I checked it was 0.9.6.1 or something
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic] PHP 5.2.13

Unread post by diego »

This is the last version:

Release-0.9.6 - 2010/02/04
Release-0.9.6-rc2 - 2010/01/26
Release-0.9.6-rc1 - 2009/07/15 <-- This is the one in art's repo

You can download the latest here:
http://bart.eaccelerator.net/source/0.9 ... .6.tar.bz2
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

Err... you sure about that? The version field might say "0.9.6" but it doesnt say anything about rc1. I dont even see an rc1 file on our build server.

http://www.atomicorp.com/channels/atomi ... t.i386.rpm


...
%define module_version 0.9.6.1
Source: http://dl.sf.net/eaccelerator/eaccelera ... n}.tar.bz2


-rw-rw-r-- 1 mockbuild mockbuild 114476 Dec 31 17:30 eaccelerator-0.9.6.1.tar.bz2
diego
Forum Regular
Forum Regular
Posts: 111
Joined: Tue Aug 05, 2008 5:01 pm

Re: [atomic] PHP 5.2.13

Unread post by diego »

Check the version that its installed from art's repo its the rc1

Code: Select all

[root@server1 ~]# yum install php-eaccelerator.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.ash.fastserv.com
 * atomic: www4.atomicorp.com
 * base: holmes.umflint.edu
 * extras: centos-distro.cavecreek.net
 * updates: mirror.anl.gov
addons                                                   |  951 B     00:00     
asl-2.0                                                  | 1.9 kB     00:00     
atomic                                                   | 1.9 kB     00:00     
base                                                     | 2.1 kB     00:00     
extras                                                   | 2.1 kB     00:00     
s3tools                                                  |  951 B     00:00     
updates                                                  | 1.9 kB     00:00     
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-eaccelerator.x86_64 1:5.2.13_0.9.6-1.el5.art set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch       Version                       Repository  Size
================================================================================
Installing:
 php-eaccelerator     x86_64     1:5.2.13_0.9.6-1.el5.art      atomic      94 k

Transaction Summary
================================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 94 k
Is this ok [y/N]: y
Downloading Packages:
php-eaccelerator-5.2.13_0.9.6-1.el5.art.x86_64.rpm       |  94 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php-eaccelerator                                         1/1 

Installed:
  php-eaccelerator.x86_64 1:5.2.13_0.9.6-1.el5.art                              

Complete!
[root@server1 ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
[root@server1 ~]# php -v
PHP 5.2.13 (cli) (built: Mar  2 2010 18:08:48) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.3.11, Copyright (c) 2002-2010, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
    with Suhosin v0.9.29, Copyright (c) 2007, by SektionEins GmbH
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: [atomic] PHP 5.2.13

Unread post by dayo »

Not getting the segmentation faults but yes, the ART version is rc1

Code: Select all

PHP 5.2.13 (cli) (built: Mar  2 2010 18:08:48) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with eAccelerator v0.9.6-rc1, Copyright (c) 2004-2007 eAccelerator, by eAccelerator
    with the ionCube PHP Loader v3.3.7, Copyright (c) 2002-2009, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies
Would be nice Scott, if recompiling eAccelerator to consider activating the "--with-content-caching" flag as discussed here: http://atomicorp.com/forums/viewtopic.php?f=2&t=3868.

Thanks

Looking forward to the fpm patch on the main php 5.2.13 as well. Yummy!
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

There must be a problem with upstream then, because its using that file.

the fpm patch is in 5.2.13 already.
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: [atomic] PHP 5.2.13

Unread post by dayo »

scott wrote:There must be a problem with upstream then, because its using that file.
"--with-eaccelerator-content-caching". See: http://eaccelerator.net/wiki/CompileConfiguration.
scott wrote:the fpm patch is in 5.2.13 already.
Great stuff.
A bit confused as to whether you mean
1. You have now put it in; or
2. It was always there

If '1', how do we upgrade from the previous installation since "yum update php" comes up with "no packages marked for update"
if '2', does it mean a flag has to be switched on when compiling? - doubt this since this does not appear in the change log.

Thanks again
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

Take a gander:
-rw-rw-r-- 1 mockbuild mockbuild 92452 Dec 31 17:28 eaccelerator-0.9.6.tar.bz2
-rw-rw-r-- 1 mockbuild mockbuild 105833 Feb 4 13:12 eaccelerator-0.9.6.tar.bz2.1

and even better:
-rw-rw-r-- 1 mockbuild mockbuild 114476 Dec 31 17:30 eaccelerator-0.9.6.1.tar.bz2

which no longer exists. :P

PHP spec's are here: http://www4.atomicorp.com/channels/source/php/php.spec
If you see something that needs to be changed, let me know.
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: [atomic] PHP 5.2.13

Unread post by dayo »

Hi Scott

You need to remember that you have a bazillion times more experience than folks like me you don't even know what mockbuild is :D (not much chance of me knowing what to do with those lines with "mockbuild" in them.

On the php 5.2.13, I see from the specs that you patched it yourself with php-fpm. Can you please advise on how I can upgrade seeing that I already installed the original version (i.e. before March 6 when you added the patch?).

Thanks

*********************
After some sleuthing and trying some deductive thinking, I managed to figure out that when Scott said php-fpm is already in "PHP 5.2.13", he meant in the atomic testing repo and "yum --enablerepo=atomic-testing upgrade php" does the job.

Thanks Scott. You're a legend! if the Niginx version could be bumped up to 0.7.65 Stable, you'll get a seat on Mount Olympus :D
dayo
Forum Regular
Forum Regular
Posts: 158
Joined: Sun Jul 12, 2009 1:33 pm

Re: [atomic] PHP 5.2.13

Unread post by dayo »

Hi Scott

I noticed that the spec sheet had the php-fpm stuff commented out as below:

Code: Select all

%files cli
%defattr(-,root,root)
%{_bindir}/php
%{_bindir}/php-cgi
#%{_bindir}/php-fpm
%{_mandir}/man1/php.1*
%doc sapi/cgi/README* sapi/cli/README
#%config(noreplace) %{_sysconfdir}/php-fpm.conf
Am I right in concluding that this is why there is no '/usr/bin/php-fpm' or '/etc/php-fpm.conf'?

If so, can you please give some tips on where to configure it or is this still work in progress?

Thanks
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: [atomic] PHP 5.2.13

Unread post by BruceLee »

HI Scott,

thanks a lot for the quick update. You are a lifesaver by helping that quick.
I have installed the latest version from atomic but the segfault is still there.
php-eaccelerator-5.2.13_0.9.6-2.3.el5.art.x86_64.rpm
Am I right that the changeset like the one stopping the segfaults > (http://www.eaccelerator.net/changeset/410)
is not included in the latest version of eaccelerator and therefore you have not compiled it?
If this is so, can I go back to the older version and leave the rest of php stuff up2date?
If I can, where do I get your old rpm of php-eaccelerator?
php-eaccelerator-1:5.2.12_0.9.5.3-5.el5.art.x86_64
It's not in atomic anymore.

Thanks again.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

Send me a patch
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: [atomic] PHP 5.2.13

Unread post by BruceLee »

huh, I'm doing my best, but it's totally new to me.
I've searched a little bit and that should make it.
What do the expert say? All code makes sence to me except of the "-bs" part.

Code: Select all

diff -ruN eaccelerator-0.9.6/eaccelerator.c eaccelerator-0.9.6-bs/eaccelerator.c
--- eaccelerator-0.9.6/eaccelerator.c   2010-02-04 20:10:11.000000000 +0200
+++ eaccelerator-0.9.6-bs/eaccelerator.c        2010-02-24 10:32:56.000000000 +0200
@@ -1670,10 +1670,10 @@
        /* free the list of patterns */
        p = eag->pattern_list;
        while (p != NULL) {
-               q = p;
+               q = p->next;
                free(p->pattern);
                free(p);
-               p = q->next;
+               p = q;
        }
        eag->pattern_list = NULL;
 }
useful links:
http://www.eaccelerator.net/changeset/410
http://www.eaccelerator.net/ticket/404
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.13

Unread post by scott »

Close, you mangled it at the bottom so its not usable :P
patch: **** malformed patch at line 16: }

Good rule of thumb is to always test your patch against your own code to make sure you got it right. Also dont cut & paste one (especially if you use windows).

Try diff -ru origdir/ newdir/ > foo.patch
Post Reply