Package Details: php53 5.3.29-15

Git Clone URL: https://aur.archlinux.org/php53.git (read-only, click to copy)
Package Base: php53
Description: PHP. A general-purpose scripting language that is especially suited to web development
Upstream URL: http://www.php.net
Licenses: PHP
Submitter: None
Maintainer: el_aur
Last Packager: el_aur
Votes: 9
Popularity: 0.000000
First Submitted: 2012-06-24 22:51 (UTC)
Last Updated: 2022-02-18 11:58 (UTC)

Sources (22)

Pinned Comments

el_aur commented on 2022-02-07 18:59 (UTC)

Read Carefully! Breaking changes in compare with native PHP package

  1. Console version is installed with php53-cli subpackage, php53 doesn't include it anymore!!!

  2. PEAR and PECL are available as php53-pear and php53-pecl subpackages

  3. All shared modules are respresented as stand-alone subpackages and are not included with php53 package anymore.

  4. No more extensions in php.ini itself!

Separate INI files for each extension are placed in /etc/php53/conf.d

They are loaded in correct order according to priority

Latest Comments

el_aur commented on 2022-02-07 18:59 (UTC)

Read Carefully! Breaking changes in compare with native PHP package

  1. Console version is installed with php53-cli subpackage, php53 doesn't include it anymore!!!

  2. PEAR and PECL are available as php53-pear and php53-pecl subpackages

  3. All shared modules are respresented as stand-alone subpackages and are not included with php53 package anymore.

  4. No more extensions in php.ini itself!

Separate INI files for each extension are placed in /etc/php53/conf.d

They are loaded in correct order according to priority

el_aur commented on 2022-02-01 17:40 (UTC) (edited on 2022-02-01 17:41 (UTC) by el_aur)

@malina - already tried 5.2, too ancient stuff even if compare with 5.3 :) too much time to waste for such dinosaur

malina commented on 2022-01-27 22:10 (UTC)

@el_aur I saw your work (phpbs) and tried it. You could work a lot with that, congratulations, nice work. And the source code is nice too. And it works. I couldn't compile php 5.3 with imap 2 months ago, I had to compile it separately. And yours works. So thank you very much.

Would php 5.2 be a big challenge?

el_aur commented on 2022-01-27 18:41 (UTC)

Hi guys. Wanna adopt this package. Have made universal builds for all PHP versions 5.3-8.1. Maintaining already php55, php72, php73, php74, php81 in AUR

el_aur commented on 2021-12-16 14:54 (UTC)

Have ported cve patches and Debian patches, can share here if you make me comaintainer :)

el_aur commented on 2021-12-09 12:30 (UTC) (edited on 2022-01-21 12:00 (UTC) by el_aur)

@malina Have made my own package for php53

Available here: https://github.com/lamskoy/arch-phpbs

Was playing with older ICU versions and found not all are compiling well icu64 is fine on modern system. Have made PKGBUILD for it too

malina commented on 2020-11-03 11:47 (UTC)

Hi,

the problem is that the unicode include directory is not taken well by php.

Nor is it a problem, but the current icu library (now 67.1) is not suitable for the php 5.3 intl extension, obviously the current icu library functions have a different set of parameters than in older versions.

There is only one solution: you need to install an earlier version of icu separately, which is at least 48.1 (icu 4.8.1.1) - I use at least that.I compiled specifically with the rpath option and only for php.

That's not enough: in the php53 build section, you need to set ICU_CONFIG env, and for LDFLAGS add the lib directory of the old version icu with the -L option, and set the --with-icu-dir = option with install dir of the old version icu.

lsrzj commented on 2019-11-25 17:43 (UTC) (edited on 2019-11-25 17:44 (UTC) by lsrzj)

I tried building PHP 5.3 and makepkg -si is failing with this message:

In file included from /usr/include/unicode/uformattable.h:37,
                 from /usr/include/unicode/fmtable.h:33,
                 from /usr/include/unicode/format.h:39,
                 from /usr/include/unicode/msgfmt.h:33,
                 from /home/leandro/php53/src/php-5.3.29/ext/intl/msgformat/msgformat_helpers.cpp:22:
/usr/include/unicode/ubrk.h:353:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)’
  353 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/utext.h:199:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)’
  199 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)’
  428 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/utext.h:199:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUTextPointer&, icu_65::LocalUTextPointer&)’
  199 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUTextPointer, UText, utext_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/umsg.h:428:1: error: conflicting declaration of C function ‘void icu_65::swap(icu_65::LocalUMessageFormatPointer&, icu_65::LocalUMessageFormatPointer&)’
  428 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUMessageFormatPointer, UMessageFormat, umsg_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/unicode/ubrk.h:353:1: note: previous declaration ‘void icu_65::swap(icu_65::LocalUBreakIteratorPointer&, icu_65::LocalUBreakIteratorPointer&)’
  353 | U_DEFINE_LOCAL_OPEN_POINTER(LocalUBreakIteratorPointer, UBreakIterator, ubrk_close);
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:1023: ext/intl/msgformat/msgformat_helpers.lo] Error 1
==> ERRO: Uma falha ocorreu em build().
    Abortando...

aminvakil commented on 2019-09-17 13:33 (UTC) (edited on 2019-09-17 13:41 (UTC) by aminvakil)

At the end (I executed makepkg -sri):

==> Removing installed dependencies...
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: php53: removing libzip breaks dependency 'libzip'
:: php53: removing openssl-1.0 breaks dependency 'openssl-1.0'
:: php53-apache: removing apache breaks dependency 'apache'
:: php53-enchant: removing enchant breaks dependency 'enchant'
:: php53-imap: removing c-client breaks dependency 'c-client'
:: php53-mcrypt: removing libmcrypt breaks dependency 'libmcrypt'
:: php53-mssql: removing freetds breaks dependency 'freetds'
:: php53-odbc: removing unixodbc breaks dependency 'unixodbc'
:: php53-pgsql: removing postgresql-libs breaks dependency 'postgresql-libs'
:: php53-pspell: removing aspell breaks dependency 'aspell'
:: php53-snmp: removing net-snmp breaks dependency 'net-snmp'
:: php53-tidy: removing tidy breaks dependency 'tidyhtml'
:: php53-xsl: removing libxslt breaks dependency 'libxslt'
==> WARNING: Failed to remove installed dependencies.

==> ERROR: An unknown error has occurred. Exiting...
User defined signal 1

warren commented on 2019-05-26 04:29 (UTC)

There is a small issue with the suhosin patch. In order to work some extraction and dir change must be done.

prepare() {
    cd ${srcdir}/..
    #           ^^^ this is the correct dir

    gunzip suhosin-patch-${_suhosinver}.patch.gz
    # ^^^ Unzip the patch

    msg "Fix the suhosin patch"
    patch -l -i suhosin.patch
    sed -i 's/1997-2004/1997-2014/g' suhosin-patch-${_suhosinver}.patch
    sed -i 's/1997-2012/1997-2014/g' suhosin-patch-${_suhosinver}.patch

    cp suhosin-patch-${_suhosinver}.patch ${srcdir}
    # ^^^ copy the patch to the final dir

    [...]

felixonmars commented on 2018-07-16 08:32 (UTC)

All fixed now. Sorry for the delay.

jorgelrm commented on 2018-04-28 18:01 (UTC)

Unable to compile, when I try to use enchant 1.6 the patched package makes impossible to start building (it says: 'cannot find enchant') until the folder enchant is renamed back from /usr/include/enchant1.6 to /usr/include/enchant. Also, the SSL certificate in the suhosin server (for the suhosin patch) has expired, so I downloaded it via "wget --no-check-certificate" (don't know how to do it in curl) manually. Then, I always get the same error when compiling, I've found registered in the following address:

http://build.codelinsoft.it/packages/php53/x86_64/log

Some ideas?

gluceri commented on 2018-03-29 08:51 (UTC)

You need to install enchant1.6 from aur. Then patch "confiugure" and rebuild.

JJK commented on 2018-02-15 20:22 (UTC) (edited on 2018-02-15 20:22 (UTC) by JJK)

For me it crashes on:

checking for ENCHANT support... yes, shared
configure: error: Cannot find enchant
==> ERROR: A failure occurred in build().
    Aborting...

bachy commented on 2017-12-06 12:53 (UTC)

Hello,

php53-mcrypt from aur is in conclict with extra/php i'm running both php versions (7 & 5.3) using php-fpm but now mcrypt is not here anymore for php53

what can i do ?

francoism90 commented on 2017-09-11 13:30 (UTC)

==> Retrieving sources... -> Downloading php-5.3.29.tar.xz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 8928k 100 8928k 0 0 4464k 0 0:00:02 0:00:02 --:--:-- 3030k -> Downloading suhosin-patch-5.3.9-0.9.10.patch.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Warning: Transient problem: timeout Will retry in 3 seconds. 3 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Warning: Transient problem: timeout Will retry in 3 seconds. 2 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 Warning: Transient problem: timeout Will retry in 3 seconds. 1 retries left. 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (6) Could not resolve host: suhosin-patch-5.3.9-0.9.10.patch.gz ==> ERROR: Failure while downloading http://download.suhosin.org/suhosin-patch-5.3.9-0.9.10.patch.gz

mlamm commented on 2017-05-03 08:45 (UTC) (edited on 2017-05-03 08:50 (UTC) by mlamm)

No dice, still the same error. Using alias makepkg='makepkg --skippgpcheck' for now.

Volkan commented on 2017-04-28 22:06 (UTC)

Try this: gpg --recv-key 7DEC4E69FC9C83D7

mlamm commented on 2017-04-28 14:33 (UTC) (edited on 2017-04-28 14:48 (UTC) by mlamm)

==> Verifying source file signatures with gpg... php-5.3.29.tar.xz ... FAILED (unknown public key 7DEC4E69FC9C83D7) ==> ERROR: One or more PGP signatures could not be verified! ==> ERROR: Makepkg was unable to build php53. also tried adding using .asc file and key id manually, doesnt work :-( edit: seems like key expired: > pacman-key -f 7DEC4E69FC9C83D7 pub rsa2048 2012-03-18 [SC] [expired: 2017-03-17] 0A95 E9A0 2654 2D53 835E 3F3A 7DEC 4E69 FC9C 83D7 uid [ expired] Johannes Schlüter <johannes@schlueters.de> uid [ expired] Johannes Schlüter <johannes@php.net>

Volkan commented on 2017-04-14 13:12 (UTC)

Hey all! I've merged zlatkig's changes into the aur. PHP is now running as php53. The systemd service is included. CAUTION: You need to adjust paths in your webserver after updating.

3KyNoX commented on 2017-04-09 12:16 (UTC)

Hello, Compile successfully, php -v return right version as expected. Before compiling it added as dependency apache 2.4.25-1, html page works but no php files. Then I added to httpd.conf : LoadModule php5_module modules/libphp5.so AddHandler php5-script php Include conf/extra/php5_module.conf But httpd -t return when I restart apache : httpd: Syntax error on line 157 of /etc/httpd/conf/httpd.conf: Cannot load modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: core_global_id Any idea ?

LithiumPT commented on 2016-11-09 14:22 (UTC)

@zlatkig, awesome work! really! @felixonmars, maybe you could update the package with zlatkig's snapshot?

zlatkig commented on 2016-09-26 08:42 (UTC)

I have modified this package along the lines of php56, allowing it to coexist with other PHP versions. The snapshot is here: https://zlatkovic.com/php53.tar.gz

mindcat commented on 2016-07-17 15:18 (UTC)

cat <<EOF > /etc/systemd/system/multi-user.target.wants/php-fpm.service [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Service] Type=simple PIDFile=/run/php-fpm.pid PrivateTmp=true ExecStart=/usr/bin/php-fpm --nodaemonize --pid /run/php-fpm.pid ExecReload=/bin/kill -USR2 $MAINPID [Install] WantedBy=multi-user.target EOF #fix no systemd service file

alpha.niner commented on 2016-06-15 18:46 (UTC)

Regarding the freetype issue, I think the correct solution is to not apply freetype-path.patch. TL;DR(ThePatch), it breaks the path now rather than fixing it. :P

Alad commented on 2016-05-10 16:29 (UTC)

Why not get the ubuntu .debian archive, and apply patches in it with quilt? That should simplify things. Also you should quote srcdir and pkgdir so the build doesn't fail in directories with spaces.

LithiumPT commented on 2016-01-26 15:20 (UTC) (edited on 2016-01-26 15:24 (UTC) by LithiumPT)

kamahl, this should make it compile cleanly: ln -s /usr/include/freetype2/freetype/freetype.h /usr/include/freetype2/freetype.h felixonmars, would it be possible to make this package compatible with standard php install? Having both php (currently at version 7) and php53 coexist would be awesome! Maybe you could take a look at how the php56 package does it, as it can be installed side by side with php(7).

jachymb commented on 2016-01-14 12:52 (UTC)

I am getting the following error during configure: configure: error: freetype.h not found. I have the package freetype2 installed.

felixonmars commented on 2014-11-07 06:36 (UTC)

Hrm, since I don't find an environment to test it myself, I'll add a working service file if suggested.

sysfu commented on 2014-10-24 04:44 (UTC)

The unmodified php-fpm.service file which I copied from the php-fpm-5.6.2 packagce does not work for some reason. If I run the command specified in the service file manually; '/usr/bin/php-fpm --nodaemonize --pid /run/php-fpm/php-fpm.pid' it works. If I try starting the service using 'systemctl start php-fpm' it fails with the following vague messages in the systemd journal Oct 23 17:33:57 fs systemd[1]: Failed to start The PHP FastCGI Process Manager. Oct 23 17:33:57 fs systemd[1]: Unit php-fpm.service entered failed state.

felixonmars commented on 2014-10-24 02:32 (UTC)

@sysfu Does the unmodified version work for you? I don't use fpm myself, but I can add it if it just works.

sysfu commented on 2014-10-24 00:09 (UTC)

Here's the systemd service file that php-fpm 5.6.2-2 is using: [Unit] Description=The PHP FastCGI Process Manager After=syslog.target network.target [Service] Type=notify PIDFile=/run/php-fpm/php-fpm.pid PrivateTmp=true ExecStart=/usr/bin/php-fpm --nodaemonize --pid /run/php-fpm/php-fpm.pid ExecReload=/bin/kill -USR2 $MAINPID [Install] WantedBy=multi-user.target

sysfu commented on 2014-10-24 00:06 (UTC)

If you get time could you please add a .service file to the package so it can easily be enabled and run via systemd?

Driadan commented on 2013-06-05 07:54 (UTC)

Due to https://www.archlinux.org/news/binaries-move-to-usrbin-requiring-update-intervention/ line 263 should be changed to: install -D -m755 ${srcdir}/build-fpm/sapi/fpm/php-fpm ${pkgdir}/usr/bin/php-fpm

commented on 2013-04-15 18:41 (UTC)

checking for DB4 major version... configure: error: Header contains different version :(

devoncrouse commented on 2013-04-09 02:36 (UTC)

Anyone tested this on a fresh Arch install lately? I've used it before successfully, but this time not so much: Had to disable mcrypt, db4, sysv stuff, openssl, and finally quit when I ran into problems with sqlite, since I need that.

Spider.007 commented on 2013-03-01 18:31 (UTC)

Have a look at https://bbs.archlinux.org/viewtopic.php?pid=1230713#p1230713

d3x commented on 2013-03-01 18:15 (UTC)

checking whether build with IMAP works... no configure: error: build test failed. Please check the config.log for details. ==> ERROR: A failure occurred in build(). Aborting...

Driadan commented on 2013-02-22 17:02 (UTC)

had to remove both imap flags to get it to compile :S

Spider.007 commented on 2013-01-14 14:32 (UTC)

@jwa, I wouldn't mind adding a dependency, but I don't have json-glib installed (I do have json-c) and can still build this package, so I am unsure what dependency to add. I have added the json extension

jwa commented on 2013-01-11 13:19 (UTC)

I'm with elamskoy on the JSON part. Also please add a extension=json.so line to the default php.ini.

commented on 2012-10-30 10:34 (UTC)

I am orphaning my packages since I am no longer using Arch. Feel free to adopt.

el_aur commented on 2012-10-11 20:14 (UTC)

You have --with-json=shared in configure options Problem: if there's no json-glib package installed in system, json.so won't build. Include this one package in dependencies please.

el_aur commented on 2012-10-08 19:44 (UTC)

Very useful package. Thanks!

commented on 2012-09-22 17:44 (UTC)

The packages will conflict.

commented on 2012-09-21 20:15 (UTC)

Will installing this override php5.4, or can it be installed in tandem?

Geoffroy commented on 2012-07-30 11:32 (UTC)

PHP 5.3 may still be usefull, for example I've got a problem with MantisBT SOAP API and I need to downgrade PHP

gtmanfred commented on 2012-06-26 18:16 (UTC)

you really shouldn't use php 5.3 mostly because of the security flaws, just fix your scripts and move on

commented on 2012-06-24 22:51 (UTC)

Split package, so nevermind the bogus description.