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
FROM phpswoole/swoole:latest as pack | |
RUN echo "phar.readonly=0" >> /usr/local/etc/php/conf.d/docker-php-ext-phar.ini | |
WORKDIR /app | |
COPY . . | |
RUN composer install --no-dev --optimize-autoloader --no-interaction --no-progress | |
RUN mkdir -p /app/build && /app/zhamao build --build-dir=/app/build --target=zm.phar --quiet | |
FROM alpine:latest as build | |
ADD https://dl.zhamao.xin/php-bin/file/micro-8.1.8-x86_64.tar.gz /tmp | |
RUN tar -zxvf /tmp/micro-8.1.8-x86_64.tar.gz -C /tmp |
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
activeIncidents: 活动事件 | |
allSystemsOperational: 所有系统工作正常 | |
incidentReport: "$NUMBER 号事件报告 →" | |
activeIncidentSummary: 于 $DATE 打开,包括 $POSTS 个帖子 | |
incidentTitle: $NUMBER 号事件详情 | |
incidentDetails: 事件详情 | |
incidentFixed: 已修复 | |
incidentOngoing: 进行中 | |
incidentOpenedAt: 打开于 | |
incidentClosedAt: 关闭于 |
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
<?php | |
$text = <<<'EOT' | |
<img class="bili-avatar-img" alt="这是ALT里边的文字"> | |
我在外边Outside欸嘿 | |
<span class="bili-avatar-icon bili-avatar-size-60"> | |
这是一串文字欸文字Inside</span> | |
EOT; | |
$no_tags_text = preg_replace('/<.*?>/m', '', $text); |
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
<?php | |
$db = mysqli_connect("localhost", "phpuser", "alm65z", "phpdb"); | |
function sess_open($sess_path, $sess_name) { | |
return true; | |
} | |
function sess_close() { | |
return true; | |
} |
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
{"lastUpload":"2020-04-02T09:29:06.893Z","extensionVersion":"v3.4.3"} |