Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
Máté Kocsis
d54bc29540
Promote warnings to exceptions in ext/shmop
...
Closes GH-5986
2020-08-25 13:09:23 +02:00
Christoph M. Becker
18f58080dc
Convert shmop resources to opaque objects
...
We make `shmop_close()` a NOP, and deprecate the function right away;
detaching from SHM now happens when the wrapper object is freed.
2020-06-24 13:59:29 +02:00
Christoph M. Becker
69d46c3433
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix brittle shmop test
2020-05-13 23:31:09 +02:00
Christoph M. Becker
1892e3abaa
Fix brittle shmop test
...
To solve bug #70886 , the test uses random keys to prevent collisions;
however, this is not guaranteed, and as such it may even collide with
other tests in the shmop test suite. The proper solution would be to
use a single key (which could be randomly generated), but to actually
`shmop_close()` after each `shmop_delete()`. This would, however, not
work on Windows due to bug #65987 . Therefore we use three different
keys for now.
2020-05-13 23:25:28 +02:00
Christoph M. Becker
1a95ed0b33
Enable test on Windows
2020-05-07 09:20:15 +02:00
Christoph M. Becker
e749db4047
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Fix #79566 : Private SHM is not private on Windows
2020-05-05 11:41:31 +02:00
Christoph M. Becker
f33cf52faf
Fix #79566 : Private SHM is not private on Windows
...
We map the POSIX semantics of `IPC_PRIVATE` by creating unnamed file
mapping objects on Windows. While that is not particularly useful for
ext/shmop, which is the only bundled extension which uses `shmget()`,
it may be useful for external extensions.
2020-05-05 11:38:29 +02:00
Nikita Popov
f8d795820e
Reindent phpt files
2020-02-03 22:52:20 +01:00
Máté Kocsis
d1764ca330
Make error messages more consistent by fixing capitalization
...
Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
2020-01-17 14:52:46 +01:00
Nikita Popov
852485d8ec
Adjust tests for zpp TypeError change
2019-03-11 11:32:20 +01:00
Peter Kokot
782352c54a
Trim trailing whitespace in *.phpt
2018-10-14 19:45:12 +02:00
Gabriel Caruso
9c144e0d82
Trim trailing whitespace in tests
2018-10-14 12:07:20 -03:00
Nikita Popov
c61daf415d
Deprecate track_errors / $php_errormsg
2017-02-03 21:02:52 +01:00
Matteo Beccati
3bfe1c55ae
Removed shmop test leaking an shm segment
2016-03-30 10:00:28 +02:00
Matteo Beccati
3cb3979de3
Split shmop/tests/002.phpt in two (all + non-root)
...
One of the conditions tested was expected to fail with "Permission denied",
but it doesn't when running as root. The memory segment was also leaked, hence
the split.
2015-11-10 09:10:10 +01:00
Matteo Beccati
6fa9b76342
Fix bug #70886 in shmop/tests/002.phpt
2015-11-10 09:10:10 +01:00
Anatol Belski
61ebc6c615
exclude a non windows test
2015-07-19 19:53:53 +02:00
Edgar R. Sandi
18dfbf9008
Added php tests to improve extension coverage
2015-07-07 10:50:23 -03:00
Hannes Magnusson
6affa7d3e9
Fix tests
2006-09-18 16:12:13 +00:00
foobar
ce742b08b0
- Fix typo (avaliable -> available). (bug #28725 )
2004-12-16 12:34:32 +00:00
Ilia Alshanetsky
7908cffab4
Switched to a new parameter parsing API, which simplifies the code.
...
Made error reporting use php_error_docref().
Fixed a memory leak in shmop_open() when an invalid flag is specified.
Added tests for shmop() extension.
2002-11-20 15:56:56 +00:00