diff --git a/sync/CREDITS b/CREDITS similarity index 100% rename from sync/CREDITS rename to CREDITS diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..643587d --- /dev/null +++ b/LICENSE @@ -0,0 +1,23 @@ +MIT License + +The MIT License + +Copyright (c) 2014 CubicleSoft + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index a8b5524..a38314c 100644 --- a/README.md +++ b/README.md @@ -3,14 +3,14 @@ CubicleSoft PHP Extension: Synchronization Objects (sync) The 'sync' extension introduces synchonization objects into PHP. Named and unnamed Mutex, Semaphore, Event, and Reader-Writer objects provide OS-level synchronization on both *NIX (POSIX semaphores required) and Windows platforms. The extension comes with a test suite that integrates cleanly into 'make test'. -This extension has a liberal open source license. MIT, LGPL, or version 3.01 of the PHP license. Your choice. And, of course, it sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively. +This extension uses the liberal MIT open source license. And, of course, it sits on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively. Details ------- An exception may be thrown from the constructors if the target object can't be created for some reason. -All synchronization objects are attempted to be unlocked cleanly within PHP itself. The exception is if an object's $autounlock option is initialized to false. If PHP terminates a script and doesn't unlock the object, it can leave it in an unpredictable state. +All synchronization objects are attempted to be unlocked cleanly within PHP itself. The exception is if an object's $autounlock option is initialized to false. If PHP terminates a script and doesn't unlock the object, it can leave the object in an unpredictable state. NOTE: When using "named" objects, the initialization must be identical for a given name and have a specific purpose. Reusing named objects for other purposes is not a good idea and will probably result in breaking both applications. However, different object types can share the same name (e.g. a Mutex and an Event object can have the same name). diff --git a/sync/config.m4 b/config.m4 similarity index 100% rename from sync/config.m4 rename to config.m4 diff --git a/sync/config.w32 b/config.w32 similarity index 100% rename from sync/config.w32 rename to config.w32 diff --git a/package.xml b/package.xml new file mode 100644 index 0000000..73c49f3 --- /dev/null +++ b/package.xml @@ -0,0 +1,68 @@ + + + sync + pecl.php.net + Named and unnamed synchronization objects + Introduces synchonization objects into PHP. Named and unnamed Mutex (SyncMutex), Semaphore (SyncSemaphore), Event (SyncEvent), and Reader-Writer (SyncReaderWriter) objects provide OS-level synchronization on both *NIX (POSIX semaphores required) and Windows platforms. + +The project sits over on GitHub for all of that pull request and issue tracker goodness to easily submit changes and ideas respectively: + +https://github.com/cubiclesoft/php-ext-sync + + + CubicleSoft + cubie + support@cubiclesoft.com + yes + + 2014-05-08 + + + 1.0.0 + 1.0.0 + + + stable + stable + + MIT License + +- Initial release. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5.3.0 + + + 1.4.0 + + + + sync + + diff --git a/sync/php_sync.h b/php_sync.h similarity index 100% rename from sync/php_sync.h rename to php_sync.h diff --git a/sync/sync.c b/sync.c similarity index 100% rename from sync/sync.c rename to sync.c diff --git a/sync/tests/001.phpt b/tests/001.phpt similarity index 100% rename from sync/tests/001.phpt rename to tests/001.phpt diff --git a/sync/tests/002.phpt b/tests/002.phpt similarity index 100% rename from sync/tests/002.phpt rename to tests/002.phpt diff --git a/sync/tests/003.phpt b/tests/003.phpt similarity index 100% rename from sync/tests/003.phpt rename to tests/003.phpt diff --git a/sync/tests/004.phpt b/tests/004.phpt similarity index 100% rename from sync/tests/004.phpt rename to tests/004.phpt diff --git a/sync/tests/005.phpt b/tests/005.phpt similarity index 100% rename from sync/tests/005.phpt rename to tests/005.phpt diff --git a/sync/tests/006.phpt b/tests/006.phpt similarity index 100% rename from sync/tests/006.phpt rename to tests/006.phpt diff --git a/sync/tests/007.phpt b/tests/007.phpt similarity index 100% rename from sync/tests/007.phpt rename to tests/007.phpt diff --git a/sync/tests/008.phpt b/tests/008.phpt similarity index 100% rename from sync/tests/008.phpt rename to tests/008.phpt diff --git a/sync/tests/009.phpt b/tests/009.phpt similarity index 100% rename from sync/tests/009.phpt rename to tests/009.phpt diff --git a/sync/tests/010.phpt b/tests/010.phpt similarity index 100% rename from sync/tests/010.phpt rename to tests/010.phpt diff --git a/sync/tests/011.phpt b/tests/011.phpt similarity index 100% rename from sync/tests/011.phpt rename to tests/011.phpt diff --git a/sync/tests/012.phpt b/tests/012.phpt similarity index 100% rename from sync/tests/012.phpt rename to tests/012.phpt diff --git a/sync/tests/013.phpt b/tests/013.phpt similarity index 100% rename from sync/tests/013.phpt rename to tests/013.phpt