History log of /PHP-8.4/Zend/zend.c (Results 301 – 325 of 847)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# bdeb220f 13-Dec-2014 Anatol Belski

first shot remove TSRMLS_* things


# 3affc0e8 12-Dec-2014 Anatol Belski

Fixed bug #68583 Crash in timeout thread

This replaces the GUI element used for execution timeout handling
on Windows. Instead a timer queue technique is used, which is indeed
a thre

Fixed bug #68583 Crash in timeout thread

This replaces the GUI element used for execution timeout handling
on Windows. Instead a timer queue technique is used, which is indeed
a thread pool. A timer queue timer is a lightweight object handled
but that thread pool and the timer thread spends most of the time
sleeping and waiting for an alert.

Please note also that this introduces neither binary nor source
breach. The custom timeout thread functions are deleted, however
they was not exported throug DLL, so couldn't be used by any
external code. As well they couldn't be used anywhere in the core
except in executor api, because those custom timeout thread
functions they used to operate on static variables which would
be overwritten (and that would blow).

So instead a relatively modern technique is used for the timeout
handling. It's still not perfect because the executor still has to
check EX(timed_out). This can be a topic for an improvement in
master. But brobably can be tricky as currently it seems to be not
possible to signal an individual thread. Also note another issue
that static variables aren't thread safe, but the current timer
implementation is.

show more ...


Revision tags: php-5.6.4RC1, php-5.5.20RC1, php-5.6.3, php-5.5.19, php-5.4.35, php-5.6.3RC1, php-5.5.19RC1
# 944d2c65 22-Oct-2014 Anatol Belski

fix datatype mismatches


# 8aeffdd7 15-Oct-2014 Anatol Belski

moved most of the core to use static tsrm ls cache pointer

plus apache2handler, cli and cgi


Revision tags: php-5.5.18
# c00424e4 15-Oct-2014 Anatol Belski

bring back all the TSRMLS_FETCH() stuff

for better comparability with the mainstream


Revision tags: php-5.4.34
# c96a6b44 12-Oct-2014 Anatol Belski

DLL export several APIs needed for phpdbg


# df79b9b2 09-Oct-2014 Nikita Popov

Update get_class_name semantics

* get_class_name is now only used for displaying the class name
in debugging functions like var_dump, print_r, etc. It is no
longer used in get

Update get_class_name semantics

* get_class_name is now only used for displaying the class name
in debugging functions like var_dump, print_r, etc. It is no
longer used in get_class() etc.
* As it is no longer used in get_parent_class() the parent
argument is now gone. This also fixes incorrect parent classes
being reported in COM.
* get_class_name is now always required (previously some places
made it optional and some required it) and is also required
to return a non-NULL value.
* Remove zend_get_object_classname. This also fixes a number of
potential leaks due to incorrect usage of this function.

show more ...


# 741bf0ee 06-Oct-2014 Anatol Belski

fix the empty_strings SAPI shutdown leak in TS build

still the NTS variant is somewhat different as it needs
zend_new_interned_string_int because the normal callbacks might
be not in

fix the empty_strings SAPI shutdown leak in TS build

still the NTS variant is somewhat different as it needs
zend_new_interned_string_int because the normal callbacks might
be not initialized, but at least no leaks anymore and some more
structure

show more ...


# 72b34e13 06-Oct-2014 Anatol Belski

fix leaking the empty_string in TS builds


Revision tags: php-5.5.18RC1, php-5.6.1, php-5.6.2, php-5.4.33, php-5.5.17, php-5.6.1RC1
# e756333b 09-Sep-2014 Nikita Popov

Remove <% and <script language="php"> tags

As per https://wiki.php.net/rfc/remove_alternative_php_tags.

Removes:
* <% opening tag
* %> closing tag
* <%= short opening

Remove <% and <script language="php"> tags

As per https://wiki.php.net/rfc/remove_alternative_php_tags.

Removes:
* <% opening tag
* %> closing tag
* <%= short opening tag
* /<script\s+language\s*=\s*(php|"php"|'php')\s*>/i opening tag
* /</script>/i closing tag
* asp_tags ini directive

show more ...


# 76081df1 01-Oct-2014 Anatol Belski

using pointer to the tsrm ls cache instead of a function call

yet another approach


# 06d0230a 26-Sep-2014 Anatol Belski

cleanup TSRMLS_FETCH


# d11734b4 25-Sep-2014 Anatol Belski

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

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.

show more ...


# 22fbfdfb 23-Sep-2014 Xinchen Hui

Simply make_printable_zval

it's possible to remove make_printable_zval at all
but it will be a API break


# b3aebda9 20-Sep-2014 krakjoe

native tls initial patch


# 3e71f5ff 20-Sep-2014 Xinchen Hui

Fixed built on OSX


# bccc6531 19-Sep-2014 Dmitry Stogov

Avoid double IS_INTERNED() check


# 21514b0d 18-Sep-2014 Dmitry Stogov

Fix for Clang


# 761e347b 18-Sep-2014 Anatol Belski

that's not char * but zend_string *


# fb848ebd 18-Sep-2014 Anatol Belski

ups, this is not needed


# e8b497ad 18-Sep-2014 Anatol Belski

fix CG(empty_string) init in ZTS


# 079409bb 15-Sep-2014 Nikita Popov

Switch (un)mangle property name to size_t and zend_string

Also use the _ex variants where possible.


# 345b0f44 13-Sep-2014 Nikita Popov

Use more accurate sizeof

This is allocating an array of zval*s, not zval**s.


# 9ee4a40f 08-Sep-2014 Anatol Belski

made Visual Studio to understand that zend_error_noreturn() will not return

- windows only, on linux gcc would cause a warning that the function returns,
as no noreturn functions are u

made Visual Studio to understand that zend_error_noreturn() will not return

- windows only, on linux gcc would cause a warning that the function returns,
as no noreturn functions are used
- ZEND_NORETURN works on windows as well now, using __declspec(noreturn),
which is useful for the other cases
- one more function call will be needed, which is not critical for the
error reporting
- the way is open to enable the same for gcc as soon as it's not causing a warning

show more ...


Revision tags: php-5.5.17RC1, php-5.4.33RC1
# d5b0606a 01-Sep-2014 Stanislav Malyshev

Reintroduce fix from pull #770 in a PHP 7 way


1...<<11121314151617181920>>...34