Skip to content

Commit

Permalink
Merge pull request #12765 from phalcon/3.1.x
Browse files Browse the repository at this point in the history
3.1.2
  • Loading branch information
sergeyklay authored Apr 5, 2017
2 parents 2bd18f9 + d0f0656 commit 47b2335
Show file tree
Hide file tree
Showing 270 changed files with 21,799 additions and 28,298 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ docs/* linguist-documentation

*.sql linguist-language=SQL

*.w32 linguist-language=JavaScript

ext/* linguist-vendored
build/* linguist-vendored

Expand Down
14 changes: 8 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ php:
matrix:
fast_finish: true
allow_failures:
- php: 7.1
- php: nightly
include:
- php: 7.0
Expand All @@ -29,7 +28,6 @@ cache:
timeout: 691200
directories:
- .temp
- vendor
- $HOME/.ccache
- $HOME/.composer/cache

Expand Down Expand Up @@ -79,12 +77,13 @@ before_install:
- export PHP_MAJOR="$(echo $TRAVIS_PHP_VERSION | cut -d '.' -f 1,2)"

install:
- travis_retry composer install --prefer-dist --no-interaction --ignore-platform-reqs
- travis_retry composer install --prefer-source --no-interaction --ignore-platform-reqs
- bash tests/_ci/install_prereqs_$PHP_MAJOR.sh
- bash tests/_ci/install_zephir_parser.sh
- bash tests/_ci/install_zephir.sh
- '( zephir fullclean && zephir generate $ZEND_BACKEND )'
- (export PRE_PHP_INCLUDES=`php-config --includes`; cd ext/; for file in `find kernel -name "*.h"`; do $CC "$file" -I. $PRE_PHP_INCLUDES -o "$file.ghc"; done)
- (cd ext; export CFLAGS="-g3 -O0 -std=gnu90 -Wall -DZEPHIR_RELEASE=1"; /usr/bin/phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j"$(getconf _NPROCESSORS_ONLN)" &> /dev/null && make --silent install)
- (cd ext; export CFLAGS="-g3 -O0 -std=gnu90 -Wall"; /usr/bin/phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j"$(getconf _NPROCESSORS_ONLN)" &> /dev/null && make --silent install)
- phpenv config-add tests/_ci/phalcon.ini
- phpenv config-add tests/_ci/redis.ini
- php -m
Expand All @@ -107,8 +106,11 @@ after_failure:
- bash tests/_ci/after_failure.sh

notifications:
email:
- [email protected]
email:
recipients:
- [email protected]
on_success: change
on_failure: always

addons:
apt:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# [3.1.2](https://github.com/phalcon/cphalcon/releases/tag/v3.1.2) (2017-04-05)
- Fixed PHP 7.1 issues [#12055](https://github.com/phalcon/cphalcon/issues/12055)
- Fixed `Imagick::getVersion()` error in some system [#12729](https://github.com/phalcon/cphalcon/pull/12729)
- Fixed `Phalcon\Mvc\Model::_doLowInsert` to properly set snapshot when having default values and public properties [#12766](https://github.com/phalcon/cphalcon/issues/12766)

# [3.1.1](https://github.com/phalcon/cphalcon/releases/tag/v3.1.1) (2017-03-25)
- Fixed undefined index warning on existing cached resultsets
- Fixed `Phalcon\Mvc\Model::_dowLowUpdate` warning first argument is not an array [#12742](https://github.com/phalcon/cphalcon/issues/12742)
Expand Down
61 changes: 17 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

[![Build Status](https://travis-ci.org/phalcon/cphalcon.svg?branch=master)](https://travis-ci.org/phalcon/cphalcon)
[![Windows Build](https://ci.appveyor.com/api/projects/status/github/phalcon/cphalcon?branch=master&svg=true)](https://ci.appveyor.com/project/phalcon/cphalcon/branch/master)
[![Support Us](https://img.shields.io/badge/support-patreon-red.svg)](https://www.patreon.com/bePatron?u=4653615)
[![Phalcon Backers](https://img.shields.io/badge/phalcon-backers-99ddc0.svg)](https://github.com/phalcon/cphalcon/blob/master/BACKERS.md)
[![OpenCollective](https://opencollective.com/phalcon/backers/badge.svg)](#backers)
[![OpenCollective](https://opencollective.com/phalcon/sponsors/badge.svg)](#sponsors)
Expand All @@ -14,7 +13,9 @@ A big thank you to [our Backers](https://github.com/phalcon/cphalcon/blob/master

## Get Started

Phalcon is written in [Zephir/C](https://zephir-lang.com/) with platform independence in mind. As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS. You can either download a binary package for the system of your choice or build it from source.
Phalcon is written in [Zephir/C](https://zephir-lang.com/) with platform independence in mind.
As a result, Phalcon is available on Microsoft Windows, GNU/Linux, FreeBSD and MacOS.
You can either download a binary package for the system of your choice or build it from source.

### Windows

Expand All @@ -23,7 +24,6 @@ To install Phalcon on Windows:
1. Download [Phalcon for Windows](https://phalconphp.com/en/download/windows)
2. Extract the DLL file and copy it to your PHP extensions directory
3. Edit your **php.ini** file and add this line:

```ini
extension=php_phalcon.dll
```
Expand All @@ -43,29 +43,33 @@ On a Unix-based platform you can easily compile and install the extension from s

Prerequisite packages are:

* PHP 5.5.x/5.6.x/7.0.x development resources (PHP 5.3 and 5.4 are no longer supported)
* GCC compiler (Linux/Solaris/FreeBSD) or Xcode (MacOS)
* PHP 5.5.x/5.6.x/7.0.x/7.1.x development resources (PHP 5.3 and 5.4 are no longer supported)
* `g++` >= 4.4 | `clang++` >= 3.x | `vc++` >= 11
* GNU `make` >= 3.81
* [`re2c`](http://re2c.org) >= 0.13

Ubuntu:

```bash
sudo apt-get install php5-dev libpcre3-dev gcc make
# Use actual PHP development headers and tools here
sudo apt-get install php5-dev libpcre3-dev gcc make re2c
```

Suse:

```bash
sudo zypper install php5-devel gcc make
# Use actual PHP development headers and tools here
sudo zypper install php5-devel gcc make re2c
```

CentOS/Fedora/RHEL

```bash
sudo yum install php-devel pcre-devel gcc make
# Use actual PHP development headers and tools here
sudo yum install php-devel pcre-devel gcc make re2c
```

## General Compilation
## Compilation

Follow these instructions to generate a binary extension for your platform:

Expand All @@ -75,52 +79,21 @@ cd cphalcon/build
sudo ./install
```

Add the extension to your **php.ini**:

```ini
extension=phalcon.so
```

Finally, **restart the web server**.

## Advanced compilation

If you have specific php versions running

```bash
git clone https://github.com/phalcon/cphalcon
# or cd cphalcon/build/php5/32bits
cd cphalcon/build/php5/64bits

# NOTE: for PHP 7 you have to use
# cd cphalcon/build/php7/32bits
# or
# cd cphalcon/build/php7/64bits

make clean

# Example: /opt/php-5.6.15
export CUSTOM_PHP_INSTALLATION_PATH=/your/php/installation/path

# Example: /opt/php-5.6.15/bin/phpize --clean
$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize --clean

# Example: /opt/php-5.6.15/bin/phpize
$CUSTOM_PHP_INSTALLATION_PATH/bin/phpize

# Example: ./configure --with-php-config=/opt/php-5.6.15/bin/php-config
./configure --with-php-config=$CUSTOM_PHP_INSTALLATION_PATH/bin/php-config

make && sudo make install
cd cphalcon/build
sudo ./install --phpize /usr/bin/phpize5.6 --php-config /usr/bin/php-config5.6
```

Edit your **php.ini** (for the specific version) and add this line:
Add the extension to your **php.ini**:

```ini
extension=phalcon.so
```

Save the file and **Restart the web server**.
Finally, **restart the web server**.

## Contributing

Expand Down
Loading

0 comments on commit 47b2335

Please sign in to comment.