php-src/ext/spl
Anatol Belski d11734b4b0 reworked the patch, less new stuff but worky
TLS is already used in TSRM, the way exporting the tsrm cache through
a thread local variable is not portable. Additionally, the current
patch suffers from bugs which are hard to find, but prevent it to
be worky with apache. What is done here is mainly uses the idea
from the RFC patch, but

- __thread variable is removed
- offset math and declarations are removed
- extra macros and definitions are removed

What is done merely is

- use an inline function to access the tsrm cache. The function uses
  the portable tsrm_tls_get macro which is cheap
- all the TSRM_* macros are set to placebo. Thus this opens the way
  remove them later

Except that, the logic is old. TSRMLS_FETCH will have to be done once
per thread, then tsrm_get_ls_cache() can be used. Things seeming to be
worky are cli, cli server and apache. I also tried to enable bz2
shared and it has worked out of the box. The change is yet minimal
diffing to the current master bus is a worky start, IMHO. Though will
have to recheck the other previously done SAPIs - embed and cgi.

The offsets can be added to the tsrm_resource_type struct, then
it'll not be needed to declare them in the userspace. Even the
"done" member type can be changed to int16 or smaller, then adding
the offset as int16 will not change the struct size. As well on the
todo might be removing the hashed storage, thread_id != thread_id and
linked list logic in favour of the explicit TLS operations.
2014-09-25 18:48:27 +02:00
..
examples Merge branch 'PHP-5.3' into PHP-5.4 2012-10-10 10:45:07 +08:00
internal Revert "EmptyIterator now implements Countable; fixes bug 60577" 2013-09-18 15:06:36 +02:00
tests fix dir separators in test 2014-08-31 14:02:30 +02:00
config.m4
config.w32 - add phpize support for windows, need a nmake install for now (nmake devel-pkg version is coming), works exactly the same as on unix, or should :) 2010-12-13 18:43:10 +00:00
CREDITS
doxygen.cfg commented out the HHC_LOCATION line, as there are no easy to use alternatives for 2012-10-25 17:11:13 +02:00
package.xml
php_spl.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
php_spl.h reworked the patch, less new stuff but worky 2014-09-25 18:48:27 +02:00
README These links to ~helly don't work anymore. 2014-04-17 17:20:24 +02:00
spl_array.c Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
spl_array.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_directory.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_directory.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_dllist.c Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
spl_dllist.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_engine.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_engine.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_exceptions.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_exceptions.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_fixedarray.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_fixedarray.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_functions.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_functions.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_heap.c s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_heap.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_iterators.c Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
spl_iterators.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl_observer.c Move smart_str implementation into Zend/ 2014-09-21 20:49:39 +02:00
spl_observer.h s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
spl.php These links to ~helly don't work anymore. 2014-04-17 17:20:24 +02:00
TODO

This is an extension that aims to implement some efficient data access 
interfaces and classes. You'll find the classes documented using php
code in the file spl.php or in the corresponding .inc file in the examples
subdirectory. Based on the internal implementations or the files in the 
examples subdirectory there are also some .php files to experiment with.

For more information look at: http://php.net/manual/en/book.spl.php