summaryrefslogtreecommitdiff
path: root/ext/shmop
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2017-02-02 21:15:36 +0100
committerNikita Popov <nikita.ppv@gmail.com>2017-02-03 21:02:52 +0100
commitc61daf415d0207abda6041a3ed12c23b6a9d8ebf (patch)
treea61504f51e3473ca545be5be1109156ebc43de92 /ext/shmop
parent2df9346e7f9a0ecc204a1d615b5c151b8ed053f5 (diff)
downloadphp-git-c61daf415d0207abda6041a3ed12c23b6a9d8ebf.tar.gz
Deprecate track_errors / $php_errormsg
Diffstat (limited to 'ext/shmop')
-rw-r--r--ext/shmop/tests/001.phpt8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/shmop/tests/001.phpt b/ext/shmop/tests/001.phpt
index 74f53a0377..5b798cd5ba 100644
--- a/ext/shmop/tests/001.phpt
+++ b/ext/shmop/tests/001.phpt
@@ -45,8 +45,7 @@ shmop extension test
echo "data in memory is: " . shmop_read($shm_id, 0, $written) . "\n";
/* try to append data to the shared memory segment, this should fail */
- @shmop_write($shm_id, $write_d1, $written);
- echo $php_errormsg . "\n";
+ shmop_write($shm_id, $write_d1, $written);
shmop_close($shm_id);
@@ -77,14 +76,15 @@ shmop extension test
shmop_close($shm_id);
?>
---EXPECT--
+--EXPECTF--
shm open for create: ok
shm size is: 1024
shm write test #1: ok
data in memory is: test #1 of the shmop() extension
shm open for read only: ok
data in memory is: test #1 of the shmop() extension
-shmop_write(): trying to write to a read only segment
+
+Warning: shmop_write(): trying to write to a read only segment in %s on line %d
shm open for read only: ok
shm write test #1: ok
data in memory is: test #1 of the shmop() extensiontest #2 append data to shared memory segment