Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/zendframework/zf2 into ho…
Browse files Browse the repository at this point in the history
…tfix/5144
  • Loading branch information
marc-mabe committed May 20, 2014
2 parents d81384d + 42ad2cc commit e2481f4
Show file tree
Hide file tree
Showing 64 changed files with 268 additions and 34 deletions.
3 changes: 3 additions & 0 deletions library/Zend/Authentication/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Barcode/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Cache/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Captcha/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Code/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Config/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Console/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Crypt/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
5 changes: 4 additions & 1 deletion library/Zend/Db/Adapter/Driver/Pdo/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ public function connect()
if (isset($port)) {
$dsn[] = "port={$port}";
}
if (isset($charset)) {
if (isset($charset) && $pdoDriver != 'pgsql') {
$dsn[] = "charset={$charset}";
}
break;
Expand All @@ -319,6 +319,9 @@ public function connect()
try {
$this->resource = new \PDO($dsn, $username, $password, $options);
$this->resource->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION);
if (isset($charset) && $pdoDriver == 'pgsql') {
$this->resource->exec('SET NAMES ' . $this->resource->quote($charset));
}
$this->driverName = strtolower($this->resource->getAttribute(\PDO::ATTR_DRIVER_NAME));
} catch (\PDOException $e) {
$code = $e->getCode();
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Db/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Debug/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Di/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Dom/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Escaper/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/EventManager/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Feed/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/File/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Filter/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
7 changes: 5 additions & 2 deletions library/Zend/Filter/Digits.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,17 @@ class Digits extends AbstractFilter
*
* Returns the string $value, removing all but digit characters
*
* If the value provided is non-scalar, the value will remain unfiltered
* If the value provided is not integer, float or string, the value will remain unfiltered
*
* @param string $value
* @return string|mixed
*/
public function filter($value)
{
if (!is_scalar($value)) {
if (is_int($value)) {
return (string) $value;
}
if (! (is_float($value) || is_string($value))) {
return $value;
}
$value = (string) $value;
Expand Down
4 changes: 3 additions & 1 deletion library/Zend/Filter/StringTrim.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ public function __construct($charlistOrOptions = null)
*/
public function setCharList($charList)
{
if (empty($charList)) {
if (! strlen($charList)) {
$charList = null;
}

$this->options['charlist'] = $charList;

return $this;
}

Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Form/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
2 changes: 2 additions & 0 deletions library/Zend/Form/Element/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
namespace Zend\Form\Element;

use DateInterval;
use DateTimezone;
use Zend\Form\Element;
use Zend\Form\Element\DateTime as DateTimeElement;
use Zend\Validator\DateStep as DateStepValidator;
Expand Down Expand Up @@ -50,6 +51,7 @@ protected function getStepValidator()
return new DateStepValidator(array(
'format' => $format,
'baseValue' => $baseValue,
'timezone' => new DateTimezone('UTC'),
'step' => new DateInterval("P{$stepValue}D"),
));
}
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Http/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/I18n/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/InputFilter/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Json/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Ldap/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Loader/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Log/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Mail/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Math/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Memory/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Mime/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/ModuleManager/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Mvc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Navigation/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Paginator/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Permissions/Acl/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Permissions/Rbac/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/ProgressBar/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Serializer/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Server/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/ServiceManager/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Session/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
2 changes: 1 addition & 1 deletion library/Zend/Session/SaveHandler/MongoDBOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class MongoDBOptions extends AbstractOptions
* @see http://php.net/manual/en/mongocollection.save.php
* @var string
*/
protected $saveOptions = array('safe' => true);
protected $saveOptions = array('w' => 1);

/**
* Name field
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Soap/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ public function addComplexType($type)
));
}

if (($soapType = $this->scanRegisteredTypes($type)) !== null) {
$class = new ReflectionClass($type);
$phpType = $class->getName();

if (($soapType = $this->scanRegisteredTypes($phpType)) !== null) {
return $soapType;
}

$dom = $this->getContext()->toDomDocument();
$class = new ReflectionClass($type);

$soapTypeName = $this->getContext()->translateType($type);
$soapTypeName = $this->getContext()->translateType($phpType);
$soapType = Wsdl::TYPES_NS . ':' . $soapTypeName;

// Register type here to avoid recursion
$this->getContext()->addType($type, $soapType);

$this->getContext()->addType($phpType, $soapType);

$defaultProperties = $class->getDefaultProperties();

Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Stdlib/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Tag/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Test/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,11 @@ public function url($url, $method = HttpRequest::METHOD_GET, $params = array())
$query = array_merge($query, $params);
} elseif ($method == HttpRequest::METHOD_PUT) {
if (count($params) != 0) {
array_walk($params,
function (&$item, $key) { $item = $key . '=' . $item; }
array_walk(
$params,
function (&$item, $key) {
$item = $key . '=' . $item;
}
);
$content = implode('&', $params);
$request->setContent($content);
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/Text/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Uri/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Validator/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/Version/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
3 changes: 3 additions & 0 deletions library/Zend/View/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
16 changes: 8 additions & 8 deletions library/Zend/View/Helper/HeadLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
* @see http://www.w3.org/TR/xhtml1/dtds.html
*
* Creates the following virtual methods:
* @method HeadLink appendStylesheet($href, $media, $conditionalStylesheet, $extras)
* @method HeadLink offsetSetStylesheet($index, $href, $media, $conditionalStylesheet, $extras)
* @method HeadLink prependStylesheet($href, $media, $conditionalStylesheet, $extras)
* @method HeadLink setStylesheet($href, $media, $conditionalStylesheet, $extras)
* @method HeadLink appendAlternate($href, $type, $title, $extras)
* @method HeadLink offsetSetAlternate($index, $href, $type, $title, $extras)
* @method HeadLink prependAlternate($href, $type, $title, $extras)
* @method HeadLink setAlternate($href, $type, $title, $extras)
* @method HeadLink appendStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())
* @method HeadLink offsetSetStylesheet($index, $href, $media = 'screen', $conditionalStylesheet = '', $extras = array())
* @method HeadLink prependStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())
* @method HeadLink setStylesheet($href, $media = 'screen', $conditionalStylesheet = '', $extras = array())
* @method HeadLink appendAlternate($href, $type, $title, $extras = array())
* @method HeadLink offsetSetAlternate($index, $href, $type, $title, $extras = array())
* @method HeadLink prependAlternate($href, $type, $title, $extras = array())
* @method HeadLink setAlternate($href, $type, $title, $extras = array())
*/
class HeadLink extends Placeholder\Container\AbstractStandalone
{
Expand Down
3 changes: 3 additions & 0 deletions library/Zend/XmlRpc/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# CONTRIBUTING

Please don't open pull requests against this repository, please use https://github.com/zendframework/zf2.
Loading

0 comments on commit e2481f4

Please sign in to comment.