We stand with Ukraine to help keep people safe. Join us
EN
When you purchase through links on our site, we may earn an affiliate commission

PHP for Mac

Server-side, cross-platform, HTML embedded scripting language.

Free
In English
5.0
Based on 7 user rates

PHP overview

This is a PHP module for the Apache Web server included in OS X. PHP is a server-side, cross-platform scripting language. PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

What's new in version 8.5.9

Core:
  • Fixed bug GH-22290 (AST pretty printing does not correctly handle strings containing NUL).
  • Fixed bug GH-22206 (missing return in global register detection).
  • Lock unmodified readonly properties for modification after clone-with.
BCMath:
  • Fixed GHSA-x692-q9x7-8c3f (Out-of-bounds write in bccomp()). (CVE-2026-17544)
Calendar:
  • Fixed bug GH-22602 (gregoriantojd() and juliantojd() integer overflow with INT_MAX year).
Date:
  • Update timelib to 2022.17.
  • Fixed bug GH-19803 (Parsing a string with a single white space does create an error).
  • Fixed Unix timestamps in February of the year 0 are misparsed with @-notation.
  • Fixed bug GH-11310 (__debugInfo does nothing on userland classes extending Date classes).
DBA:
  • Fixed OOB read on malformed length field in dba flatfile handler.
DOM:
  • Fixed bug GH-22570 (Stack overflow when serializing a deeply nested Dom\XMLDocument).
  • Fixed getElementsByClassName() item() returning the wrong element on random access.
Exif:
  • Fixed bug GH-11020 (exif_read_data() emits a spurious "Illegal IFD size" warning when an IFD is not followed by a next-IFD offset).
GD:
  • Upgrade libgd. (CVE-2026-9672)
Hash:
  • Fixed bug GH-18173 (ext/hash relies on implementation-defined malloc alignment).
ODBC:
  • Fixed bug GH-22668 (Heap buffer over-read when a column value exceeds the driver-reported display size).
Opcache:
  • Fixed bug GH-22158 (Tracing JIT dispatches the observer begin handler through the wrong run_time_cache slot on megamorphic calls).
  • Fixed bug GH-22443 (Tracing JIT SIGSEGV on megamorphic dynamic calls from an undereferenced run_time_cache map_ptr offset).
  • Fixed bug GH-21770 (Infinite recursion in property hook getter in opcache preloaded trait).
OpenSSL:
  • Fixed timeout for supplemental read at end of a blocking stream in SSL stream wrapper.
Intl:
  • Fixed Locale::lookup() and locale_lookup() to return NULL instead of the fallback locale when a language tag cannot be canonicalized.
  • Fixed memory leaks when calling Collator::__construct() or Spoofchecker::__construct() twice.
  • Fixed memory leak when calling IntlListFormatter::__construct() twice.
  • Fixed IntlChar methods leaving stale global error state after successful calls.
PDO_ODBC:
  • Fixed bug GH-20726 (Crash with ODBC connection pooling when the DSN carries no credentials).
  • Fixed bug GH-22667 (Heap buffer over-read when a column value exceeds the driver-reported display size).
  • Fixed bug GH-22666 (Heap buffer overflow when an output parameter value is longer than the declared maxlen).
  • Fixed bug GH-22665 (Out-of-bounds write when the ODBC driver reports a diagnostic message length beyond the error buffer).
PGSQL:
  • Fixed GHSA-7qpv-r5mr-78m4 (SQL injection via E'...' backslash breakout). (CVE-2026-17543)
Phar:
  • Fixed inconsistent handling of the magic ".phar" directory. Paths such as "/.phar" remain protected, while non-magic paths that merely start with ".phar" are handled consistently across file and directory creation, copying, ArrayAccess, stream lookup, directory iteration and extraction.
  • Fixed GHSA-vc5h-9ppw-p5f3 (Crash via recursive symlinks). (CVE-2026-7260)
PHPDBG:
  • Fixed bug GH-17387 (Trivial crash in phpdbg lexer).
  • Fixed fleaked lowercased lookup keys in phpdbg_resolve_opline_break.
  • Fixed off-by-one in phpdbg_safe_class_lookup() causing class lookups to always fail during phpdbg's signal-safe interruption path.
Reflection:
  • Fixed bug GH-22324 (Ignore leading namespace separator in ReflectionParameter::__construct()).
  • Fixed bug GH-22441 (ReflectionClass::hasProperty() and getProperty() ignore dynamic properties shadowing a private parent property).
  • Fixed bug GH-22658 (ReflectionConstant::__toString() with a string value with null bytes truncates output).
  • Fixed bug GH-22683 (Reflection(Class)Constant::__toString() should not warn on NAN conversions).
  • Fixed bug GH-22681 (Reflection*::__toString() truncates on null bytes).
Session:
  • Fixed bug GH-21314 (Different session garbage collector behavior between PHP 8.3 and PHP 8.5).
SPL:
  • Fix class_parents for classes with leading slash in non-autoload mode.
  • Ignore leading back-slash in class_parents(), class_implements(), and class_uses().
  • Fixed bug GH-16217 (SplFileObject::fputcsv() on an uninitialized object segfaults).
Standard:
  • Fixed bug GH-22395 (base_convert() outputs at most 64 characters).
  • Fixed bug GH-22678 (Use-after-free in array_multisort() when the comparator mutates the array being sorted).
URI:
  • Fixed behavior of Uri\WhatWg\Url wither methods with regards to empty opaque hosts.
  • Fixed bug GH-22628 (Percent-encoding of caret in WHATWG URL paths is not performed).
  • Fixed bug GH-22629 (WHATWG Validation error incorrect with empty host and non-empty userinfo).
Zip:
  • Fixed bug GH-22649 (ZipArchive::setCommentName() and setCommentIndex() could crash after overwriting an entry and resetting its inherited unchanged comment).
  • Fixed bug GH-21705 (ZipArchive::getFromIndex() ignores ZipArchive::FL_UNCHANGED for deleted entries).
View older PHP versions

PHP for Mac

Free
In English
Version 8.5.9
Write a detailed review about PHP

Write your thoughts in our old-fashioned comment

MacUpdate Comment Policy. We strongly recommend leaving comments, however comments with abusive words, bullying, personal attacks of any type will be moderated.
5.0

(23 Reviews of PHP)

  • Comments

  • User Ratings

Just-Fred
Just-Fred
Apr 19, 2023
8.2.5
0.0
Apr 19, 2023
0.0
Version: 8.2.5
Once again, the description given by MacUpdate is 100% wrong. This is a source code bundle and not a binary package. In order to use it, one must have Xcode installed and be able to compile it. Having found a need to use PHP to create a database-backed web site, I chose to use MacPorts (Homebrew is usually recommended, but I don't intend to install many "sidecar" Mac apps, and MacPorts seems less intrusive. On a plus note, PHP now includes its own built-in development web server, so configuring and running Apache (now called apache2 on Macs) isn't needed. A simple command: php -S <server>:<port> <optional: -t webhomedirectory> is all that's needed.
Parchment Press
Parchment Press
Dec 4, 2013
5.5.6
0.0
Dec 4, 2013
0.0
Version: 5.5.6
Why o why does MacUpdate track Unix software in the main Mac software channel? Just a suggestion, but i would prefer it if you had a separate tab/category for server software, daemons, CLI utilities and the like. That way, the 90% who don't use it won't have to contend with the added entries on the tracker. (I do personally use a lot of server-oriented software and CLI tools, so i would personally check that category for updates. But my preference would be to separate them out to another category listing.)
Neil-M
Neil-M
Jun 1, 2011
5.3.0-3
0.0
Jun 1, 2011
0.0
Version: 5.3.0-3
From the developers website; Note: The package on this page is outdated. I recommend this new PHP distribution for Mac OS X, it is based on mine: http://blog.liip.ch/archive/2011/04/13/php-5-3-for-os-x-10-6-one-line-installer.html http://php-osx.liip.ch/ - is the best source for a 10.6 version of php.
schmelding
schmelding
Sep 4, 2009
5.3.0-3
0.0
Sep 4, 2009
0.0
Version: 5.3.0-3
Since Snow Leopard wiped-out my install of the entropy version of PHP, does anybody know what would happen if I reinstalled this?
Neil-M
Neil-M
Jul 31, 2009
5.3.0-3
0.0
Jul 31, 2009
0.0
Version: 5.3.0-3
Now PHP 5.3.0-3 Thanks Marc for compiling this for OS X - it gets me an easy way to get an upto date php distro, with GD (not on Apple's vanilla inbuilt), etc. onto my server - without waiting, waiting for Apple to update.
Sandro-Bilbeisi
Sandro-Bilbeisi
Nov 15, 2014
5.0
Nov 15, 2014
5.0
Version: null
BlakeC6588
BlakeC6588
Oct 15, 2013
5.0
Oct 15, 2013
5.0
Version: null
Sparrowhawk
Sparrowhawk
Sep 17, 2013
5.0
Sep 17, 2013
5.0
Version: null
olamaekle
olamaekle
Aug 6, 2013
5.0
Aug 6, 2013
5.0
Version: null
Zetsurin
Zetsurin
Dec 20, 2006
5.0
Dec 20, 2006
5.0
Version: null
Guest
Guest
Sep 28, 2004
4.8
Sep 28, 2004
4.8
Version: null
Guest
Guest
May 19, 2003
5.0
May 19, 2003
5.0
Version: null