Skip to content

Commit 5edc9c9

Browse files
committed
Promote one more + fix test
1 parent 1895c84 commit 5edc9c9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/shmop/shmop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ PHP_FUNCTION(shmop_open)
200200
}
201201

202202
if (shm.shm_segsz > ZEND_LONG_MAX) {
203-
php_error_docref(NULL, E_WARNING, "Shared memory segment too large to attach");
203+
zend_argument_value_error(4, "is too large");
204204
goto err;
205205
}
206206

ext/shmop/tests/002.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ echo PHP_EOL, '## shmop_write function tests ##', PHP_EOL;
7777
shmop_open(): Argument #2 ($flags) must be a valid access mode
7878
shmop_open(): Argument #2 ($flags) must be a valid access mode
7979

80-
Warning: shmop_open(): Unable to attach or create shared memory segment "Invalid argument" in %s on line %d
80+
Warning: shmop_open(): Unable to attach or create shared memory segment "%s" in %s on line %d
8181
bool(false)
8282

83-
Warning: shmop_open(): Unable to attach or create shared memory segment "Invalid argument" in %s on line %d
83+
Warning: shmop_open(): Unable to attach or create shared memory segment "%s" in %s on line %d
8484
shmop_open(): Argument #4 ($size) must be greater than 0 for the "c" and "n" access modes
8585

8686
## shmop_read function tests ##

0 commit comments

Comments
 (0)