-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
T13578 setup phalcon environment #13628
Changes from 215 commits
a9b83e8
de20ebc
03fd515
9f33d89
c735b43
16d29e3
3e67799
9b890f1
290f8f9
0547022
f798628
e7a146e
c46d939
d21e743
18233e7
db780d7
fb66086
8219bcd
963a8b1
5e830d0
25821d5
767501f
6c5652b
7002334
0490055
f55870f
10ec6a3
572ff1d
07a02a9
cd90931
b6fcae9
4ade42b
c559aa8
e2e26ab
0821765
ef83b9d
87cf9b8
646b2ac
7017cf9
16b21f0
a921ec8
6a10a1f
8fef029
03c5687
c4689a0
5d24380
5e36aec
71d440f
0b3f9f1
c6d0fa0
46a5c27
84bd1e3
988022c
ca3df2d
2281ed4
51fc9f6
4450b8a
b8134b8
9866abc
b15c450
e45a2f1
214b727
ebfabba
00c4c30
8383a9b
b283fda
5c94d3a
3a4e025
df2f8d3
876c40a
a9d24dc
ee03535
dc298ac
eca96ce
68f837b
55e6473
af00ae4
4f8d81a
ebe3d9c
e297b13
ed49b32
a139f78
fe9c0b1
72fbd31
d5b6a3c
3657d37
7015fbd
61f8065
308bd0d
de9a1bb
f09b47d
009d78c
58ceaad
93988a0
6e4582c
151b093
28adc13
f4529aa
63e3c72
0234719
388dd80
43522b0
211107d
65df2fc
ec61fd0
e2d9afc
8ee6292
98b9782
0186dee
cf487ad
3e29c5c
baa0be1
1c041fd
88d2425
98b478c
055aa8d
e7d8c6c
66ef466
d25bd4f
234f08f
e20230a
e1c128b
61b0e57
2c81d41
4199f29
987bbcf
0fb0706
12b4853
59212e8
51609b9
9e900f5
1800585
8705515
296c5b5
6849237
3005d1e
b8fb0bb
e67f885
e0ef6b6
797f106
5372c4d
a2bc544
fed2bec
2417ca5
e208abb
9b6dbb2
adb7197
f95e1fc
65c815b
e966bae
c686d06
6d394d7
12d86f0
efe2d34
adc38cc
710da4e
d8f4970
45bdea6
1ecc85c
d1b923c
227300b
4e62219
eda69f5
d9ee9f1
46bbcbd
9d42174
ad73b7c
a1b3192
11ec3a2
c1b8b51
c113bcb
1960bd0
cf91195
2dca4bf
5264d6e
f7db0ad
9baee71
198ee3b
2bc7f7e
2c71b0f
7e3c14c
225fa0e
ee9a781
23e2e17
cbcf310
eb32002
02c9261
ede6d60
1729e3b
6ac4089
d9f47c6
627dc47
3793e0d
c73770f
02cc58d
16cdf44
50b4b04
fb517f0
0cbc426
596137f
b51367b
333b744
72f1a34
c80a817
fd36c3c
76534ad
c14db03
337a9eb
8dfe1c4
b6de856
7f3ba18
0a09009
6026416
facfe4c
b5214b7
61994e1
26d2e98
6ad2575
92a581b
494f32a
859e0e1
9edd819
d70a637
f0f0069
f998341
359c345
a94cbc6
0be76be
40294f9
e1c56a8
999f6a7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,3 +52,4 @@ composer.lock | |
php_test_results_*.txt | ||
docker-compose.yml | ||
build/gccarch | ||
tests/_cache |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -18,6 +18,7 @@ | |||||
- Added `Phalcon\Mvc\Model\Query\BuilderInterface::offset` [#13599](https://github.com/phalcon/cphalcon/pull/13599) | ||||||
- Added `Phalcon\Http\Response\Cookies::getCookies` [#13591](https://github.com/phalcon/cphalcon/pull/13591) | ||||||
- Added `Phalcon\Mvc\Model::isRelationshipLoaded` to check if relationship is loaded | ||||||
- Added an easy way to work with Phalcon and run the tests locally, using [nanobox.io](https://nanobox.io) [#13578](https://github.com/phalcon/cphalcon/issues/13578) | ||||||
|
||||||
## Changed | ||||||
- By configuring `prefix` and `statsKey` the `Phalcon\Cache\Backend\Redis::queryKeys` no longer returns prefixed keys, now it returns original keys without prefix. [PR-13456](https://github.com/phalcon/cphalcon/pull/13456) | ||||||
|
@@ -40,6 +41,7 @@ | |||||
- Changed `Phalcon\Tag::getTitle()`. It returns only the text. It accepts `prepend`, `append` booleans to prepend or append the relevant text to the title. [#13547](https://github.com/phalcon/cphalcon/issues/13547) | ||||||
- Changed `Phalcon\Di\Service` constructor to no longer takes the name of the service. | ||||||
- Changed `Phalon\Tag::textArea` to use `htmlspecialchars` to prevent XSS injection. [#12428](https://github.com/phalcon/cphalcon/issues/12428) | ||||||
- Changed `Phalon\Cache\Backend\*::get` to use only positive numbers for `lifetime` | ||||||
|
||||||
## Removed | ||||||
- PHP < 7.0 no longer supported | ||||||
|
@@ -56,4 +58,12 @@ | |||||
- Removed `Phalcon\Validation\MessageInterface` and `Phalcon\Mvc\Model\MessageInterface` in favor of `Phalcon\Messages\MessageInterface` | ||||||
- Removed `Phalcon\Validation\Message` and `Phalcon\Mvc\Model\Message` in favor of `Phalcon\Messages\Message` | ||||||
- Removed `Phalcon\Validation\Message\Group` in favor of `Phalcon\Messages\Messages` | ||||||
- Removed deprecated `Phalcon\Annotations/Adapter/Apc` | ||||||
- Removed deprecated `Phalcon\Annotations/Adapter/Xcache` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Cache/Backend/Apc` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Cache/Backend/Memcache` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Cache/Backend/Xcache` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Mvc/Model/Metadata/Apc` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Mvc/Model/Metadata/Memcache` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
- Removed deprecated `Phalcon\Mvc/Model/Metadata/Xcache` | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed |
||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
run.config: | ||
engine: php | ||
engine.config: | ||
runtime: php-7.2 | ||
extensions: | ||
- apcu | ||
- ctype | ||
- curl | ||
- dom | ||
- fileinfo | ||
- gd | ||
- gmp | ||
- gettext | ||
- imagick | ||
- iconv | ||
- igbinary | ||
- json | ||
- mbstring | ||
- memcached | ||
- phar | ||
- pdo | ||
- pdo_mysql | ||
- pdo_pgsql | ||
- pdo_sqlite | ||
- session | ||
- simplexml | ||
- tokenizer | ||
- yaml | ||
- zephir_parser | ||
- xml | ||
- xmlwriter | ||
- zip | ||
- zlib | ||
- mongodb | ||
- redis | ||
zend_extensions: | ||
- opcache | ||
dev_zend_extensions: | ||
add: | ||
- xdebug | ||
rm: | ||
- opcache | ||
extra_packages: | ||
- autoconf | ||
- freefonts | ||
- freetype2 | ||
- fontconfig | ||
- mysql-client | ||
# - postgresql94-client | ||
- re2c | ||
- sqlite3 | ||
extra_steps: | ||
#=========================================================================== | ||
# PSR extension compilation | ||
- | | ||
( | ||
CURRENT_FOLDER=$(pwd) | ||
rm -fR $CURRENT_FOLDER/build/php-psr | ||
cd $CURRENT_FOLDER/build | ||
git clone --depth=1 https://github.com/jbboehr/php-psr.git | ||
cd php-psr | ||
set -e | ||
phpize | ||
./configure --with-php-config=$(which php-config) | ||
make -j"$(getconf _NPROCESSORS_ONLN)" | ||
make install | ||
cd $CURRENT_FOLDER | ||
rm -fR $CURRENT_FOLDER/build/php-psr | ||
unset CURRENT_FOLDER | ||
) | ||
- echo -e 'extension=psr.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Get the Zephir phar | ||
- wget --no-clobber -O /opt/gonano/bin/zephir https://github.com/phalcon/zephir/releases/download/0.11.8/zephir.phar | ||
- chmod +x /opt/gonano/bin/zephir | ||
#=========================================================================== | ||
# This is here so that Phalcon can be used right after compilation | ||
- echo -e 'extension=phalcon.so' >> "/data/etc/php/dev_php.ini" | ||
#=========================================================================== | ||
# Options for opcache and apcu | ||
- echo -e 'opcache.enable_cli=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apcu.enabled=1' >> "/data/etc/php/dev_php.ini" | ||
- echo -e 'apcu.enable_cli=1' >> "/data/etc/php/dev_php.ini" | ||
|
||
data.beanstalkd: | ||
image: schickling/beanstalkd | ||
|
||
data.memcached: | ||
image: nanobox/memcached:1.4 | ||
|
||
data.mongodb: | ||
image: nanobox/mongodb:3.0 | ||
|
||
data.mysql: | ||
image: nanobox/mysql:5.7 | ||
|
||
data.postgres: | ||
image: nanobox/postgresql:9.5 | ||
|
||
data.redis : | ||
image : nanobox/redis:3.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed