Skip to content

Commit 2dcc454

Browse files
committed
Testing
1 parent ab9a349 commit 2dcc454

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ env:
4141
CXX: ccache g++
4242
jobs:
4343
LINUX_X64:
44-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
44+
if: false
4545
services:
4646
mysql:
4747
image: mysql:8.3
@@ -183,7 +183,7 @@ jobs:
183183
-d zend_extension=opcache.so
184184
-d opcache.enable_cli=1
185185
MACOS_DEBUG_NTS:
186-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
186+
if: false
187187
strategy:
188188
fail-fast: false
189189
matrix:
@@ -226,7 +226,7 @@ jobs:
226226
- name: Verify generated files are up to date
227227
uses: ./.github/actions/verify-generated-files
228228
WINDOWS:
229-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
229+
if: false
230230
name: WINDOWS_X64_ZTS
231231
runs-on: windows-2022
232232
timeout-minutes: 50
@@ -254,7 +254,7 @@ jobs:
254254
run: .github/scripts/windows/test.bat
255255
BENCHMARKING:
256256
name: BENCHMARKING
257-
if: github.repository == 'php/php-src' || github.event_name == 'pull_request'
257+
if: false
258258
runs-on: ubuntu-24.04
259259
timeout-minutes: 50
260260
steps:

Zend/zend_operators.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ zend_memnstr(const char *haystack, const char *needle, size_t needle_len, const
201201
if ((p = (const char *)memchr(p, *needle, (end-p+1)))) {
202202
/* This assert avoids an object size overflow warning (due to
203203
* needle_len underflowing) in i386 release builds on GCC. */
204-
ZEND_ASSERT(needle_len > 1);
204+
if (needle_len <= 1) {
205+
ZEND_UNREACHABLE();
206+
}
205207
if (ne == p[needle_len-1] && !memcmp(needle+1, p+1, needle_len-2)) {
206208
return p;
207209
}

0 commit comments

Comments
 (0)