forked from FriendsOfSymfony1/doctrine1
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged remote-tracking branch 'upstream/master'
- Loading branch information
Showing
68 changed files
with
537 additions
and
414 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM buildpack-deps:jessie | ||
|
||
ENV PHP_VERSION 5.3.29 | ||
|
||
# php 5.3 needs older autoconf | ||
RUN set -eux; \ | ||
\ | ||
apt-get update; \ | ||
apt-get install -y \ | ||
curl \ | ||
autoconf2.13 \ | ||
; \ | ||
rm -r /var/lib/apt/lists/*; \ | ||
\ | ||
curl -sSLfO http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb; \ | ||
curl -sSLfO http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb; \ | ||
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb; \ | ||
dpkg -i bison_2.7.1.dfsg-1_amd64.deb; \ | ||
rm *.deb; \ | ||
\ | ||
curl -sSLf "https://php.net/get/php-$PHP_VERSION.tar.bz2/from/this/mirror" -o php.tar.bz2; \ | ||
echo 'c4e1cf6972b2a9c7f2777a18497d83bf713cdbecabb65d3ff62ba441aebb0091 php.tar.bz2' | sha256sum -cw --status; \ | ||
\ | ||
mkdir -p /usr/src/php; \ | ||
tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1; \ | ||
rm php.tar.bz2*; \ | ||
\ | ||
cd /usr/src/php; \ | ||
./buildconf --force; \ | ||
./configure --disable-cgi \ | ||
$(command -v apxs2 > /dev/null 2>&1 && echo '--with-apxs2' || true) \ | ||
--with-pdo-mysql \ | ||
--with-zlib \ | ||
--enable-mbstring \ | ||
; \ | ||
make -j"$(nproc)"; \ | ||
make install; \ | ||
\ | ||
dpkg -r \ | ||
bison \ | ||
libbison-dev \ | ||
; \ | ||
apt-get purge -y --auto-remove \ | ||
autoconf2.13 \ | ||
; \ | ||
rm -r /usr/src/php | ||
|
||
CMD ["php", "-a"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM php:5.4-cli | ||
|
||
RUN docker-php-ext-install pdo | ||
RUN docker-php-ext-install pdo_mysql | ||
RUN docker-php-ext-install mbstring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
ARG PHP_TAG | ||
FROM php:${PHP_TAG} | ||
|
||
RUN docker-php-ext-install pdo | ||
RUN docker-php-ext-install pdo_mysql | ||
RUN docker-php-ext-install mbstring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
ARG PHP_VERSION | ||
FROM php:${PHP_VERSION}-cli | ||
|
||
RUN docker-php-ext-install pdo | ||
RUN docker-php-ext-install pdo_mysql | ||
RUN docker-php-ext-install mbstring | ||
|
||
# For consistent mime type file guesser | ||
RUN set -eux; \ | ||
distFilePath=`which file`; \ | ||
\ | ||
mv ${distFilePath} ${distFilePath}.dist; \ | ||
{ \ | ||
echo '#! /bin/sh -eu'; \ | ||
echo ''; \ | ||
echo "${distFilePath}"'.dist "$@" | sed -e s,application/x-pie-executable,application/x-executable,g'; \ | ||
} | tee ${distFilePath}; \ | ||
\ | ||
chmod +x ${distFilePath}; \ | ||
\ | ||
file /bin/ls --mime | grep application/x-executable; \ | ||
:; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,6 +52,8 @@ | |
* @version $Revision$ | ||
* @author Konsta Vesterinen <[email protected]> | ||
* @author Lukas Smith <[email protected]> (MDB2 library) | ||
* | ||
* @property Doctrine_Export $export | ||
*/ | ||
abstract class Doctrine_Connection extends Doctrine_Configurable implements Countable, IteratorAggregate, Serializable | ||
{ | ||
|
@@ -241,41 +243,31 @@ public function isConnected() | |
} | ||
|
||
/** | ||
* getOptions | ||
* | ||
* Get array of all options | ||
* | ||
* @return void | ||
* @return array<string, mixed> | ||
*/ | ||
public function getOptions() | ||
public function getOptions(): array | ||
{ | ||
return $this->options; | ||
} | ||
|
||
/** | ||
* getOption | ||
* | ||
* Retrieves option | ||
* | ||
* @param string $option | ||
* @return void | ||
* @return null|mixed | ||
*/ | ||
public function getOption($option) | ||
public function getOption(string $option) | ||
{ | ||
if (isset($this->options[$option])) { | ||
return $this->options[$option]; | ||
} | ||
} | ||
|
||
/** | ||
* setOption | ||
* | ||
* Set option value | ||
* | ||
* @param string $option | ||
* @return void | ||
* @return mixed | ||
*/ | ||
public function setOption($option, $value) | ||
public function setOption(string $option, $value) | ||
{ | ||
return $this->options[$option] = $value; | ||
} | ||
|
@@ -1545,8 +1537,8 @@ public function dropDatabase() | |
* which is always guaranteed to exist. Mysql: 'mysql', PostgreSQL: 'postgres', etc. | ||
* This value is set in the Doctrine_Export_{DRIVER} classes if required | ||
* | ||
* @param string $info | ||
* @return void | ||
* @param array $info | ||
* @return Doctrine_Connection | ||
*/ | ||
public function getTmpConnection($info) | ||
{ | ||
|
@@ -1569,7 +1561,7 @@ public function getTmpConnection($info) | |
$username = $this->getOption('username'); | ||
$password = $this->getOption('password'); | ||
|
||
$conn = $this->getManager()->openConnection(array($pdoDsn, $username, $password), 'doctrine_tmp_connection', false); | ||
$conn = $this->getManager()->openConnection([$pdoDsn, $username, $password], 'doctrine_tmp_connection', false); | ||
$conn->setOption('username', $username); | ||
$conn->setOption('password', $password); | ||
|
||
|
Oops, something went wrong.