Commit Graph

85055 Commits

Author SHA1 Message Date
krakjoe
bab487d69d remove fetches from gd 2014-09-26 11:19:00 +01:00
krakjoe
f0f583f757 remove fetch from dom 2014-09-26 11:12:45 +01:00
krakjoe
6d548bac93 Merge branch 'native-tls' of https://github.com/php/php-src into native-tls 2014-09-26 11:11:47 +01:00
krakjoe
10c8daf165 remove fetch from dba 2014-09-26 11:11:33 +01:00
Anatol Belski
aa627174ec cleanup direct tsrm_ls passing 2014-09-26 12:11:08 +02:00
Anatol Belski
14eefc82b5 cleanup after the removed PHP_OUTPUT_TSRMLS 2014-09-26 12:11:07 +02:00
krakjoe
2928dd600f remove fetches from date 2014-09-26 11:10:10 +01:00
krakjoe
aee0fefedf Merge branch 'native-tls' of https://github.com/php/php-src into native-tls 2014-09-26 11:07:57 +01:00
krakjoe
7d36a1a841 remove fetches from curl 2014-09-26 11:07:43 +01:00
Anatol Belski
f790036711 some cleanups for TSRMLS_FETCH and direct tsrm_ls usage in main 2014-09-26 11:06:58 +02:00
krakjoe
52fa340902 remove fetches 2014-09-26 09:37:15 +01:00
krakjoe
dccb50436d Merge branch 'native-tls' of https://github.com/php/php-src into native-tls 2014-09-26 09:24:16 +01:00
krakjoe
21b6d15599 remove unused fetch 2014-09-26 09:23:50 +01:00
Anatol Belski
7d11d66957 Merge remote-tracking branch 'origin/master' into native-tls
* origin/master:
  NEWS
  NEWS
  Fixed bug #68103 Dupplicate entry in Reflection
  Fixed optimizer bug
  fix C89 compat
  fix indentation
  fix zts build
  Use macro
  Optimized (PRE|POST)_(INC|DEC) handlers. Moved proxy object handling into helper function.

Conflicts:
	Zend/zend_operators.c
2014-09-26 10:00:10 +02:00
Anatol Belski
06d0230a0f cleanup TSRMLS_FETCH 2014-09-26 09:58:19 +02:00
Anatol Belski
1b9e905f43 cleanup TSRMLS_FETCH in ext/sqlite3 2014-09-26 09:38:12 +02:00
Remi Collet
ed59fa3a0d Fixed bug #68103 Dupplicate entry in Reflection (merged) 2014-09-26 09:28:02 +02:00
Remi Collet
d19356948a NEWS 2014-09-26 09:07:12 +02:00
Remi Collet
97cab239d7 Merge branch 'PHP-5.5' into PHP-5.6
* PHP-5.5:
  NEWS
  Fixed bug #68103 Dupplicate entry in Reflection
2014-09-26 09:06:51 +02:00
Remi Collet
bf046d6d66 NEWS 2014-09-26 09:06:12 +02:00
Remi Collet
efa7f87de4 Fixed bug #68103 Dupplicate entry in Reflection
$ php -r '$r=new ReflectionExtension("pthreads"); print_r($r->getClassNames());'
Array
(
    [0] => Threaded
    [1] => stackable
    [2] => Thread
    [3] => Worker
    [4] => Mutex
    [5] => Cond
    [6] => Collectable
    [7] => Pool
)

In getClasses() output, it is possible to compare key (ex "stackable")
with $obj->name (ex "Threaded") to detect class alias.

...
    [Threaded] => ReflectionClass Object
        (
            [name] => Threaded
        )
    [stackable] => ReflectionClass Object
        (
            [name] => Threaded
        )
...
2014-09-26 08:56:42 +02:00
Dmitry Stogov
bd76544e15 Fixed optimizer bug 2014-09-26 01:37:33 +04:00
Anatol Belski
c1e92d9fed fix C89 compat 2014-09-25 20:28:34 +02:00
Anatol Belski
31cc63b1a4 fix some extension builds 2014-09-25 20:02:48 +02:00
Anatol Belski
83fac1855f fix signature 2014-09-25 19:30:39 +02:00
Anatol Belski
ef6e9386e3 remove some remains from the old patch 2014-09-25 19:27:36 +02:00
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
krakjoe
eabad90acb fix indentation 2014-09-25 16:31:39 +01:00
krakjoe
abdc8c3061 fix zts build 2014-09-25 16:15:02 +01:00
Dmitry Stogov
1833ab0230 Use macro 2014-09-25 17:00:17 +04:00
Dmitry Stogov
8b034ec69a Optimized (PRE|POST)_(INC|DEC) handlers. Moved proxy object handling into helper function. 2014-09-25 13:42:46 +04:00
Anatol Belski
a2dd606942 Merge remote-tracking branch 'origin/master' into native-tls
* origin/master: (31 commits)
  Fixed C++ incompatibility
  update the certificate used for the test, as it expired recently
  Fixed immutable arrays support
  Fix counting of "R:" references in serialize()
  Remove dead code
  Test use($this) being an error
  Move list() condition into assign_znode
  typo
  NEWS
  Fix bug #68074 Allow to use system cipher list instead of hardcoded value
  Avoid double checks
  the order of the blocks should be Core, then exts in alphabetical order
  add missing NEWS entry for the phpdbg compilation fix
  add NEWS entry for #68088
  Make QM_ASSIGN, JMP_SET and CAST return IS_TMP_VAR.
  Removed useless helper
  Drop unused result argument
  Fix ct binding for cuf/cufa functions
  Fix detection of write to built-in function for references
  Test use of string names with \ prefix
  ...
2014-09-24 21:39:49 +02:00
Anatol Belski
70077d84e9 check che right thing to prevent the crash in the timeout thread
Though this seems to be a dead end, the lines CG(timed_out) = 0; looks
like will never be executed in the TS build. Or at least it'll be executed
by luck when the scheduler has decided to let the master thread run for
longer. NTS should be fine with that however.
2014-09-24 20:44:37 +02:00
Dmitry Stogov
6a09bdff6a Fixed C++ incompatibility 2014-09-24 20:31:22 +04:00
Ferenc Kovacs
702829dff5 Merge branch 'PHP-5.6'
* PHP-5.6:
  update the certificate used for the test, as it expired recently
2014-09-24 13:42:32 +02:00
Ferenc Kovacs
d27f3e7b64 update the certificate used for the test, as it expired recently 2014-09-24 13:40:52 +02:00
Dmitry Stogov
8ea2409e44 Fixed immutable arrays support 2014-09-24 15:39:54 +04:00
Nikita Popov
75860fa8e1 Fix counting of "R:" references in serialize() 2014-09-24 12:06:19 +02:00
Nikita Popov
c45924b954 Remove dead code 2014-09-24 12:06:19 +02:00
Nikita Popov
1664e70ade Test use($this) being an error 2014-09-24 12:06:19 +02:00
Nikita Popov
3e042e1f83 Move list() condition into assign_znode
The condition in compile_foreach was using ->attr instead of ->kind
and as such never passed. It only worked because assign_znode already
supported this case by indirecting via zend_compile_assign. Now it
implements it with a direct call.
2014-09-24 12:06:18 +02:00
Remi Collet
5a051e8a1a Merge branch 'PHP-5.6'
* PHP-5.6:
  typo
2014-09-24 10:42:31 +02:00
Remi Collet
44921ca75d typo 2014-09-24 10:42:20 +02:00
Remi Collet
d3bb0ba39f Merge branch 'PHP-5.6'
* PHP-5.6:
  NEWS
  Fix bug #68074 Allow to use system cipher list instead of hardcoded value
2014-09-24 10:36:58 +02:00
Remi Collet
8d2de21b1c NEWS 2014-09-24 10:36:29 +02:00
Remi Collet
0d776ef87b Fix bug #68074 Allow to use system cipher list instead of hardcoded value 2014-09-24 10:34:55 +02:00
Dmitry Stogov
73275a55f5 Avoid double checks 2014-09-24 12:20:46 +04:00
Ferenc Kovacs
7134f19ba2 Merge branch 'PHP-5.6'
* PHP-5.6:
  the order of the blocks should be Core, then exts in alphabetical order
  add missing NEWS entry for the phpdbg compilation fix
2014-09-24 09:41:02 +02:00
Ferenc Kovacs
213d9ee62d the order of the blocks should be Core, then exts in alphabetical order 2014-09-24 09:40:52 +02:00
Ferenc Kovacs
8673394ecc add missing NEWS entry for the phpdbg compilation fix 2014-09-24 09:39:14 +02:00