Hypertext Preprocessor is a general-purpose programming language!

PHP for Mac

PHP for Mac

  -  20.62 MB  -  Open Source
  • Latest Version

    PHP 8.4.13 LATEST

  • Review by

    Daniel Leblanc

  • Operating System

    Mac OS X

  • User Rating

    Click to vote
  • Author / Product

    PHP Development Team / External Link

  • Filename

    php-src-php-8.4.13.tar.gz

  • MD5 Checksum

    eb88a7cf47fe53574cfcdb3f19df22da

PHP for Mac is a popular general-purpose scripting language that is especially suited to web development. Fast, flexible and pragmatic, PHP for macOS powers everything from your blog to the most popular websites in the world.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

Instead of lots of commands to output HTML (as seen in C or Perl), pages contain HTML with embedded code that does "something" (in this case, output "Hi, I'm a PHP script!"). The code is enclosed in special start and end processing instructions that allow you to jump into and out of "PHP mode."

What distinguishes PHP for macOS from something like client-side JavaScript is that the code is executed on the server, generating HTML which is then sent to the client.

The client would receive the results of running that script, but would not know what the underlying code was. You can even configure your web server to process all your HTML files with PHP, and then there's really no way that users can tell what you have up your sleeve.

The best things in using PHP are that it is extremely simple for a newcomer, but offers many advanced features for a professional programmer. Don't be afraid reading the long list of PHP's features.

You can jump in, in a short time, and start writing simple scripts in a few hours.

How to Use

Install PHP via Homebrew with brew install php

Verify installation using php -v

Configure Apache or Nginx to use PHP

Test with a phpinfo() script in your web server

Use Composer to manage PHP dependencies

Write and run PHP scripts in Terminal or browser

Edit scripts using any code editor like VS Code

Update PHP using brew upgrade php

Use php -S localhost:8000 for local testing

System Requirements
  • macOS 10.15 (Catalina) or later
  • At least 4 GB RAM (8 GB recommended)
  • Homebrew package manager
  • Command Line Tools for Xcode
  • Internet connection for installation
PROS
  • Easy installation with Homebrew
  • Native macOS support for Apache
  • Strong community and documentation
  • Compatible with popular IDEs
  • Great for local web development
CONS
  • Older macOS may lack PHP support
  • Configuration can be complex
  • Built-in PHP deprecated in new macOS
  • Performance not optimized by default
  • Compatibility issues with some extensions
Also Available: Download PHP for Windows

Why is this app published on FileHorse? (More info)

What's new in this version:

Core:
- Fixed bug GH-18850 (Repeated inclusion of file with __halt_compiler() triggers "Constant already defined" warning)
- Partially fixed bug GH-19542 (Scanning of string literals >=2GB will fail due to signed int overflow)
- Fixed bug GH-19544 (GC treats ZEND_WEAKREF_TAG_MAP references as WeakMap references)
- Fixed bug GH-19613 (Stale array iterator pointer)
- Fixed bug GH-19679 (zend_ssa_range_widening may fail to converge)
- Fixed bug GH-19681 (PHP_EXPAND_PATH broken with bash 5.3.0)
- Fixed bug GH-19720 (Assertion failure when error handler throws when accessing a deprecated constant)

CLI:
- Fixed bug GH-19461 (Improve error message on listening error with IPv6 address)

Date:
- Fixed date_sunrise() and date_sunset() with partial-hour UTC offset

DBA:
- Fixed bug GH-19706 (dba stream resource mismanagement)

DOM:
- Fixed bug GH-19612 (Mitigate libxml2 tree dictionary bug)

FPM:
- Fixed failed debug assertion when php_admin_value setting fails

Intl:
- Fixed bug GH-11952 (Fix locale strings canonicalization for IntlDateFormatter and NumberFormatter)

Opcache:
- Fixed bug GH-19493 (JIT variable not stored before YIELD)

OpenSSL:
- Fixed bug GH-19245 (Success error message on TLS stream accept failure)

PGSQL:
- Fixed bug GH-19485 (potential use after free when using persistent pgsql connections)

Phar:
- Fixed memory leaks when verifying OpenSSL signature
- Fix memory leak in phar tar temporary file error handling code
- Fix metadata leak when phar convert logic fails
- Fix memory leak on failure in phar_convert_to_other()
- Fixed bug GH-19752 (Phar decompression with invalid extension can cause UAF)

Standard:
- Fixed bug GH-16649 (UAF during array_splice)
- Fixed bug GH-19577 (Avoid integer overflow when using a small offset and PHP_INT_MAX with LimitIterator)

Streams:
- Remove incorrect call to zval_ptr_dtor() in user_wrapper_metadata()
- Fix OSS-Fuzz #385993744

Zip:
- Fix memory leak in zip when encountering empty glob result