History log of /PHP-8.3/sapi/cli/php_cli_server.c (Results 151 – 175 of 327)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 940e6914 10-Nov-2014 Anatol Belski

fix var usage only when unistd.h available


# c3471cc1 10-Nov-2014 Anatol Belski

cleanup unused variable


# 88ba5a62 10-Nov-2014 Anatol Belski

do portable socket checks

also introduced a portable macro for that


# 8aeffdd7 15-Oct-2014 Anatol Belski

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

plus apache2handler, cli and cgi


# c00424e4 15-Oct-2014 Anatol Belski

bring back all the TSRMLS_FETCH() stuff

for better comparability with the mainstream


# 65eb8ef8 13-Oct-2014 Anatol Belski

fix several datatype mismatch warnings


# aa627174 26-Sep-2014 Anatol Belski

cleanup direct tsrm_ls passing


# 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 ...


# 4db75dc8 22-Sep-2014 Anatol Belski

basic windows fix


# e33f3d3b 20-Sep-2014 Nikita Popov

Move smart_str implementation into Zend/

So we can use it there as well...

For now I've retained the zend_smart_str_public.h header, though
it would probably be better to just m

Move smart_str implementation into Zend/

So we can use it there as well...

For now I've retained the zend_smart_str_public.h header, though
it would probably be better to just move that one struct into
zend_types.h.

show more ...


# 403709aa 20-Sep-2014 krakjoe

fix wrong doings


# b3aebda9 20-Sep-2014 krakjoe

native tls initial patch


# 31e84247 19-Sep-2014 Nikita Popov

Make number printing functions less generic

Now that zend_ulong is 64bit on 64bit platforms, it should be
sufficient to always use it, rather than supporting multiple
types.

Make number printing functions less generic

Now that zend_ulong is 64bit on 64bit platforms, it should be
sufficient to always use it, rather than supporting multiple
types.

API changes:
* _zend_print_unsigned_to_buf and _zend_print_signed_to_buf
no longer exist.
* smart_str(ing)_print_long and smart_str(ing)_print_unsigned
no longer exist.
* Instead of all these, zend_print_ulong_to_buf and
zend_print_long_to_buf should be used.
* smart_str_append_generic_ex no longer exists.
* smart_str(ing)_append_off_t(_ex) no longer exists, use
smart_str(ing)_append_long(_ex) instead.

show more ...


# 37aaccad 19-Sep-2014 Nikita Popov

Use inline functions for most of smart_str

smart_str_free_ex no longer exists, always use smart_str_free instead.

smart_str_alloc no longer requires a newlen variable to be in scope

Use inline functions for most of smart_str

smart_str_free_ex no longer exists, always use smart_str_free instead.

smart_str_alloc no longer requires a newlen variable to be in scope,
instead it returns the new length.

show more ...


# d0cb7153 19-Sep-2014 Johannes Schlüter

s/PHP 5/PHP 7/


# 455741fc 25-Aug-2014 Anatol Belski

master renames phase 4


# 4d997f63 25-Aug-2014 Anatol Belski

master renames phase 3


# c3e3c98e 25-Aug-2014 Anatol Belski

master renames phase 1


# cb25136f 16-Aug-2014 Anatol Belski

fix macros in the 5 basic extensions


# a08b7b77 13-Aug-2014 Dmitry Stogov

cleanup


# 5a06ac88 13-Aug-2014 Dmitry Stogov

cleanup (use zend_string* instead of char*)


# 1684ba3c 12-Jul-2014 Tjerk Meesters

Fix #67594 - invisible colon should be stripped off header name


Revision tags: php-5.4.31RC1, php-5.5.15RC1
# 604de67b 07-Jul-2014 Adam Harvey

Fixed bug #66830 (Empty header causes PHP built-in web server to hang).

We had an infinite loop in sapi_cli_server_send_headers(): while iterating over
the linked list of headers, when a

Fixed bug #66830 (Empty header causes PHP built-in web server to hang).

We had an infinite loop in sapi_cli_server_send_headers(): while iterating over
the linked list of headers, when an empty header was hit, continue would go to
the next iteration of the loop without updating h to be the next value in the
linked list. Updating it to always increment regardless of whether the header
is actually valid or not fixes the issue.

show more ...


Revision tags: php-5.6.0RC2, php-5.4.30, php-5.5.14, php-5.6.0RC1
# fe676748 13-Jun-2014 Adam Harvey

Add 308 and 426 to the HTTP response code map in the CLI server.

Implements FR #67429 (CLI server is missing some new HTTP response codes).


Revision tags: php-5.5.14RC1, php-5.4.30RC1
# 8c59ae34 11-Jun-2014 Adam Harvey

Move the mime type map out of php_cli_server.c for easier generation.


12345678910>>...14