Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX PT-11343 #14

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d0c83fd
Apply Plesk patch and update composer.json
Mar 28, 2018
5f2277a
ZF1 minification script
Apr 2, 2018
e3dcdea
Explicitly check for `$keyValues` whether they are array or not
May 18, 2018
b11aa8c
Merge pull request #1 from mlapkin/handle-key-values-explicitly
mavericknsk May 21, 2018
3ca926d
Fix file upload validation warning
May 31, 2018
f075839
Merge pull request #2 from plesk/fix-validation-warning
mavericknsk May 31, 2018
244610a
Fix continue in switch statement
Jan 14, 2019
92c6e10
Merge pull request #3 from ova777/1.12.17-plesk
rybalov Jan 15, 2019
db9e44a
Fix for PHP Notice: compact(): Undefined variable: extras
mrsombre Mar 22, 2019
3532cb8
Merge pull request #4 from mrsombre/php73-fix
rybalov Mar 28, 2019
fe6757b
Update phpunit for php7.3 support (#5)
mrsombre Mar 28, 2019
79a0578
Update README.md
xgin Mar 28, 2019
36ed2de
Fixes for PHP 7.3 support
Mar 29, 2019
29d2f16
Merge pull request #7 from ova777/1.12.17-plesk
rybalov Mar 29, 2019
d5f1163
PHP 7.4 support. Get rid workaround ZF-960
gold22 Jul 16, 2020
1044dd7
PHP 7.4 support. Replace curly brackets with square ones
gold22 Jul 16, 2020
0f1809c
Merge pull request #9 from gold22/1.12.17-plesk
gold22 Jul 16, 2020
de24c4b
remove each() for php8
Sep 28, 2021
96078fb
Merge pull request #10 from vdiomidov/1.12.17-plesk
vdiomidov Sep 29, 2021
bf30272
PHP 8.0 support. Get rid of using $php_errormsg
gold22 Nov 14, 2022
d35337a
PHP 8.0 support. Fix $key argument of array_walk_recursive's callback
gold22 Nov 14, 2022
7ec50d3
PHP 8.0 support. Fix comparison operator
gold22 Nov 16, 2022
9fac0ad
PHP 8.0 support. Avoid libxml_disable_entity_loader() calls
gold22 Nov 24, 2022
8a274ea
Zend_Http_Client should process HTTP/2 requests
Nov 24, 2022
e50f5d8
PHP 8.0 support. Get rid of using $php_errormsg
gold22 Nov 30, 2022
c6f8892
Merge pull request #12 from plesk/1.12.17-plesk-next
gold22 Nov 30, 2022
bacaf47
Change escape flag
Dec 12, 2022
fc83554
Merge pull request #13 from plesk/1.12.17-plesk-next
espitsyna Dec 13, 2022
f28362c
PHP 8.2 support. Fix string interpolation
gold22 Apr 27, 2023
2e18789
PHP 8.2 support. Fix array offset syntax
gold22 Apr 27, 2023
c7990e2
PHP 8.2 support. Define return types for ArrayAccess::offsetGet() imp…
gold22 Apr 27, 2023
088beb2
PHP 8.2 support. Define return type for FilterIterator::accept() impl…
gold22 Apr 27, 2023
d5ce1c0
PHP 8.2 support. Fix Zend_Pdf_Element_Reference::__construct() arguments
gold22 Apr 27, 2023
63df4ad
PHP 8.2 support. Fix reflection classes
gold22 Apr 27, 2023
55c9a03
PHP 8.2 support. Fix return type of RecursiveIterator::getChildren() …
gold22 Apr 27, 2023
49de896
PHP 8.2 support. Fix conditional expression
gold22 Apr 27, 2023
329918d
PHP 8.2 support. Fix optional parameters
gold22 Apr 27, 2023
ae22569
PHP 8.2 support. Fix return types
gold22 May 2, 2023
d585b3e
PHP 8.2 support. Fix return types
gold22 May 2, 2023
8168e25
PHP 8.2 support. Allow dynamic properties
gold22 May 2, 2023
d320746
PHP 8.2 support. Convert to string explicitly
gold22 May 2, 2023
a9cd23e
PHP 8.2 support. Fix retyrn type of Zend_Db_Table_Row_Abstract::offse…
gold22 May 3, 2023
67d05a1
PHP 8.2 support. Fix dynamic variables
gold22 May 11, 2023
bda9824
PHP 8.2 support. Process null value
May 11, 2023
d212c33
PHP 8.2 support. Convert explicitly null values to empty strings
gold22 May 12, 2023
e419deb
PHP 8.2 support. Convert explicitly null value to empty string
gold22 May 12, 2023
1e8d6f9
PHP 8.2 support. Check null value explicitly
gold22 May 18, 2023
167fb28
PHP 8.2 support. Avoid passing null value to preg_replace()
gold22 May 30, 2023
30cb74c
BUGFIX PT-11343
vchernikovplesk Jun 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
181 changes: 16 additions & 165 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,173 +2,24 @@

Welcome to the Zend Framework 1.12 Release!

Master: [![Build Status](https://api.travis-ci.org/zendframework/zf1.png?branch=master)](https://travis-ci.org/zendframework/zf1)
USAGE
=====

RELEASE INFORMATION
===================
```
composer require plesk/zf1
```

Zend Framework 1.12.17dev Release.
Released on MMM DD, YYYY.
https://packagist.org/packages/plesk/zf1

IMPORTANT FIXES FOR 1.12.17
---------------------------

See http://framework.zend.com/changelog for full details.

NEW FEATURES
============

Zend_Loader changes
-------------------

A number of autoloaders and autoloader facilities were back ported from
ZF2 to provide performant alternatives to those already available in the
1.X releases. These include: Zend_Loader_StandardAutoloader, which
improves on Zend_Loader_Autoloader by allowing the ability to specify a
specific path to associate with a vendor prefix or namespace;
Zend_Loader_ClassMapAutoloader, which provides the ability to use lookup
tables for autoloading (which are typically the fastest possible way to
autoload); and Zend_Loader_AutoloaderFactory, which can both create and
update autoloaders for you, as well as register them with
spl_autoload_register().

The Zend_Loader changes were back ported from ZF2 by Matthew Weier
O’Phinney

Zend_EventManager
-----------------

Zend_EventManager is a component that allows you to attach and detach
listeners to named events, both on a per-instance basis as well as via
shared collections; trigger events; and interrupt execution of
listeners.

Zend_EventManager was back ported from ZF2 by Matthew Weier O’Phinney

Zend_Http_UserAgent_Features_Adapter_Browscap
---------------------------------------------

This class provides a features adapter that calls get_browser() in order
to discover mobile device capabilities to inject into UserAgent device
instances.

Browscap (http://browsers.garykeith.com/) is an open project dedicated
to collecting an disseminating a “database” of browser capabilities. PHP
has built-in support for using these files via the get_browser()
function. This function requires that your php.ini provides a browscap
entry pointing to the PHP-specific php_browscap.ini file which is
available at http://browsers.garykeith.com/stream.asp?PHP_BrowsCapINI.

Zend_Http_UserAgent_Features_Adapter_Browscap was created by Matthew
Weier O’Phinney

Zend_Mobile_Push
----------------

Zend_Mobile_Push is a component for implementing push notifications for
the 3 major push notification platforms (Apple (Apns), Google (C2dm) and
Microsoft (Mpns).

Zend_Mobile_Push was contributed by Mike Willbanks.

Zend_Gdata_Analytics
--------------------

Zend_Gdata_Analytics is an extension to Zend_Gdata to allow interaction
with Google’s Analytics Data Export API. This extension does not
encompass any major changes in the overall operation of Zend_Gdata
components.

Zend_Gdata_Analytics was contributed by Daniel Hartmann.

Removed features
================

Zend_Http_UserAgent_Features_Adapter_WurflApi
---------------------------------------------

Due to the changes in licensing of WURFL, we have removed the WurflApi
adapter. We will be providing the WurflApi adapter to ScientiaMobile so
that users of WURFL will still have that option.

Bug Fixes
=========

In addition, over 200 reported issues in the tracker have been fixed.
We’d like to particularly thank Adam Lundrigan, Frank Brückner and
Martin Hujer for their efforts in making this happen. Thanks also to the
many people who ran the ZF1 unit tests and reported their results!

For a complete list of closed issues beginning with 1.12.3, visit:

* https://github.com/zendframework/zf1/issues?labels=&milestone=&page=1&state=closed
* http://framework.zend.com/changelog/

MIGRATION NOTES
===============

A detailed list of migration notes may be found at:

http://framework.zend.com/manual/en/migration.html

SYSTEM REQUIREMENTS
===================

Zend Framework requires PHP 5.2.11 or later. Please see our reference
guide for more detailed system requirements:

http://framework.zend.com/manual/en/requirements.html

INSTALLATION
============

Please see [INSTALL.md](INSTALL.md).

REPOSITORY HISTORY
==================

This repository was created based on the release-1.12 branch of a Subversion
repository, http://framework.zend.com/svn/framework/standard/. It contains a
subset of the project history, dating from between the 1.5.0 and 1.6.0 releases,
and only contains the tags for the 1.12 series. If you would like an older
version, you may access the subversion repository linked above, or download an
older version from http://framework.zend.com/downloads/archives.

CONTRIBUTING
============

Please see [README-GIT.md](README-GIT.md) and
[DEVELOPMENT_README.md](DEVELOPMENT_README.md).

QUESTIONS AND FEEDBACK
HOW TO PREPARE RELEASE
======================

Online documentation can be found at http://framework.zend.com/manual.
Questions that are not addressed in the manual should be directed to the
appropriate mailing list:

- http://framework.zend.com/wiki/display/ZFDEV/Mailing+Lists

If you find code in this release behaving in an unexpected manner or
contrary to its documented behavior, please create an issue in the Zend
Framework issue tracker at:

- https://github.com/zendframework/zf1/issues

If you would like to be notified of new releases, you can subscribe to
the fw-announce mailing list by sending a blank message to:

- [email protected].

LICENSE
=======

The files in this archive are released under the Zend Framework license.
You can find a copy of this license in [LICENSE.txt](LICENSE.txt).

ACKNOWLEDGEMENTS
================

The Zend Framework team would like to thank all the contributors to the Zend
Framework project, our corporate sponsor, and you, the Zend Framework user.
Please visit us sometime soon at http://framework.zend.com.
```
git checkout -b 1.12.17-plesk-min-4
docker run -it -v $(pwd):/root/ ubuntu /root/build.sh
git add .
git commit
git push --set-upstream origin 1.12.17-plesk-min-4
git tag 1.12.17-patch4
git push origin 1.12.17-patch4
```
40 changes: 40 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/bin/bash
### Copyright 1999-2017. Plesk International GmbH. All rights reserved.

cd `dirname $0`

rm -rf CONTRIBUTING.md
rm -rf DEVELOPMENT_README.md
rm -rf INSTALL.md
rm -rf README-GIT.md
rm -rf README.md
rm -rf Vagrantfile
rm -rf bin
rm -rf build.sh
rm -rf demos
rm -rf documentation
rm -rf puppet
rm -rf resources
rm -rf tests

pushd library
echo "Remove some unused components..."
rm -rf Zend/Amf
rm -rf Zend/Barcode
rm -rf Zend/Captcha
rm -rf Zend/Cloud
rm -rf Zend/CodeGenerator
rm -rf Zend/Dojo
rm -rf Zend/Measure
rm -rf Zend/Mobile
rm -rf Zend/Pdf
rm -rf Zend/Search
rm -rf Zend/Service
rm -rf Zend/Tool

echo "Remove require_once..."
find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' \
-not -wholename '*/Application.php' -not -wholename '*/Loader.php' \
-print0 | \
xargs -0 sed --regexp-extended -i -e 's/(require_once)/;\/\/ \1/g'
popd
22 changes: 13 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zendframework/zendframework1",
"description": "Zend Framework 1",
"name": "plesk/zf1",
"description": "Zend Framework 1 (Plesk)",
"type": "library",
"keywords": [
"framework",
Expand All @@ -9,7 +9,7 @@
"homepage": "http://framework.zend.com/",
"license": "BSD-3-Clause",
"require": {
"php": ">=5.2.11"
"php": ">=5.6"
},
"autoload": {
"psr-0": {
Expand All @@ -19,19 +19,23 @@
"include-path": [
"library/"
],
"config": {
"bin-dir": "bin"
},
"extra": {
"branch-alias": {
"dev-master": "1.12.x-dev"
}
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"phpunit/dbunit": "1.3.*"
"phpunit/phpunit": "^4",
"phpunit/dbunit": "*"
},
"archive": {
"exclude": ["/demos", "/documentation", "/tests"]
"exclude": [
"/demos",
"/documentation",
"/tests"
]
},
"scripts": {
"test": "phpunit"
}
}
2 changes: 1 addition & 1 deletion demos/Zend/Gdata/BooksBrowser/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function echoBookList($feed)
$thumbnail_img
</div></td>
<td width="100%">
<a href="${preview}">$title</a><br>
<a href="{$preview}">$title</a><br>
$creators<br>
$preview_link
</td></tr>
Expand Down
26 changes: 13 additions & 13 deletions demos/Zend/Gdata/YouTubeVideoApp/operations.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,10 @@ function createUploadForm($videoTitle, $videoDescription, $videoCategory, $video
}

print <<< END
<br /><form action="${postUrl}?nexturl=${nextUrl}"
<br /><form action="{$postUrl}?nexturl={$nextUrl}"
method="post" enctype="multipart/form-data">
<input name="file" type="file"/>
<input name="token" type="hidden" value="${tokenValue}"/>
<input name="token" type="hidden" value="{$tokenValue}"/>
<input value="Upload Video File" type="submit" />
</form>
END;
Expand Down Expand Up @@ -747,9 +747,9 @@ function echoVideoPlayer($videoId)
print <<<END
<b>$videoTitle</b><br />
<object width="425" height="350">
<param name="movie" value="${videoUrl}&autoplay=1"></param>
<param name="movie" value="{$videoUrl}&autoplay=1"></param>
<param name="wmode" value="transparent"></param>
<embed src="${videoUrl}&autoplay=1" type="application/x-shockwave-flash" wmode="transparent"
<embed src="{$videoUrl}&autoplay=1" type="application/x-shockwave-flash" wmode="transparent"
width="425" height="350"></embed>
</object>
END;
Expand Down Expand Up @@ -831,15 +831,15 @@ function echoVideoMetadata($entry)
}
$flashUrl = htmlspecialchars(findFlashUrl($entry));
print <<<END
<b>Title:</b> ${title}<br />
<b>Description:</b> ${description}<br />
<b>Author:</b> <a href="${authorUrl}">${authorUsername}</a><br />
<b>Tags:</b> ${tags}<br />
<b>Duration:</b> ${duration} seconds<br />
<b>View count:</b> ${viewCount}<br />
<b>Rating:</b> ${rating} (${numRaters} ratings)<br />
<b>Flash:</b> <a href="${flashUrl}">${flashUrl}</a><br />
<b>Watch page:</b> <a href="${watchPage}">${watchPage}</a> <br />
<b>Title:</b> {$title}<br />
<b>Description:</b> {$description}<br />
<b>Author:</b> <a href="{$authorUrl}">{$authorUsername}</a><br />
<b>Tags:</b> {$tags}<br />
<b>Duration:</b> {$duration} seconds<br />
<b>View count:</b> {$viewCount}<br />
<b>Rating:</b> {$rating} ({$numRaters} ratings)<br />
<b>Flash:</b> <a href="{$flashUrl}">{$flashUrl}</a><br />
<b>Watch page:</b> <a href="{$watchPage}">{$watchPage}</a> <br />
END;
}

Expand Down
30 changes: 15 additions & 15 deletions demos/Zend/Gdata/YouTubeVideoBrowser/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ function echoVideoPlayer($videoId)
print <<<END
<b>$videoTitle</b><br />
<object width="425" height="350">
<param name="movie" value="${videoUrl}&autoplay=1"></param>
<param name="movie" value="{$videoUrl}&autoplay=1"></param>
<param name="wmode" value="transparent"></param>
<embed src="${videoUrl}&autoplay=1" type="application/x-shockwave-flash" wmode="transparent"
<embed src="{$videoUrl}&autoplay=1" type="application/x-shockwave-flash" wmode="transparent"
width=425" height="350"></embed>
</object>
END;
Expand Down Expand Up @@ -175,15 +175,15 @@ function echoVideoMetadata($entry)
$numRaters = $entry->rating->numRaters;
$flashUrl = findFlashUrl($entry);
print <<<END
<b>Title:</b> ${title}<br />
<b>Description:</b> ${description}<br />
<b>Author:</b> <a href="${authorUrl}">${authorUsername}</a><br />
<b>Tags:</b> ${tags}<br />
<b>Duration:</b> ${duration} seconds<br />
<b>View count:</b> ${viewCount}<br />
<b>Rating:</b> ${rating} (${numRaters} ratings)<br />
<b>Flash:</b> <a href="${flashUrl}">${flashUrl}</a><br />
<b>Watch page:</b> <a href="${watchPage}">${watchPage}</a> <br />
<b>Title:</b> {$title}<br />
<b>Description:</b> {$description}<br />
<b>Author:</b> <a href="{$authorUrl}">{$authorUsername}</a><br />
<b>Tags:</b> {$tags}<br />
<b>Duration:</b> {$duration} seconds<br />
<b>View count:</b> {$viewCount}<br />
<b>Rating:</b> {$rating} ({$numRaters} ratings)<br />
<b>Flash:</b> <a href="{$flashUrl}">{$flashUrl}</a><br />
<b>Watch page:</b> <a href="{$watchPage}">{$watchPage}</a> <br />
END;
}

Expand All @@ -203,11 +203,11 @@ function echoVideoList($feed)
$videoTitle = $entry->mediaGroup->title;
$videoDescription = $entry->mediaGroup->description;
print <<<END
<tr onclick="ytvbp.presentVideo('${videoId}')">
<td width="130"><img src="${thumbnailUrl}" /></td>
<tr onclick="ytvbp.presentVideo('{$videoId}')">
<td width="130"><img src="{$thumbnailUrl}" /></td>
<td width="100%">
<a href="#">${videoTitle}</a>
<p class="videoDescription">${videoDescription}</p>
<a href="#">{$videoTitle}</a>
<p class="videoDescription">{$videoDescription}</p>
</td>
</tr>
END;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function randomString()

for ($i = 0; $i < $stringLen; $i ++) {
$pos = (rand() % $poolLen);
$ret .= $pool{$pos};
$ret .= $pool[$pos];
}

return $ret;
Expand Down
Loading