shardj / zf1-future
Zend Framework 1. The aim is to keep ZF1 working with the latest PHP versions
Requires
- php: >=7.4
- symfony/polyfill-ctype: ^1.30
- symfony/polyfill-mbstring: ^1.30
- symfony/polyfill-php81: ^1.30
- symfony/polyfill-php82: ^1.30
- symfony/polyfill-php83: ^1.30
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3
- php-parallel-lint/php-parallel-lint: ^1.3
- phpcompatibility/php-compatibility: dev-develop
- phpstan/phpstan: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- phpunit/phpunit: ^9
- rector/rector: ^2.0
- yoast/phpunit-polyfills: ^2.0
Suggests
- ext-mbstring: Multibyte strings handling
Provides
None
Conflicts
None
Replaces
- zendframework/zendframework1: >=1.12.20
- 1.27.1
- 1.27.0
- 1.26.1
- 1.26.0
- 1.25.3
- 1.25.2
- 1.25.1
- 1.25.0
- 1.24.5
- 1.24.4
- 1.24.3
- 1.24.2
- 1.24.1
- 1.24.0
- 1.23.5
- 1.23.4
- 1.23.3
- 1.23.2
- 1.23.0
- 1.22.1
- 1.22.0
- 1.21.4
- 1.21.3
- 1.21.2
- 1.21.1
- 1.21.0
- 1.20.2
- 1.20.1
- 1.20.0
- 1.19.5
- 1.19.4
- 1.19.3
- 1.19.2
- 1.19.1
- 1.19.0
- 1.18.11
- 1.18.10
- 1.18.9
- 1.18.8
- 1.18.7
- 1.18.6
- 1.18.5
- 1.18.4
- 1.18.3
- 1.18.2
- 1.18.1
- 1.18
- 1.17.2
- 1.17.1
- 1.17.0
- 1.16.2
- 1.16.1
- 1.16.0
- 1.15.2
- 1.15.1
- 1.15.0
- 1.14.6
- 1.14.5
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.1
- 1.13.0
- dev-master / 1.12.x-dev
- 1.12.20
- 1.12.19
- 1.12.18
- 1.12.17
- 1.12.16
- 1.12.15
- 1.12.14
- 1.12.13
- 1.12.12
- 1.12.11
- 1.12.10
- 1.12.9
- 1.12.8
- 1.12.7
- 1.12.6
- 1.12.5
- 1.12.4
- 1.12.3
- 1.12.2
- 1.12.1
- 1.12.0
This package is auto-updated.
Last update: 2026-11-12 17:49:57 UTC
README
Thanks to WebTigers for the logo
Zend Framework 1 now for PHP 8.4!
Classic ZF1 Reborn
Zend may have abandoned the original Zend Framework, but the global Zend Framework Community has not! Since Zend sentenced ZF1 to EOL, the Zend Framework community around the globe has continued to work and build on what we consider to be one of the best PHP frameworks of all time. Framework is supported and tested on PHP 7.4 up to 8.4. PHP 8.5 is part of the regular test suite as well, but may still show deprecation notices; PHP 8.6 is tested as experimental.
ZF1-Future Sponsors
Products and Projects built with ZF1-Future:
Creators of the Tiger Development Platform featuring ZF1-Future
Creators of Seiden PHP+ for IBM i featuring ZF1-Future
ZF1 is Now Version 1.27!
Over 250 updates and bug fixes since 1.12!
The ZF1 community has been hard at work updating Zend Framework with all of the latest features of 8.4.
Documentation
New ZF1-Future Manual: ZF1-Future Docs
Original Docs
The original docs can be found here: https://framework.zend.com/manual/1.12/en/manual.html
Installation
Installable through git clone or through
composer require shardj/zf1-future https://packagist.org/packages/shardj/zf1-future
Composer is the recommended way. If you install from git or from a release archive without Composer, add the library directory to your include_path and make sure the ctype and mbstring extensions are enabled. The Symfony polyfills from composer.json are not loaded in that case.
System Requirements
ZF1 Future runs on any version of PHP between 7.4 and 8.4. PHP 8.5 is tested as well and works in practice, but is not officially supported yet (see the known issues below); PHP 8.6 is experimental (see the test matrix in .github/workflows/phpunit.yml).
License
The files in this archive are released under the Zend Framework license. You can find a copy of this license in LICENSE.txt.
Related Projects
- ZF1 Extras Future
- ZF1s - Another community supported continuation of ZF1, with a focus on splitting the frameworks original components into individual packages
Mail: OAuth 2.0 (XOAUTH2) for Gmail and Microsoft 365
Since 1.26.0 Zend_Mail authenticates with an OAuth 2.0 access token where a password is no longer accepted: 'auth' => 'xoauth2' with username and accessToken in Zend_Mail_Transport_Smtp, and accessToken instead of password in Zend_Mail_Storage_Imap / Zend_Mail_Storage_Pop3. Obtaining and refreshing the token is up to the application (e.g. with league/oauth2-google or thenetworg/oauth2-azure).
Security
unserialize()and CVE-2020-29312. The CVE describes no specific flaw in this library (it names a non-existent version 3.1.3, gives no affected class and no reference, and is marked as disputed by NVD); it restates thatunserialize()of untrusted data is unsafe in PHP, whatever classes are loaded. ZF1-Future itself never unserializes request data. Where it unserializes data it wrote itself (cache metadata, locale and date caches, OpenID storage, Lucene index files) it passesallowed_classestounserialize()since 1.26.0, so no object can be instantiated from such a file. Cache content stored withautomatic_serialization,Zend_Serializer, sessions and the priority queues keep unserializing objects, because that is what they are for. In your application: never callunserialize()(orZend_Serializer::unserialize()) on data a user can influence; use JSON for data exchange; for your own serialized data use theunserialize_class_whitelistoption ofZend_Serializer_Adapter_PhpSerializeand/or an HMAC. See #341
Known issues and solutions
Bootstrap error: Unable to resolve plugin "useragent"; no corresponding plugin with that name
Fixed in 1.26.0 (#407). On older versions the resource file has to be renamed toZend/Application/Resource/Useragent.php, see #92Zend_Db_Adapter_Pdo_Mssql: rows of a query with an offset but without ORDER BY (limit($count, $offset)) carry the columnZEND_DB_ROWNUMin addition to the selected columns. Such a query numbers the rows withROW_NUMBER(), which works on SQL Server 2005 and later;OFFSET ... FETCH, which returns only the selected columns, needs SQL Server 2012. The SQL Server adapters are planned to change toOFFSET ... FETCHin 1.28.- PHP 8.4:
Zend_Session::setOptions()(or theresources.sessionoptions ofZend_Application) withsid_lengthorsid_bits_per_charactertriggers PHP's deprecation notice, because PHP 8.4 deprecates changingsession.sid_lengthandsession.sid_bits_per_character. Remove these options; PHP 9 drops the settings. - PHP 8.4:
Zend_Db_Adapter_Pdo_Pgsqlreturns the values ofrealanddouble precisioncolumns as float instead of string, because pdo_pgsql does so since PHP 8.4. Code that compares such values as strings (===) has to cast them, or setPDO::ATTR_STRINGIFY_FETCHES => truein thedriver_optionsof the adapter to get strings as before. - PHP 8.4:
Zend_Soap_ServerturnsE_USER_ERRORraised in a service method into a SOAP fault, but PHP 8.4 deprecatestrigger_error()withE_USER_ERROR. Throw aSoapFaultor an exception in the service method instead. - PHP 8.5:
Zend_Soap_Clientcannot be loaded, because the signature ofZend_Soap_Client_Common::__doRequest()is incompatible withSoapClient::__doRequest()of PHP 8.5 (fatal error). The fix changes the signature for subclasses and is planned for 1.28. Zend_Test_PHPUnit_Db(database fixtures for PHPUnit) is not supported. It extends the DbUnit classesPHPUnit_Extensions_Database_*, which only exist for PHPUnit 5 and older; the component is shipped as is, without tests, and is not adapted to the DbUnit forks for current PHPUnit versions (their classes are namespaced and typed). Applications that need DbUnit have to use such a fork directly, see #412
Deprecated components
The following adapters and backends depend on technologies that are not available on any supported PHP version. They are kept for now, trigger an E_USER_DEPRECATED notice when instantiated, are not covered by the test suite and will be removed in a future version:
Zend_Queue_Adapter_Memcacheq(MemcacheQ, unmaintained since 2009; useZend_Queue_Adapter_DborZend_Queue_Adapter_Activemq)Zend_Filter_Encrypt_Mcrypt(ext/mcrypt was removed in PHP 7.2; useZend_Filter_Encrypt_Openssl)Zend_Filter_Compress_Rar(no rar extension for current PHP versions)Zend_Cache_Backend_Sqlite(needs the SQLite 2 extension of PHP 5),Zend_Cache_Backend_Xcache,Zend_Cache_Backend_ZendPlatform,Zend_Cache_Backend_ZendServer_Disk,Zend_Cache_Backend_ZendServer_ShMem,Zend_Cache_Backend_WinCacheZend_Serializer_Adapter_Wddx(ext/wddx was removed in PHP 7.4)Zend_Http_UserAgent_Features_Adapter_TeraWurfl,Zend_Http_UserAgent_Features_Adapter_DeviceAtlasZend_Queue_Adapter_PlatformJobQueueandZend_Queue_Message_PlatformJob(Zend Platform and its Job Queue are discontinued; useZend_Queue_Adapter_DborZend_Queue_Adapter_Activemq)Zend_Service_Ebay(the eBay Finding API, the only API it supports, was decommissioned on 2025-02-05)
The following components talk to services or use formats that no longer exist. They are deprecated in the same way:
Zend_Amfand the serializer adaptersZend_Serializer_Adapter_Amf0andZend_Serializer_Adapter_Amf3(AMF is the data format of Adobe Flash Player, which reached its end of life on 2020-12-31)Zend_Gdata(Google shut down the Google Data APIs it implements and the ClientLogin and AuthSub authentication)Zend_Cloud(the Simple Cloud API is not developed any further; use the SDK of the cloud provider)Zend_Service_ReCaptcha,Zend_Captcha_ReCaptchaandZend_Form_Decorator_Captcha_ReCaptcha(reCAPTCHA v1 was shut down on 2018-03-31; useZend_Captcha_SiteVerifyandZend_Service_SiteVerify)Zend_Service_Amazon,Zend_Service_Amazon_Queryand their result classes (the Product Advertising API 4.0 was shut down in 2020);Zend_Service_Amazon_Ec2,_S3,_Sqsand_SimpleDbare not affectedZend_Service_Delicious(the Delicious API was shut down on 2017-06-15)Zend_Service_Yahoo(the Yahoo! Search web services were shut down)Zend_Service_Audioscrobbler(the Audioscrobbler 1.0 web services were shut down in favour of the Last.fm API 2.0)