Skip to content

Commit b51c5ef

Browse files
committed
Test
1 parent 9c81b52 commit b51c5ef

File tree

3 files changed

+21
-62
lines changed

3 files changed

+21
-62
lines changed

.github/actions/configure-macos/action.yml

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -23,50 +23,8 @@ runs:
2323
./configure \
2424
--enable-option-checking=fatal \
2525
--prefix=/usr/local \
26-
--enable-fpm \
27-
--with-pdo-mysql=mysqlnd \
28-
--with-mysqli=mysqlnd \
29-
--with-pgsql="$BREW_OPT"/libpq \
30-
--with-pdo-pgsql="$BREW_OPT"/libpq \
31-
--with-pdo-sqlite \
3226
--without-pear \
33-
--enable-gd \
34-
--with-jpeg \
35-
--with-webp \
36-
--with-freetype \
37-
--enable-exif \
38-
--with-zip \
39-
--with-zlib \
40-
--enable-soap \
41-
--enable-xmlreader \
42-
--with-xsl \
43-
--with-tidy="$BREW_OPT"/tidy-html5 \
44-
--with-libxml \
45-
--enable-sysvsem \
46-
--enable-sysvshm \
47-
--enable-shmop \
48-
--enable-pcntl \
49-
--with-readline="$BREW_OPT"/readline \
5027
--enable-mbstring \
51-
--with-curl \
52-
--with-gettext="$BREW_OPT"/gettext \
53-
--enable-sockets \
54-
--with-bz2="$BREW_OPT"/bzip2 \
55-
--with-openssl \
56-
--with-gmp="$BREW_OPT"/gmp \
57-
--with-iconv="$BREW_OPT"/libiconv \
58-
--enable-bcmath \
59-
--enable-calendar \
60-
--enable-ftp \
61-
--enable-sysvmsg \
62-
--with-ffi \
63-
--enable-zend-test \
64-
--enable-dl-test=shared \
65-
--enable-intl \
66-
--with-mhash \
67-
--with-sodium \
68-
--enable-dba \
69-
--enable-werror \
7028
--with-config-file-path=/etc \
7129
--with-config-file-scan-dir=/etc/php.d \
7230
${{ inputs.configurationParameters }}

.github/workflows/push.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ env:
3333
CXX: ccache g++
3434
jobs:
3535
ALPINE:
36-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
36+
if: false
3737
name: ALPINE_X64_ASAN_UBSAN_DEBUG_ZTS
3838
runs-on: ubuntu-24.04
3939
container:
@@ -74,7 +74,7 @@ jobs:
7474
--asan -x
7575
-d opcache.enable_cli=1
7676
LINUX_X64:
77-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
77+
if: false
7878
services:
7979
mysql:
8080
image: mysql:8.3
@@ -170,7 +170,7 @@ jobs:
170170
if: ${{ !matrix.asan }}
171171
uses: ./.github/actions/verify-generated-files
172172
LINUX_X32:
173-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
173+
if: false
174174
name: LINUX_X32_DEBUG_ZTS
175175
runs-on: ubuntu-latest
176176
timeout-minutes: 50
@@ -252,7 +252,7 @@ jobs:
252252
- name: ./configure
253253
uses: ./.github/actions/configure-macos
254254
with:
255-
configurationParameters: --enable-debug --disable-zts
255+
configurationParameters: --disable-debug --disable-zts
256256
- name: make
257257
run: |-
258258
export PATH="$(brew --prefix)/opt/bison/bin:$PATH"
@@ -264,11 +264,11 @@ jobs:
264264
with:
265265
jitType: tracing
266266
runTestsParameters: >-
267-
-d opcache.enable_cli=1
267+
-d opcache.enable_cli=1 ext/mbstring/tests/eucjp_2004_encoding.phpt
268268
- name: Verify generated files are up to date
269269
uses: ./.github/actions/verify-generated-files
270270
WINDOWS:
271-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
271+
if: false
272272
name: WINDOWS_X64_ZTS
273273
runs-on: windows-2022
274274
timeout-minutes: 50
@@ -296,7 +296,7 @@ jobs:
296296
run: .github/scripts/windows/test.bat
297297
BENCHMARKING:
298298
name: BENCHMARKING
299-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
299+
if: false
300300
runs-on: ubuntu-24.04
301301
timeout-minutes: 50
302302
steps:
@@ -400,7 +400,7 @@ jobs:
400400
path: ${{ github.workspace }}/benchmark/profiles
401401
retention-days: 30
402402
FREEBSD:
403-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
403+
if: false
404404
name: FREEBSD
405405
runs-on: ubuntu-latest
406406
timeout-minutes: 50

ext/mbstring/libmbfl/filters/mbfilter_cjk.c

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2101,6 +2101,17 @@ static int mbfl_filt_conv_wchar_jis2004_flush(mbfl_convert_filter *filter)
21012101
#define JISX0213_PLANE1 2
21022102
#define JISX0213_PLANE2 3
21032103

2104+
static zend_never_inline __attribute__((optnone)) void mbfl_test(uint32_t *w, unsigned int w1)
2105+
{
2106+
/* Conversion for CJK Unified Ideographs ext.B (U+2XXXX) */
2107+
if (!*w) {
2108+
int k = mbfl_bisec_srch2(w1, jisx0213_jis_u5_key, jisx0213_u5_tbl_len);
2109+
if (k >= 0) {
2110+
*w = jisx0213_jis_u5_tbl[k] + 0x20000;
2111+
}
2112+
}
2113+
}
2114+
21042115
static size_t mb_iso2022jp2004_to_wchar(unsigned char **in, size_t *in_len, uint32_t *buf, size_t bufsize, unsigned int *state)
21052116
{
21062117
unsigned char *p = *in, *e = p + *in_len;
@@ -2179,12 +2190,7 @@ static size_t mb_iso2022jp2004_to_wchar(unsigned char **in, size_t *in_len, uint
21792190
}
21802191

21812192
/* Conversion for CJK Unified Ideographs ext.B (U+2XXXX) */
2182-
if (!w) {
2183-
int k = mbfl_bisec_srch2(w1, jisx0213_jis_u5_key, jisx0213_u5_tbl_len);
2184-
if (k >= 0) {
2185-
w = jisx0213_jis_u5_tbl[k] + 0x20000;
2186-
}
2187-
}
2193+
mbfl_test(&w, w1);
21882194

21892195
*out++ = w ? w : MBFL_BAD_INPUT;
21902196
} else if (*state == JISX0213_PLANE2) {
@@ -9234,12 +9240,7 @@ static size_t mb_eucjp2004_to_wchar(unsigned char **in, size_t *in_len, uint32_t
92349240
}
92359241

92369242
/* Conversion for CJK Unified Ideographs ext.B (U+2XXXX) */
9237-
if (!w) {
9238-
int k = mbfl_bisec_srch2(w1, jisx0213_jis_u5_key, jisx0213_u5_tbl_len);
9239-
if (k >= 0) {
9240-
w = jisx0213_jis_u5_tbl[k] + 0x20000;
9241-
}
9242-
}
9243+
mbfl_test(&w, w1);
92439244

92449245
*out++ = w ? w : MBFL_BAD_INPUT;
92459246
} else if (c == 0x8E && p < e) {

0 commit comments

Comments
 (0)