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

Tweaks for 7.2 #60

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion makeext
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $version = preg_replace('/[\.\-]+/', '', $argv[1]);

function usage() {
$cmd = basename(__FILE__);
echo "Usage: $cmd 71|70|56|55|54|53|all|world [zts]\n";
echo "Usage: $cmd 72|71|70|56|55|54|53|all|world [zts]\n";
echo "To rebuild ext for PHP 7.0 and 7.0-debug: $cmd 70\n";
echo "To rebuild ext for PHP 7.0 and 7.0-debug threadsafe: $cmd 70 zts\n";
echo "To rebuild ext for PHP 5.*: $cmd 5\n";
Expand All @@ -20,6 +20,7 @@ function usage() {
if(!empty($argv[2]) && $argv[2]=='zts') $zts = true;

switch($argv[1]) {
case '72': $build[72]=true; break;
case '71': $build[71]=true; break;
case '7':
case '70': $build[7]=true; break;
Expand Down
63 changes: 60 additions & 3 deletions makephp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $version = preg_replace('/[\.\-]+/', '', $argv[1]);

function usage() {
$cmd = basename(__FILE__);
echo "Usage: $cmd 71|70|56|55|54|53|all|world [zts]\n";
echo "Usage: $cmd 72|71|70|56|55|54|53|all|world [zts]\n";
echo "To rebuild PHP 7.0 and 7.0-debug: $cmd 70\n";
echo "To rebuild PHP 7.0 and 7.0-debug threadsafe: $cmd 70 zts\n";
echo "To rebuild PHP 5.*: $cmd 5\n";
Expand All @@ -20,17 +20,74 @@ function usage() {
if(!empty($argv[2]) && $argv[2]=='zts') $zts = true;

switch($argv[1]) {
case '72': $build[72]=true; break;
case '71': $build[71]=true; break;
case '7':
case '70': $build[7]=true; break;
case '56': $build[56]=true; break;
case '55': $build[55]=true; break;
case '54': $build[54]=true; break;
case '5': $build = [56=>true,55=>true,54=>true]; break;
case 'all': $build = [71=>true, 7=>true, 56=>true,55=>true,54=>true]; break;
case 'world': $build = [71=>true, 7=>true, 56=>true,55=>true,54=>true]; $world=true; break;
case 'all': $build = [72=>true, 71=>true, 7=>true, 56=>true,55=>true,54=>true]; break;
case 'world': $build = [72=>true, 71=>true, 7=>true, 56=>true,55=>true,54=>true]; $world=true; break;
}

$conf[72] = [
'--with-apxs2=/usr/bin/apxs2',
'--enable-zend-signals',
'--with-gd',
'--with-jpeg-dir=/usr',
'--with-png-dir=/usr',
'--with-vpx-dir=/usr',
'--with-freetype-dir=/usr',
'--with-t1lib=/usr',
'--enable-gd-native-ttf',
'--enable-exif',
'--with-config-file-path=/etc/php72',
'--with-config-file-scan-dir=/etc/php72/conf.d',
'--with-mysql-sock=/var/run/mysqld/mysqld.sock',
'--with-zlib',
'--enable-phpdbg',
'--with-gmp',
'--with-zlib-dir=/usr',
'--with-gettext',
'--with-kerberos',
'--with-imap-ssl',
'--with-mcrypt=/usr/local',
'--with-iconv',
'--enable-sockets',
'--with-openssl',
'--with-pspell',
'--with-pdo-mysql=mysqlnd',
'--with-pdo-sqlite',
'--with-pgsql',
'--with-pdo-pgsql',
'--enable-soap',
'--enable-xmlreader',
'--enable-phar=shared',
'--with-xsl',
'--enable-ftp',
'--enable-cgi',
'--with-curl=/usr',
'--with-tidy',
'--with-xmlrpc',
'--enable-mbstring',
'--enable-sysvsem',
'--enable-sysvshm',
'--enable-shmop',
'--with-readline',
'--enable-pcntl',
'--enable-fpm',
'--with-fpm-systemd',
'--enable-intl',
'--enable-zip',
'--with-imap',
'--with-mysqli=mysqlnd',
'--enable-calendar',
'--enable-bcmath',
'--enable-opcache-file'
];

$conf[71] = [
'--with-apxs2=/usr/bin/apxs2',
'--enable-zend-signals',
Expand Down
2 changes: 1 addition & 1 deletion newphp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ else switch_php('php'.$version, $debug, $zts);

function usage() {
$cmd = basename(__FILE__);
echo "Usage: $cmd 71|70|56|55|54|53 [debug|zts|debugzts]\n";
echo "Usage: $cmd 72|71|70|56|55|54|53 [debug|zts|debugzts]\n";
echo "To switch to PHP 5.5-debug: $cmd 55 debug\n\n";
exit;
}
Expand Down