two updates for php7 behavioral change
This commit is contained in:
parent
fb226c5bfe
commit
f6114a9384
@ -56,8 +56,8 @@ COPY --from=installer /root/packages/x86_64/apache2-mod-perl-2.0.12-r1.apk /tmp
|
|||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing/ \
|
||||||
subversion apache2 libldap \
|
subversion apache2 libldap \
|
||||||
php7-apache2 php7-gd php7-sqlite3 php7-ldap \
|
php7-apache2 php7-gd php7-sqlite3 php7-ldap php7-ctype \
|
||||||
php7-pdo php7-pdo_sqlite php7-pdo_mysql \
|
php7-pdo php7-pdo_sqlite php7-pdo_mysql php7-zip \
|
||||||
apache2-webdav mod_dav_svn \
|
apache2-webdav mod_dav_svn \
|
||||||
perl-switch perl-config-simple perl-digest-sha1 \
|
perl-switch perl-config-simple perl-digest-sha1 \
|
||||||
perl-dbd-sqlite perl-ldap perl-subversion perl-mail-sendmail sqlite bash && \
|
perl-dbd-sqlite perl-ldap perl-subversion perl-mail-sendmail sqlite bash && \
|
||||||
|
@ -227,7 +227,7 @@ if ( !function_exists ('codepot_zip_dir'))
|
|||||||
$prefix = strlen($path);
|
$prefix = strlen($path);
|
||||||
|
|
||||||
$zip = new ZipArchive();
|
$zip = new ZipArchive();
|
||||||
if (@$zip->open ($output_file, ZipArchive::OVERWRITE) === FALSE) return FALSE;
|
if (@$zip->open($output_file, ZipArchive::OVERWRITE | ZipArchive::CREATE) === FALSE) return FALSE;
|
||||||
|
|
||||||
while (!empty($stack))
|
while (!empty($stack))
|
||||||
{
|
{
|
||||||
|
@ -97,8 +97,7 @@ class CodeModel extends CI_Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
$result = $query->result();
|
$result = $query->result();
|
||||||
$num = empty($result)? 0:
|
$num = empty($result)? 0: (isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count);
|
||||||
isset($result[0]->COUNT)? $result[0]->COUNT: $result[0]->count;
|
|
||||||
|
|
||||||
$this->db->trans_commit();
|
$this->db->trans_commit();
|
||||||
return $num;
|
return $num;
|
||||||
|
Loading…
Reference in New Issue
Block a user