Peter Cowburn
5c1c2d725f
broaden php version wildcard in cli server tests (missed a few)
2011-11-11 11:33:23 +00:00
Peter Cowburn
9886e865a3
broaden php version wildcard in cli server tests
2011-11-11 11:26:51 +00:00
Xinchen Hui
ceac9dc490
Fixed bug #60189 (php logo can not be displayed)
2011-11-01 13:06:41 +00:00
Xinchen Hui
ac789e0bb6
Fixed Bug #60180 ($_SERVER["PHP_SELF"] incorrect)
2011-11-01 12:24:02 +00:00
Xinchen Hui
091f279eb0
Fixed bug #60146 (Last 2 lines of page not being output)
2011-10-29 02:14:04 +00:00
Xinchen Hui
6f0d8245a4
Fix test faild on windows due to DEFAULT_SLASH
2011-10-25 10:56:11 +00:00
Xinchen Hui
67ae60f4f5
Fix test, now can run on windows
2011-10-25 10:54:39 +00:00
Xinchen Hui
08d372716c
A better fix, sorry for previous thoughtlessness commit.
2011-10-24 03:47:42 +00:00
Xinchen Hui
d8911efbb6
Fixed PATH_INFO of /index.php/foo/bar
2011-10-24 03:28:59 +00:00
Ferenc Kovacs
8747d2245d
using %s-dev instead of the exact version number
2011-10-23 20:38:53 +00:00
Xinchen Hui
7c1e64e2a6
add tests for PATH_INFO
...
update php_cli_server.inc to support no router server
2011-10-23 13:57:25 +00:00
Xinchen Hui
a6bc3f6c59
fix memory leak
2011-10-23 03:02:24 +00:00
Xinchen Hui
8d467563e2
Fixed bug #60112 If URI does not contain a file, index.php is not served
...
This is a windows Issue.
and after this fix, previously 404 request like "localhost/foo/bar"
now could server correctly with request_uri "index.php" and PATH_INFO "/foo/bar/"
2011-10-23 02:54:06 +00:00
Ferenc Kovacs
64ec41f7d4
stream_socket_server("unix://..." has a length limit, so it is better to use the tmp dir instead of the current test dir for the socket file. see https://bugs.php.net/bug.php?id=60106
2011-10-22 21:44:05 +00:00
Ferenc Kovacs
263ab7e2d4
stream_socket_server("unix://..." has a length limit, so it is better to use the tmp dir instead of the current test dir for the socket file. see https://bugs.php.net/bug.php?id=60106
2011-10-22 21:44:05 +00:00
Moriyoshi Koizumi
2cf34bc9fc
Add SERVER_PROTOCOL variable to $_SERVER. Patch by kuzuha. Thanks.
2011-10-21 05:24:30 +00:00
Ferenc Kovacs
8bbbfadcfe
there is a length limit on the shebang line, ignore the tests for >= 127
2011-10-20 18:09:44 +00:00
Ferenc Kovacs
465cb32c4c
there is a length limit on the shebang line, ignore the tests for >= 127
2011-10-20 18:09:44 +00:00
Xinchen Hui
88c52b0dac
Add tests
2011-09-23 03:09:12 +00:00
Xinchen Hui
8933798d36
Add tests for bug #55755
2011-09-22 02:26:00 +00:00
Xinchen Hui
d603d05398
Fixed bug #55755 (SegFault when outputting header WWW-Authenticate)
2011-09-21 16:00:09 +00:00
Xinchen Hui
0203c31f78
change test, and added a test for post file
2011-09-21 07:51:31 +00:00
Xinchen Hui
c83594cd7a
Remove double checking, and use MAXPATHLEN instead of a fixed length
2011-09-21 06:59:47 +00:00
Xinchen Hui
f3aa34a90d
Change to a more appropriate name
2011-09-21 03:16:35 +00:00
Xinchen Hui
82be5fcc4f
Fixed bug #55747 (request headers missed in $_SERVER)
2011-09-21 03:09:42 +00:00
Shein Alexey
3c365dc3ef
Refactored and speeded up php_cli_server tests, also get rid of test hanging on ubuntu:
...
1) Prepended starting the server with "exec" so proc_terminate can correctly close it (see also this note http://www.php.net/manual/en/function.proc-get-status.php#93382 for details)
2) Moved putting down the server to the shutdown function to make it independent from tests (fatal) errors
3) Moved php cli executable into the function to make tests more readable
4) changed sleep(1) to usleep(50000) (50 ms) to make tests faster - this needs more testing and if timeout is too small should be increased
2011-09-20 14:53:46 +00:00
Xinchen Hui
1b9fbe540e
fix INI section
2011-09-20 08:13:55 +00:00
Xinchen Hui
00bab0493e
Add tests for built-in webserver
2011-09-20 07:10:46 +00:00
Xinchen Hui
5dbf73a866
Fix Bug #55726 (Changing the working directory makes router script inaccessible)
2011-09-20 07:06:55 +00:00
Xinchen Hui
6bd693543b
Fix folder
2011-09-20 05:07:15 +00:00
Dmitry Stogov
4a25a7740d
Fixed ZE specific compile warnings (Bug #55629 )
2011-09-13 13:29:35 +00:00
Xinchen Hui
66bcb34bf4
Fixed Bug #55423(cli-server could not output correctly in some case)
2011-09-07 05:14:54 +00:00
Arpad Ray
8590f2587a
add friendly log messages (req #55109 )
2011-08-29 21:59:27 +00:00
Christopher Jones
04b5bb7d3c
Update log, marking 5.4 and trunk as XFAIL due to bug #55496
2011-08-23 20:59:10 +00:00
Christopher Jones
ab704eb9f6
Update log, marking 5.4 and trunk as XFAIL due to bug #55496
2011-08-23 20:59:10 +00:00
Xinchen Hui
bbf96ebeb1
Added _SERVER[SERVER_SOFTWARE] for built-in server
2011-08-22 15:51:49 +00:00
Xinchen Hui
ef0e483bb3
Fixed #55463 (cli-server missing _SERVER[REMOTE_ADDR])
2011-08-22 11:55:41 +00:00
Pierre Joye
29cb4d8a09
- undefine CALLBACK (btw, generic names like that should be avoided, w/o prefix :)
2011-08-19 11:35:37 +00:00
Pierre Joye
6a0910075d
- fix build
2011-08-19 11:33:59 +00:00
Xinchen Hui
36bfb46ce6
Fixed typo when syncing changes to branch
2011-08-19 08:35:43 +00:00
Xinchen Hui
c296c9148f
Fixed #55450 (Built in web server not accepting file uploads), which might break #55121 fixing(r313677)
...
Reopened #55121 to let somebody redone the fixing(as I can't reproduce 55121 in redhat 64-bit).
2011-08-19 08:30:26 +00:00
Xinchen Hui
9cdb9a80a7
Fixed #55457 for 5.4 branch
...
Use ssize_t instead of long (as pierre suggestion)
2011-08-19 07:40:51 +00:00
Pierre Joye
0fd3f882cd
- do not use 64bit integer instead of size_t (can't be alloc'ed), or when the actual possible values are 32bit or lower only
2011-08-18 09:16:04 +00:00
Pierre Joye
bae911f41b
- WS
2011-08-17 11:59:39 +00:00
Pierre Joye
cef071fd80
- use provided stdint.h and avoid double definitions
2011-08-17 11:56:04 +00:00
Xinchen Hui
6c0c4896b3
Prevented the warning about truncate int to char
2011-08-08 07:12:12 +00:00
Xinchen Hui
43301dae9b
Prevented the warning about truncate int to char
2011-08-08 07:12:12 +00:00
Rasmus Lerdorf
d4a716b19d
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
...
static string copies
2011-08-07 16:10:34 +00:00
Rasmus Lerdorf
46a484e739
Signed 1-bit bitfields make no sense
2011-08-07 15:52:46 +00:00
Rasmus Lerdorf
9eb19ae2bf
Avoid a potential double-free here
2011-08-06 23:42:52 +00:00
Florian Anderiasch
48ec4ace5f
Fix #55121 Segfault with multipart/form-data POST
2011-07-25 16:45:39 +00:00
Moriyoshi Koizumi
8355230480
- Give index.php a precedence over index.html. Patch by davidc.
2011-07-23 11:29:26 +00:00
Moriyoshi Koizumi
56c563dff7
- Show PHP_VERSION in the banner. Suggested by Chris and others.
2011-07-21 07:31:29 +00:00
Moriyoshi Koizumi
7907f66e4b
Fixed bug #55071 . Maybe a bit overkill?
2011-07-20 09:00:20 +00:00
Moriyoshi Koizumi
b0683007c9
- Better error handling.
2011-07-20 08:43:12 +00:00
Moriyoshi Koizumi
a07a4af30b
- Fixed bug #55073 (PHP-CLI-webserver does not listen on ipv6 interfaces), letting getaddrinfo(3) validate IPv6 addresses.
2011-07-20 04:34:01 +00:00
Moriyoshi Koizumi
dacd564031
- Fixed bug #55107 (Null bytes in URL cause insecure behavior (code execution / code disclosure)).
2011-07-19 18:17:25 +00:00
Moriyoshi Koizumi
6b48551c93
- Buffers are local to the blocks where they belong.
2011-07-19 18:00:16 +00:00
Moriyoshi Koizumi
29745da338
- Print HTTP method as well in the log.
...
- Print response code also when the request is processed by a script.
- Those changes partly closes #55109 .
2011-07-19 17:47:34 +00:00
Felipe Pena
93776977d8
- Fixed bug #55076 (requires() fails in a subdirectory with the in-built webserver)
2011-07-06 01:54:54 +00:00
Felipe Pena
7711da059e
- Fixed bug #55118 (Imcomplete start message)
2011-07-03 14:45:41 +00:00
Felipe Pena
71e52a5ccd
- Reverted php_printf -> printf change
2011-07-01 17:18:50 +00:00
Philip Olson
18e0f8a489
Updated name to 'PHP Development Server', and CTRL-C to Ctrl-C, as per PHP bug #55071
2011-06-30 23:50:56 +00:00
David Soria Parra
c1abc8938d
correct error message for a missing document root in the cli webserver
...
the document root is always a directory.
2011-06-29 23:44:02 +00:00
David Soria Parra
54b84f832a
fix #55072 in-built web server needs to check -t option is a directory
2011-06-29 23:29:01 +00:00
Felipe Pena
6cc66ef964
- Fixed crash on invalid addr:port (Chris Jones, Felipe)
2011-06-27 23:18:26 +00:00
Felipe Pena
5304004cc7
- Fixed crash when using -e option
2011-06-25 20:40:03 +00:00
Felipe Pena
29588a6fa3
- Fixed crash when calling sapi_shutdown() and sapi hasn't been started
...
Reported by: David Tajchreber
2011-06-25 14:17:17 +00:00
Felipe Pena
dc467a70d3
- Fixed crash when zend_eval_string bailouts (-r 'a();')
...
Reported by: David Tajchreber
2011-06-25 13:15:24 +00:00
Pierre Joye
0d7226ed60
- reflection is always enabled
2011-06-25 10:47:54 +00:00
Pierre Joye
213e1f4456
- reflection is always enabled
2011-06-25 10:47:54 +00:00
Derick Rethans
8e30050416
- Fixed layout. Tabs on the terminal don't align nicely in most cases.
2011-06-25 10:16:46 +00:00
Pierre Joye
f027884ca1
- fix build
2011-06-21 11:43:19 +00:00
Felipe Pena
8480b7f4be
- Fix memleak on `php -v'
2011-06-21 01:47:05 +00:00
Felipe Pena
b83af94c2b
- Fixed hardcoded INI
2011-06-20 23:36:25 +00:00
Moriyoshi Koizumi
5b921a87a1
- Add built-in web server to CLI SAPI. See the RFC for detail.
2011-06-20 20:27:39 +00:00
Felipe Pena
6a504c6f6b
- Fix missing change from r303357 (related to bug #48831 )
2011-06-11 23:46:35 +00:00
Ilia Alshanetsky
f5779d5e16
Fixed bug #52496 (Zero exit code on option parsing failure).
2011-05-30 15:57:50 +00:00
Ilia Alshanetsky
a65eba016e
Fixed bug #52496 (Zero exit code on option parsing failure).
2011-05-30 15:57:50 +00:00
Pierrick Charron
1bf6d03020
# Fix phpt
2011-05-05 18:30:14 +00:00
Antony Dovgal
829d08e50c
fix CLI tests failing because of new OB API
2011-05-04 08:24:16 +00:00
Pierre Joye
1dc32a24ce
-not needed, buildconf helps...
2011-02-22 13:09:15 +00:00
Pierre Joye
cb8d9f9c19
- missing files
2011-02-22 12:59:50 +00:00
Johannes Schlüter
960e265b6c
Declare vars first. Fix Windows build.
2011-02-22 12:51:43 +00:00
Felipe Pena
b98ceb5e40
- Fixed build
2011-02-19 16:32:00 +00:00
Johannes Schlüter
6c734a6b4c
- Implement FR#53878 Interactive shell should work with shared readline extension
...
# This is useful w/ distributors who like to build all things shared or don't
# provide the readline extension. Or if a user pefers readline's behavior over
# libedit which might be used by the distributor.
2011-02-19 16:04:30 +00:00
Felipe Pena
bc049ccb62
- Fix missing mkdir for bindir (patch by David Tajchreber)
2011-01-23 22:40:35 +00:00
Felipe Pena
927bf09c29
- Year++
2011-01-01 02:19:59 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Jani Taskinen
25aee9cad9
- Implemented FR #53271 , FR #52410 (Building multiple PHP binary SAPIs and one SAPI module the same time)
...
# Bug #53271 , Bug #52410
2010-11-13 23:13:07 +00:00
Jérôme Loyet
e1b87cce1f
- Fixed #52045 (FPM tries to open php.ini from the current dir)
...
- Add php_ini_ignore_cwd to _sapi_module_struct
2010-11-11 17:24:27 +00:00
Pierre Joye
b6d8462ab2
- fix #48831 php -i has different output to php --ini
2010-09-14 10:36:21 +00:00
Pierre Joye
992991fe1b
- fix #48831 php -i has different output to php --ini
2010-09-14 10:36:21 +00:00
Kalle Sommer Nielsen
34b631f679
Pass the TSRMS pointers to sapi_module_struct.log_message, this saves some TSRMLS_FETCH() calls in a few of our SAPI's
2010-08-18 13:34:40 +00:00
Kalle Sommer Nielsen
aae13b29a9
Fixed bug #50804 (Document configure.js --enable-crt-debug)
2010-08-11 22:38:15 +00:00
Kalle Sommer Nielsen
49f22527cc
Fixed bug #50804 (Document configure.js --enable-crt-debug)
2010-08-11 22:38:15 +00:00
Felipe Pena
f2419953d9
- MF5.3: Reverted fix for bug #48930 (due binary compatibility breakage)
...
# To commit a new common fix
2010-06-30 02:30:14 +00:00
Felipe Pena
96bb25e8e7
- Reverted fix for bug #48930 (due binary compatibility breakage)
2010-06-29 11:37:13 +00:00
Felipe Pena
ced29dd706
- Improved initialization
2010-06-27 22:13:41 +00:00
Felipe Pena
22e2302e78
- Improved initialization
2010-06-27 22:13:41 +00:00
Felipe Pena
9b07568c43
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
2010-06-27 21:46:16 +00:00
Felipe Pena
3396a6d185
- Fixed bug #48930 (__COMPILER_HALT_OFFSET__ incorrect in PHP >= 5.3)
2010-06-27 21:46:16 +00:00
Michael Wallner
11d24c1593
* implement new output API, fixing some bugs and implementing some feature
...
requests--let's see what I can dig out of the bugtracker for NEWS--
and while crossing the road:
* implemented new zlib API
* fixed up ext/tidy (what was "s&" in zend_parse_parameters() supposed to do?)
Thanks to Jani and Felipe for pioneering.
2010-05-31 10:29:43 +00:00
Johannes Schlüter
61db5cf98a
- Improved CLI Interactive readline shell (Johannes)
...
. Added cli.pager ini setting to set a pager for output.
. Added cli.prompt ini settingto configure the shell prompt.
. Added shortcut #inisetting=value to change ini settings at run-time.
. Don't terminate shell on fatal errors.
A pager can be a an shell command which will receive the command output on its
STDIN channel
php > #cli.pager=less
php > phpinfo();
(output will appear in the pager)
php > #cli.pager=grep -i readline
php > phpcredits();
Readline => Thies C. Arntzen
php > #cli.pager=
(output appears again direct on the terminal)
A prompt can contain a few escape sequences like
php > #cli.prompt=\e[032m\v \e[031m\b \e[34m\> \e[0m
5.3.99-dev php > //Colorful prompt with version number
A prompt can also contaian PHP code in backticks
php > #cli.prompt=`echo gethostname();` \b \>
guybrush php >
2010-05-20 20:55:33 +00:00
Raphael Geissert
bce8aae080
Document CGI options in the manpage (bug #51718 )
...
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Raphael Geissert
7d4dde57d9
Document CGI options in the manpage (bug #51718 )
...
Patch by Daniel Egeberg
2010-05-11 15:07:31 +00:00
Kalle Sommer Nielsen
febee11285
Removed register_globals
2010-04-21 01:27:22 +00:00
Johannes Schlüter
26af575926
Add ReflectionZendExtension class and --rz option to CLI
2010-03-30 22:35:23 +00:00
Jani Taskinen
af49e58f51
- Reverted r296062 and r296065
2010-03-12 10:28:59 +00:00
Jani Taskinen
06f072cb5e
MFH: Improved / fixed output buffering (Michael Wallner)
2010-03-11 10:24:29 +00:00
Kalle Sommer Nielsen
bf7de28e46
Fixed bug #50795 (man pages have bad whatis entries)
...
- Patch by Debian
2010-02-17 05:32:52 +00:00
Ilia Alshanetsky
8543914732
Update copyright year in the man file
2010-01-04 12:38:07 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Felipe Pena
4411621217
- Fixed bug #50209 (Compiling with libedit cannot find readline.h)
...
(patch by tcallawa at redhat dot com)
2009-12-13 17:06:47 +00:00
Jani Taskinen
4944354eec
- Sync files
2009-12-02 08:22:05 +00:00
Ilia Alshanetsky
9e76501f1e
Fixed test
2009-09-13 13:14:11 +00:00
Pierre Joye
4417646d72
- be sure to get all crt dbg errors in stderr
2009-09-02 20:02:17 +00:00
Jani Taskinen
6dc86facd0
- Fixed bug #48802 (printf() returns incorrect outputted length)
2009-07-23 14:54:04 +00:00
Johannes Schlüter
d4671b904d
Improve wording and drop outdated link
2009-06-29 09:37:06 +00:00
Johannes Schlüter
47be72139d
MFH: It's 2009
2009-06-21 16:44:50 +00:00
Matt Wilmas
d55300298e
MFH: Added zend_eval_stringl and made create_function(), etc. binary-safe
2009-06-05 18:50:32 +00:00
Arnaud Le Blanc
6540730732
MFH: Fix skipif
2009-05-20 10:08:32 +00:00
Hannes Magnusson
e2576c3504
MFH: Inglés gramática
2009-04-09 10:20:02 +00:00
Hannes Magnusson
6cda8a274a
MFH: Fixed bug#47427 (-s outputs, not displays)
2009-04-09 10:07:56 +00:00
Felipe Pena
844ae2f336
- MFH: Fix ZTS build
2009-04-08 00:15:48 +00:00
Arnaud Le Blanc
95b308949c
MFH: Fixed bug #47893 (CLI aborts on non blocking stdout)
2009-04-07 16:11:19 +00:00
Ilia Alshanetsky
71ea95354b
MFH: Corrected fix for bug #46844 to only trigger on the 1st line of CLI
...
opened files.
2009-01-09 17:21:12 +00:00
Marcus Boerger
2aba368462
- MFH Catch exceptions in cli -a
2009-01-02 13:14:49 +00:00
Marcus Boerger
f77719d800
MFH
...
- Changed dl() to be disabled by default. Enabled only when explicitly
registered by the SAPI layer. Enabled only with CLI, CGI and EMBED. (Dmitry)
[DOC]
2008-12-31 14:27:09 +00:00
Marcus Boerger
8bdeb10a08
- MFH Fix test
2008-12-31 12:33:12 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Arnaud Le Blanc
cc2c720912
MFH: Fixed endless loop in cli when ignore_user_abort is on
2008-11-25 03:52:00 +00:00
Arnaud Le Blanc
8c4151ad72
Added header_remove() (chsc at peytz dotdk, Arnaud)
...
[DOC] proto void header_remove([string header_name])
Removes an HTTP header previously set using header()
The header_name parameter is optionnal, all headers are
removed if it is not set
[SAPIs] The header_handler callback in sapi_module_struct has
been changed, it now take a new argument.
When it is set to SAPI_HEADER_DELETE, sapi_header->header is
the name of an header, header_handler has to delete it.
When it is set to SAPI_HEADER_DELETE_ALL, header_handler has
to delete all headers.
When sapi_header_op_enum is SAPI_HEADER_ADD or _REPLACE,
sapi_header->header is in the form "Name: value", header_handler
has to add or replace the given header.
In all cases, header_handler must not free sapi_header or
sapi_header->header. SAPI_HEADER_ADD must be returned if the
header has been added or replaced, or 0 in other cases.
2008-11-13 10:14:04 +00:00
Arnaud Le Blanc
9b0d76d585
Open STDIN and php://stdin streams with the relevant
...
wrapper when the file descriptor is a socket (inetd, etc)
Fixes bug #43731
2008-11-04 21:05:31 +00:00
Rob Richards
a16bcaeb4b
MFH: use getenv
2008-09-30 15:11:05 +00:00
Dmitry Stogov
762d6706d3
Fixed bug #42318 (problem with nm on AIX, not finding object files)
2008-09-01 13:15:31 +00:00
Marcus Boerger
3dadcee60b
- MFH Fix test
2008-08-30 11:32:29 +00:00
Jani Taskinen
13dff74889
fix tests
2008-08-14 20:51:35 +00:00
Antony Dovgal
593e7c7da4
MFH: nuke unused var
2008-08-14 09:46:26 +00:00
Jani Taskinen
e5e6f553a2
MFH
2008-08-13 00:53:28 +00:00
Dmitry Stogov
05376077b3
Fixed bug #45779 (regression with shebang lines processing)
2008-08-12 16:43:53 +00:00
Antony Dovgal
5265201075
fix warnings
2008-07-25 15:05:48 +00:00
Arnaud Le Blanc
aa31988e43
MFH: Allow filters to work on INPUT_SERVER in CLI (bug #44779 )
2008-07-24 09:12:45 +00:00
Antony Dovgal
28a22396d4
MFH: invert the logics - FLAG_FCLOSE -> FLAG_NO_FCLOSE
2008-07-23 11:25:14 +00:00
Felipe Pena
fdfbfb96a1
- MFH: Fixed bug #44246 (closedir() accepts a file resource opened by fopen())
2008-07-22 14:09:24 +00:00
Antony Dovgal
8793440eee
fix test
2008-07-13 09:42:25 +00:00
Nuno Lopes
180a7bef35
add test for the shebang thing
2008-07-06 16:59:39 +00:00
Nuno Lopes
504fe5eedb
fix test for good consoles (tm)
2008-07-06 16:38:18 +00:00
Antony Dovgal
6b68a94242
fix test
2008-06-06 07:45:51 +00:00
Antony Dovgal
b021e04c0e
MFH: fix test
2008-04-07 12:14:04 +00:00