Dmitry Stogov
17d027ed47
Split IS_BOOL into IS_FALSE and IS_TRUE
12 years ago
Dmitry Stogov
d0ed1212a4
Enable PCRE JIT compiler
12 years ago
Anatol Belski
9eb726b3ab
Fixed bug #67079 Missing MIME types for XML/XSL files
12 years ago
Dmitry Stogov
050d7e38ad
Cleanup (1-st round)
12 years ago
Ferenc Kovacs
7446766dab
add missing skip to the output, so we actually skip this test
12 years ago
Dmitry Stogov
76cc99fe60
Refactored ZVAL flags usage to simplify various checks (e.g. Z_REFCOUNTED(), candidate for GC, etc)
12 years ago
Dmitry Stogov
2e3e96b24b
Fixed zend_string*/char* mess
12 years ago
Dmitry Stogov
232f3e915c
Fixed various CLI problems
12 years ago
Remi Collet
b1df743b7a
man page: long option name is --strip, not --stripped
12 years ago
Remi Collet
c73b0543f1
--global have be removed in 5.2
12 years ago
Xinchen Hui
fb825a95d0
Fixed module name printing
12 years ago
Xinchen Hui
43b03c74b3
Refacting smart_str
12 years ago
Dmitry Stogov
a52817eb02
Use better data structures (incomplete)
12 years ago
Yasuo Ohgaki
cbd108abf1
Implement RFC https://wiki.php.net/rfc/default_encoding
12 years ago
Dmitry Stogov
f4cfaf36e2
Use better data structures (incomplete)
12 years ago
Xinchen Hui
c081ce628f
Bump year
12 years ago
Xinchen Hui
47c9027772
Bump year
12 years ago
Xinchen Hui
c0d060f5c0
Bump year
12 years ago
Kalle Sommer Nielsen
ed5a8d510f
Pass the TSRMLS parameters to the sapi flush hook, this shaves off a few TSRMLS_FETCH() calls in our various SAPIs
12 years ago
Kalle Sommer Nielsen
e6b471933c
Kill yet another TSRMLS_FETCH() inside the CLI HTTP server
12 years ago
Kalle Sommer Nielsen
bd58146ad6
Kill another TSRMLS_FETCH() in the zend extension loading code
12 years ago
Kalle Sommer Nielsen
1433dec2d0
Kill another TSRMLS_FETCH() in zend_indent()
12 years ago
Ard Biesheuvel
f33265d572
cli: don't cast away const in select() timeout argument
The timeout argument to select() is modified to reflect the time
remaining when the function returns on a non-timeout condition.
Passing a pointer to const data and casting away the const-ness is
asking for trouble, but for some reason, this trouble manifests
itself only on non-x86 architectures [whose implementation of select()
in glibc is different from the one supplied for x86]
Fix this by passing a stack copy of the timeout argument to select()
12 years ago
Julien Pauli
ff20a9019d
Fixed a wrong test
12 years ago
Christopher Jones
d0cd112702
This is CLI web server change. Added some common MIME types to the
existing lookup list, pending a more thorough lookup solution, if
anyone wants to do that. Ref http://news.php.net/php.internals/69990
A router can be used to add to, or override, the MIME type lookups,
see http://php.net/manual/en/features.commandline.webserver.php
12 years ago
Andrea Faulds
a3f5b9f62d
Rewrote test using tcp instead of http:// stream
12 years ago
Andrea Faulds
aee271ec0d
Implemented FR #65917 (getallheaders() is not supported by the built-in...)
- Implemented apache_request_headers() and getallheaders() alias in CLI server
- Implemented apache_response_headers() in CLI server using FastCGI code
Conflicts:
NEWS
UPGRADING
12 years ago
Levi Morrison
73c44d6e6a
Fixed assumption that the temporary directory is located in /tmp
12 years ago
Felipe Pena
3aaee86ee3
- Fixed bug #65818 (Segfault with built-in webserver and chunked transfer encoding)
13 years ago
Anatol Belski
8f146c2bb0
Fixed bug #65678 the test cli_process_title_windows will fails on particular environnement
Patch by Pierre Renaudet
13 years ago
Christopher Jones
dfa43d55dd
Added application/pdf to PHP CLI Web Server mime types.
13 years ago
Adam Harvey
3c3b2b5bdc
Handle CLI server request headers case insensitively.
Fixes bug #65633 (built-in server treat some http headers as case-sensitive).
13 years ago
Michael Wallner
bb1f9d3826
slim post data
13 years ago
Michael Wallner
2438490add
slim post data
13 years ago
Christopher Jones
9ad97cd489
Reduce (some) compile noise of 'unused variable' and 'may be used uninitialized' warnings.
13 years ago
Michael Wallner
4a9d7c1f00
add NEWS entry; add simple test
13 years ago
Michael Wallner
14caf174ff
unify stdint type usage
if you need C99 stdint types, just include "php_stdint.h"
13 years ago
Michael Wallner
15c351cc52
add NEWS entry; add simple test
13 years ago
Lior Kaplan
f4b9b20b35
Add built-in web server to invocation list
13 years ago
Lior Kaplan
bcef0ebc2d
Terminology: change embedded web server to built-in web server to align with cli usage
13 years ago
Lior Kaplan
07501dc1a2
Align -B and -E parameter names with cli usage (begin_code and end_code)
13 years ago
Remi Collet
67817a199c
fix typo in php man page
13 years ago
Remi Collet
c940aab789
Fixed Bug #65143 Missing php-cgi man page
Currently php-cgi man page is a simple redirect to
php (CLI) man page.
Could be splited / improved in the future.
13 years ago
Adam Harvey
f5c7fe9202
Fix the spelling of the php_cli_server_http_response_status_code_pair typedef.
Specifically: php_cli_server_http_reponse_status_code_pair →
php_cli_server_http_response_status_code_pair.
13 years ago
Adam Harvey
283f56af66
Change the search in get_status_string() to correctly handle unknown codes.
This previously used a buggy implementation of binary search that would loop
infinitely for unknown codes when searching in reason arrays of particular
sizes (such as the one we have at the moment). Since C provides bsearch(),
we'll just use that instead, since libc authors hopefully get this right.
There was also an additional bug that was masked by the first one: the design
was that an unknown code would result in get_status_string() returning NULL,
which would then result in a segfault in append_http_status_line(), since it
assumed that it would always receive a valid string pointer that could be
handed off to smart_str_appends_ex(). We'll now return a placeholder in that
case.
Fixes bug #65066 (Cli server not responsive when responding with 422 http
status code).
13 years ago
Nuno Lopes
e769025791
leave a sane environment behind (even if empty) when exiting
some OS atexit() handlers call getenv()
13 years ago
Nuno Lopes
1a71bf646e
leave a sane environment behind (even if empty) when exiting
some OS atexit() handlers call getenv()
13 years ago
Xinchen Hui
bed44e562e
missed part of the patch
13 years ago
Xinchen Hui
953f07503a
Fixed bug #64544 (Valgrind warnings after using putenv)
The frozen_envion is needed, since if an item in environ is updated
(like the test script HOME one), invalid free still shows up
13 years ago
Keyur Govande
5bf6323e51
Patch for Bug #64544 .
The process title change module keeps track of the locally allocated
environ, so it doesn't need to worry about when environ changes
underneath it, for example by putenv()/setenv()
13 years ago