
Warning
Security release 1.27.2: upgrade as soon as possible.
Version 1.27.2 fixes an SQL injection in Zend_Db_Select::order() and group() that affects applications passing user input (e.g. a sort column from the URL) to these methods, also through the $order argument of Zend_Db_Table fetchAll() / fetchRow(). All earlier versions are affected.
The fix changes behaviour: a string that looks like an SQL function call, such as order('RAND()') or group('YEAR(created)'), now throws an exception; pass new Zend_Db_Expr('RAND()') instead. If the upgrade breaks an application, Zend_Db_Select::setStringExpressionsAllowed(true) in the bootstrap restores the previous behaviour until the calls are rewritten. Use it only when no user input reaches these methods. See BREAKING-CHANGES.md.
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.5; PHP 8.6 is tested as experimental.
Creators of the Tiger Development Platform featuring ZF1-Future
Creators of Seiden PHP+ for IBM i featuring ZF1-Future
The ZF1 community has been hard at work updating Zend Framework with all of the latest features of 8.5.
New ZF1-Future Manual: ZF1-Future Docs
The original docs can be found here: https://framework.zend.com/manual/1.12/en/manual.html
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.
ZF1 Future runs on any version of PHP between 7.4 and 8.5. PHP 8.6 is experimental (see the test matrix in .github/workflows/phpunit.yml).
The files in this archive are released under the Zend Framework license. You can find a copy of this license in LICENSE.txt.
- ZF1 Extras Future
- ZF1s - Another community supported continuation of ZF1, with a focus on splitting the frameworks original components into individual packages
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).
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
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 #92- 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. 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
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_Filter_Encrypt_Mcrypt(ext/mcrypt was removed in PHP 7.2; useZend_Filter_Encrypt_Openssl)Zend_Cache_Backend_ZendServer_Disk,Zend_Cache_Backend_ZendServer_ShMem,Zend_Cache_Backend_WinCacheZend_Http_UserAgent_Features_Adapter_DeviceAtlasZend_Service_Ebay(the eBay Finding API, the only API it supports, was decommissioned on 2025-02-05)
The following components talk to services that no longer exist. They are deprecated in the same way:
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_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 affected

