]> granicus.if.org Git - php/commit
Windows support for sysvshm
authorKalle Sommer Nielsen <kalle@php.net>
Wed, 22 Apr 2015 07:29:45 +0000 (09:29 +0200)
committerKalle Sommer Nielsen <kalle@php.net>
Wed, 22 Apr 2015 07:29:45 +0000 (09:29 +0200)
commitceb1ea37adcde37a9dcc1b859e778e6e17154dc8
treee4a4f9123ec493d946355575a94233397d0f06fb
parentaf3c72bc805fc0167581fe83ecd24398f509cea0
Windows support for sysvshm

A little background:
* key_t is an int, like ext/shmop
* There is no ftok() (from ext/standard), so tests have a new check to see whether or not it is available. This however means that the 7 tests will all be skipped for Windows. I know we cannot properly implement an ftok() function since there is no inodes for NTFS, maybe we should look into using the GetFileInfoByHandle() or similar to use the system unique ID for a file to get the same functionality, Anatol?
* Despite the lack of phpt's, local testing works flawlessly but we better look into a solution for this if we are to keep this patch
ext/sysvshm/config.w32 [new file with mode: 0644]
ext/sysvshm/php_sysvshm.h
ext/sysvshm/tests/001.phpt
ext/sysvshm/tests/002.phpt
ext/sysvshm/tests/003.phpt
ext/sysvshm/tests/004.phpt
ext/sysvshm/tests/005.phpt
ext/sysvshm/tests/006.phpt
ext/sysvshm/tests/007.phpt