Wez Furlong
a3cda3b32d
Hopefully fix the other warnings that my last warning-fixing commit caused.
2002-09-23 15:21:16 +00:00
Wez Furlong
ad4afdf827
fix some warnings.
2002-09-23 14:50:21 +00:00
Zeev Suraski
85f4abfdac
Fix bug #19525
2002-09-23 14:18:42 +00:00
Wez Furlong
9e84b3d5b5
Revise buffer/seek code a little.
...
Tidy up user streams even more.
Make test case quite aggressive.
2002-09-23 13:22:10 +00:00
Zeev Suraski
2f4ed252de
Compat fix
2002-09-23 12:10:07 +00:00
Wez Furlong
4d8a07d529
Implement read buffering in streams.
...
Eliminate similar code from network.c.
Implement fgets equivalent at the streams level, which can detect
the mac, dos and unix line endings and handle them appropriately.
The default behaviour is unix (and dos) line endings.
An ini option to control this behaviour will follow.
# Don't forget to make clean!
# I've done some testing but would appreciate feedback from
# people with scripts/extensions that seek around a lot.
2002-09-23 01:47:04 +00:00
Ilia Alshanetsky
e489ee946e
Fixed bug #19395
2002-09-22 18:30:38 +00:00
Sander Roobol
90407dbf3e
Changing the magic_quotes_gpc setting has no effect at USER level
...
# this partially fixes the #19526 shit
2002-09-20 18:07:48 +00:00
Colin Viebrock
14a6cc8847
Change phpinfo() to use CSS styling instead of HTML code.
...
It doesn't render as nicely as it used to on older browsers, but it
does result in smaller files, and opens the door to using your own CSS
to style it differently.
There is a patch to Zend/zend_ini.c, but I don't have enough Karma, so
Derick has the patch.
2002-09-19 21:57:25 +00:00
Zeev Suraski
3ae3eb06e9
Fix connection_status()
2002-09-19 15:54:23 +00:00
Zeev Suraski
76312b4508
another startup initialization fix - only ISAPI and CGI SAPI's tested,
...
minor compile buglets might occur in other SAPIs, but should be trivial
to fix...
2002-09-18 21:57:42 +00:00
Wez Furlong
ff7bece5bb
Tidy up some user stream code.
...
Add a small test case (not yet complete).
2002-09-18 10:15:40 +00:00
Zeev Suraski
31429c60db
Call zend_post_startup() - use local copies of the function, class and
...
constant tables in the startup thread
2002-09-17 09:07:10 +00:00
Stefan Esser
714eb8069a
made new ssl activate function the default.
2002-09-12 21:52:09 +00:00
Anantha Kesari H Y
d3642b5488
NetWare related changes/modifications
2002-09-11 09:30:01 +00:00
Anantha Kesari H Y
3313593ff3
NetWare related changes/modifications
2002-09-09 12:03:36 +00:00
Anantha Kesari H Y
3798528753
NetWare related changes/modifications
2002-09-09 11:43:50 +00:00
Anantha Kesari H Y
1b18be126d
NetWare related changes/modifications
2002-09-09 11:31:03 +00:00
Anantha Kesari H Y
1e09610f45
NetWare related changes/modifications
2002-09-09 11:23:11 +00:00
Anantha Kesari H Y
fa94fc6384
NetWare related changes/modifications
2002-09-09 11:17:40 +00:00
Anantha Kesari H Y
e4b9df9585
NetWare related changes/modifications
2002-09-09 10:56:28 +00:00
Stefan Esser
cbf5e3ca06
Added possibility to reuse an old SSL session id.
...
Ugly but needed for f.e.: debians ftpd-ssl
2002-09-08 22:26:11 +00:00
Yasuo Ohgaki
71fb0299d1
Added missing charset.
2002-09-08 01:06:29 +00:00
Yasuo Ohgaki
b83255aab0
Fix last commit. This line isn't supposed to be replaced.
2002-09-08 00:27:05 +00:00
Yasuo Ohgaki
17e0d9c642
MFB
2002-09-07 21:04:14 +00:00
Wez Furlong
3df412cf9b
Fix a couple of bad pointer indirections (oops).
...
Lets stick to a single category of "http" for the "user_agent"
context override.
2002-09-07 20:58:30 +00:00
Wez Furlong
759a0068aa
Tag user streams as being URLs, so that safe mode restrictions
...
will come into play.
2002-09-07 18:59:18 +00:00
Hartmut Holzgraefe
431b903e97
WebDAV MKCOL can have post data body, see rfc2518 8.3.1
2002-09-07 17:48:51 +00:00
Anantha Kesari H Y
8b8f1e0590
NetWare related additions/modifications
2002-09-05 14:25:07 +00:00
Stefan Esser
27e2bc2f55
This 2 lines should have been removed when the header() code was rewritten.
2002-09-04 20:27:35 +00:00
Sebastian Bergmann
419321979d
Don't build ext/overload with Zend Engine 2.
2002-09-04 13:55:52 +00:00
Rui Hirokawa
7678ada2b8
--enable-mbstr-enc-trans is abolished to prevent some problems about POST/GET/Cookie variables. the same functionality is controllable in php.ini option mbstring.encoding_translation (default:Off).
2002-09-03 05:18:20 +00:00
Markus Fischer
f07b724620
- Enable strcoll() for win32 build
...
# Maybe I'm missing something. PHP has strcoll() since 4.0.5 but HAVE_STRCOLL
# was always only available under Unix, no one activated it for Win32 since
# then?
#
# Test to show it works:
# <? $a=array("a", "z", "ä"); setlocale(LC_ALL, "German"); usort($a, "strcoll"); var_dump($a); ?>
#
# Output:
# array(3) {
# [0]=>
# string(1) "a"
# [1]=>
# string(1) "ä"
# [2]=>
# string(1) "z"
# }
#
# Thanks to a comment found on the usort() page and to a dlcp post about a
# similar issue.
#
# Worth for a MFH for 4.2.3, anyone ?
2002-09-02 18:03:24 +00:00
Sebastian Bergmann
714c19fe66
Per discussion on #php.bugs (+1 from at least Derick and Jani), revert double_buffering.
2002-09-01 11:33:19 +00:00
Jan Lehnardt
d6497fc96e
- reenable "no value" output. thanks to sebastian for pointing that out.
2002-08-29 10:24:02 +00:00
Jan Lehnardt
6676617693
- add phpinfo() support for CLI.
...
@phpinfo() support for CLI (jan)
2002-08-28 22:31:51 +00:00
Sebastian Bergmann
e8b50bc834
Fix ZTS build.
2002-08-25 22:17:56 +00:00
Marcus Boerger
a1f7bb12f1
use php_error_docref()
2002-08-25 18:45:02 +00:00
Marcus Boerger
8638bb882f
Removed __output_handler as everybody seems against such implicit
...
behaviour. Instead supply error message.
2002-08-25 14:20:37 +00:00
Marcus Boerger
6d97e0c3eb
Use zend_is_callable() instead of php_check_object_method_array() and
...
drop the latter. THX to Markus Fischer - i did not recognize this function.
@Expanded ob_start() to allow object parameters without methodnames and
@use default method __output_handler(). (Marcus)
2002-08-25 12:16:48 +00:00
Wez Furlong
95ffc663d9
Fix open_basedir.
2002-08-25 12:10:17 +00:00
Marcus Boerger
08ab630dc7
Reenable array(object,method) in ob_start()
2002-08-25 11:50:25 +00:00
Wez Furlong
e286b286ae
Hopefully really fix #18022 this time.
2002-08-25 11:23:19 +00:00
Wez Furlong
6d2fb45328
Potential fix for Bug#18022:
...
Streams that are pipes on systems that HAVE_FLUSHIO should not be seeked
as is required for plain files on those systems.
2002-08-25 11:02:05 +00:00
Wez Furlong
509ad5ec0f
Unify error messages.
2002-08-25 10:36:08 +00:00
Wez Furlong
c7be7b55d1
Add a "closing" parameter for filters to determine if a flush is the last
...
flush before the stream is closed. This allows filters to finish a chunk
and write footers etc.
2002-08-25 10:26:58 +00:00
Wez Furlong
27adb75585
Remove php_stream_error as discussed with Rasmus.
...
Unify error messages for ext/ftp. (which was using php_stream_error).
2002-08-25 10:10:23 +00:00
Wez Furlong
2a71d7d5bb
Respect safe mode setting when opening scripts and things for the ZE.
2002-08-23 17:39:20 +00:00
Zeev Suraski
a6e8e72372
Fix ob_gzhandler()'s handling of requests w/o compression but that do have
...
the Accept-Encoding header
2002-08-23 08:37:35 +00:00
Wez Furlong
3d8b6c2d52
Add a configure check to see if the seeker function in an fopencookie
...
uses off_t or the newer, more portable "fpos_t *".
The check could perhaps be more refined, as the test program will segfault
on older systems (like mine) that use off_t.
2002-08-22 22:28:19 +00:00
Wez Furlong
5718112088
Fix compile warnings under win32
2002-08-22 17:42:18 +00:00
Marcus Boerger
28970b9260
fix warning
2002-08-22 10:52:40 +00:00
Marcus Boerger
4c1f3dec65
fix php_error_docref parameters
2002-08-22 10:16:03 +00:00
Christian Stocker
55f3ec1af4
do not check for POST twice
2002-08-22 07:56:39 +00:00
Christian Stocker
9495fb9d7d
@ - Added php.ini option "allow_webdav_methods" to allow handling of
...
@ WebDAV http requests within PHP scripts. (chregu)
# More methods (for DeltaV) will follow.
2002-08-22 07:48:23 +00:00
Marcus Boerger
5e7a9af062
full decopling of size parameters of ob_start() and internal buffer handlers
...
#intended behaviour is now fully implemented,
2002-08-21 03:04:17 +00:00
Marcus Boerger
b6cf2bb4bc
make snprintf and f,g,G converions of snprintf/spprintf C99 complient
2002-08-21 01:11:50 +00:00
Marcus Boerger
b98c26382f
Ignore double_buffering for ob_start().
2002-08-21 01:00:56 +00:00
Marcus Boerger
8e10659648
Revert ob_start() defaults to 40K/10K until i find a better solution.
2002-08-20 23:23:25 +00:00
Wez Furlong
03b8214b9d
Fix newly introduced leak in the debug build.
2002-08-20 22:08:55 +00:00
Wez Furlong
9d348ea800
Implement filter API for streams.
...
Filters can be stacked onto a stream; more details will follow in docs and
on php-dev.
Implement "string.rot13" filter
Allows the following script:
$fp = fopen("file.txt", "r");
stream_filter_prepend($fp, "string.rot13");
// File contents will be subject to a rot13 transformation before
// being output.
fpassthru($fp);
fclose($fp);
2002-08-20 20:47:47 +00:00
Marcus Boerger
2a443b2e77
Changed handling of output buffer sizes.
...
@Added php.ini option "double_buffering" that forces an additional first
@output buffer and improved handling of buffer sizes. (Marcus)
2002-08-20 19:49:37 +00:00
Wez Furlong
5f9a5a7c8e
Remove php_stream_sock_set_blocking and replace with
...
php_stream_set_option which can be used in a similar way as ioctl()
to set options for streams.
Current options include buffering and blocking support.
o Buffer control is support for stdio based streams.
o Blocking/non-blocking is supported for stdio and socket based streams.
2002-08-19 22:59:10 +00:00
Zeev Suraski
bc906117bb
Fix a few warnings
2002-08-19 20:47:55 +00:00
Marcus Boerger
8b30aeacd8
-use of php_error_docref
...
-some more information in ob_get_status()
2002-08-19 18:47:23 +00:00
Marcus Boerger
3408366776
-allow changing html_errors any time changing display_errors is already
...
-use sizeof for strftime call
-removed unused #define
-mention CODING_STANDARDS as documentation
2002-08-19 18:40:28 +00:00
Stig Venaas
fcc0380588
Added --enable-ipv6 and only look up AAAA in DNS when enabled
2002-08-17 13:56:39 +00:00
Stefan Esser
20693c1ad4
IE does not use quotes but now we are safe...
2002-08-17 11:48:21 +00:00
Stefan Esser
ecaa0a091a
fixed the user supplied patch for bug #18792
2002-08-17 11:31:06 +00:00
Dan Kalowsky
6c22f90b4a
Fix for bug #18792 submitted by t.bubeck@reinform.de
...
# talked this over with sterling and he believes it shouldn't break anything
# although there might be a need/desire to check for both ',' and ';'
2002-08-16 19:34:43 +00:00
Wez Furlong
2e4b6ef181
Fix a little leak.
2002-08-16 12:02:42 +00:00
Wez Furlong
c2cbae6dd3
Enhance Ilia's recent patch to query the wrapper subsystem to determine
...
if a filename is a URL and thus if safe-mode checks should be skipped.
2002-08-16 09:50:24 +00:00
Ilia Alshanetsky
a643ae656a
Make https:// be exempt from safe_mode checks, just like http:// & ftp:// are.
2002-08-16 03:52:37 +00:00
Dan Kalowsky
1b8dd7f355
silencing some windows build warnings
2002-08-15 00:41:35 +00:00
Dan Kalowsky
4feff54879
Correcting as per discussion with Iliaa and Edin on efnet://#php.bugs
2002-08-13 14:56:50 +00:00
Dan Kalowsky
1027dfcdd1
Bug Fix #16113 , as reflective of a php-dev convo between wez and iliaa
2002-08-13 14:39:03 +00:00
Marcus Boerger
968721bc55
allow target anchor only for docref parameter
2002-08-13 09:37:51 +00:00
Rasmus Lerdorf
3ffe4cb1ff
bool not boolean
2002-08-13 04:37:28 +00:00
Rasmus Lerdorf
34362341e9
Use int, not integer.
2002-08-13 04:31:59 +00:00
Marcus Boerger
1134977baf
fix for extension = ""
...
make php_verror available
2002-08-12 20:12:31 +00:00
Marcus Boerger
11611d0781
increase allocation chunks
2002-08-12 14:02:51 +00:00
Edin Kadribasic
553b7d27bf
Export spprintf() so that extension can link properly on win32.
2002-08-12 09:07:26 +00:00
Preston L. Bannister
e1658ed6c4
Minor cleanups to path building and php*.ini search logic.
...
Made path_seperator string static (which solves the lookup problems Sebastian saw).
2002-08-12 05:37:03 +00:00
Wez Furlong
bcef712ad6
Properly implement TSRM parameters to the new log_error
...
function... (Thanks Marcus!)
Add a convenience macro for importing a stream from a zval.
2002-08-11 14:29:01 +00:00
Wez Furlong
94be838dc1
More verbosity when activating SSL on a socket fails.
2002-08-11 11:25:24 +00:00
Wez Furlong
5a21ab42cb
Introduce an error stack for wrappers, to help prevent multiple errors
...
and warnings (some of which are bogus) when there are problems opening
streams.
Implement sanity check on the mode used to open ftp and http connections.
This fixes Bug 12004.
2002-08-11 10:53:10 +00:00
Wez Furlong
1861f1bae3
Minor fix for html_errors=on in php_error_docref.
2002-08-11 09:52:06 +00:00
Wez Furlong
1144bdb04d
remove obsolete TSRMLS_FETCH
2002-08-10 20:20:55 +00:00
Marcus Boerger
21903dfc7e
corrected handling of internal output buffers
...
minor fixs
2002-08-10 16:12:36 +00:00
Sebastian Bergmann
7c08781d50
Fix ZTS builds.
2002-08-10 03:03:03 +00:00
Marcus Boerger
9c8ba935d6
Improved handling of output buffers (see news)\n#No trim for the string parameter...
2002-08-09 22:29:58 +00:00
Marcus Boerger
2e29e53e00
docref shall either be NULL or a reference to a manual page without an
...
extension or an external reference starting with 'http://'.
2002-08-09 21:57:03 +00:00
Wez Furlong
ccb5c84b6c
Centralize some blocking socket related code.
...
# It's been a while since I wrote this!
2002-08-09 21:02:36 +00:00
James Cox
1ae29d455c
@Copy() fixed to return 1 on 0 byte files. Patch by Ilia A <ilia@prohost.org>.
2002-08-09 00:33:06 +00:00
Marcus Boerger
e11e0b0ec0
No missleading
2002-08-08 22:11:24 +00:00
Marcus Boerger
976a91a55b
Say FIXME to non function calls and non TSRM builds. Both will currentls
...
not show a default reference.
2002-08-08 19:36:49 +00:00
Marcus Boerger
88c385e817
rename php_error_func<n> to php_error_docref and support Wez idea
...
that solves ToDo requirement to point to PHP Manual in error messages.
2002-08-08 19:12:27 +00:00
Stefan Esser
6f822fdcb7
A full hard disk is no reason to leak memory...
2002-08-08 12:40:51 +00:00
Yasuo Ohgaki
6ad0dbf5fa
Add some assertion
2002-08-08 03:08:54 +00:00
Marcus Boerger
e50228ab5b
-new functions php_error_func<0> to support unified error messages
...
#read followup
2002-08-07 18:29:36 +00:00
Marcus Boerger
6d21c9465d
Added php_ob_handler_used to check if a specific output handler is used
...
in c.
2002-08-05 18:54:53 +00:00
Marcus Boerger
abc7041ca2
-keep mimetype until sapi deactivation
...
-move NULL check for sapi_apply_default_charset to proper position.
2002-08-05 18:32:05 +00:00
Marcus Boerger
fd26a5c0a9
-New function ob_list_handlers
...
@- Added ob_list_handlers() which returns an array of all active output
@ handlers. (marcus)
2002-08-05 03:09:42 +00:00
Rasmus Lerdorf
c8bf165242
Yup, sizeof() includes the space for the \0
2002-08-03 14:09:56 +00:00
Marcus Boerger
de8c36dcaa
-use const to clarify code
...
-fix tsrmls build (therefore rfc1867.c)
2002-08-02 10:22:31 +00:00
Rui Hirokawa
7527bf0c58
made sapi_register_treat_data() to support multibyte input encoding translation without MBSTR_ENC_TRANS and changed php_treat_data to php_default_treat_data.
2002-08-02 06:53:48 +00:00
Stefan Roehrich
f871a5b742
Fixed wrong usage of strncmp.
2002-08-01 21:12:09 +00:00
Marcus Boerger
be0a6f4949
- free mimetype and statusline early if no longer needed or in deactivation
...
#not setting them to NULL caused the segfault
2002-08-01 09:00:30 +00:00
Rasmus Lerdorf
7b9036cada
Need room for the \0 here to avoid an overflow
2002-08-01 07:49:53 +00:00
Marcus Boerger
4e05dd7c1b
-problem with CLI/mbstring/output buffering
2002-07-31 17:55:15 +00:00
Zeev Suraski
a842e12ad2
Fix for non-mbstring builds. Bad Yasuo! :)
2002-07-31 16:25:12 +00:00
Edin Kadribasic
8f94a8a744
First try to open php-SAPI.ini and if it fails fall back to regular
...
php.ini file. For example cli version of PHP will first try to open
php-cli.ini in the usual ini file search path and only if it fails
will it try to open php.ini using the same path.
2002-07-29 12:17:34 +00:00
Stefan Roehrich
6f786ebf3e
Commit patch as discussed on LinuxTag and posted to php-dev in June.
...
Disables zlib.output_compression for scripts with image/ content-type
header (fixes bug #16109 ) and makes it possible to switch
zlib.output_compression during script execution before the headers are
sent.
@- zlib.output_compression is disabled for "image/" content-type
@ headers and can be changed during script execution. (Stefan)
2002-07-28 14:08:08 +00:00
Yasuo Ohgaki
92e542db27
Fixed some.php?a&b&c does not initilize $_GET['a'], $_GET['b'], $_GET['c']
...
when mbstr-enc-trans is disabled.
# There is a bug in php_mbstr_encoding_handler() alo, I'll fix it later.
2002-07-28 04:18:40 +00:00
Rui Hirokawa
fbbeaec630
fixed: output encoding translation by mb_output_handler() in ext/mbstring was not usable when Content-Type is set by header().
2002-07-27 13:58:16 +00:00
foobar
2dbd41869c
Allow setting post_max_size and upload_max_filesize in .htaccess files too
2002-07-25 17:31:34 +00:00
Stefan Esser
3e05678842
do not dtor empty elements
2002-07-25 09:33:26 +00:00
Stefan Esser
5b3ee5f27a
break out if there is no data to work on.
2002-07-24 11:25:36 +00:00
Jason Greene
a64eceef59
Switch streams socket abstraction to use a timeval structure instead of an
...
integer to allow subsecond timeouts.
This supports the previous behavior of fsockopen()
Fixes bug #16261
2002-07-22 18:46:26 +00:00
Jason Greene
217ef0d115
Fix feof() on win32
...
Bug #18436
2002-07-19 20:34:35 +00:00
foobar
887e1ffe57
ws fix
2002-07-19 16:22:36 +00:00
Derick Rethans
9ae8c39bab
- set_time_limit() now returns whether it succeeded in changing the time
...
limit.
2002-07-17 08:06:43 +00:00
Yasuo Ohgaki
f4f8726b9e
Accoding to safe_mode.h, php_checkuid() has six modes.
2002-07-17 05:15:17 +00:00
Stefan Esser
11ac4e035c
use Zend API to access llist count
2002-07-15 16:37:15 +00:00
foobar
02d3e99bf2
IF --disable-mbstr-enc-trans is used OR mbstring is compiled as shared
...
extension, these functions are not available.
2002-07-14 00:27:52 +00:00
foobar
6f10116237
Fix bug: #18285 , php_checkuid() mangled the passed path.
2002-07-13 00:52:18 +00:00
foobar
c7a68b78a7
- Fixed bug: #18268 . If pcre is build as shared extension, we can't use
...
php_pcre_replace() here.
- Cleaned up a bit.
2002-07-13 00:15:22 +00:00
foobar
ed58d3a235
- Added predefined constants for the upload errors.
...
- Removed the debugging error (not useful for end-users)
2002-07-12 01:49:58 +00:00
Derick Rethans
6819ee3624
- Fix for bug #18283
...
#- It doesn't work from within a script anyways
2002-07-11 19:38:08 +00:00
foobar
2afacbf1cf
These two can not be set in script. (so that they would have any effect)
2002-07-08 06:51:41 +00:00
foobar
6a83870c49
Fix typo
2002-07-05 18:32:08 +00:00
Rui Hirokawa
ead78e9125
fixed shift_jis character corruption including 0x5c as second byte following a slash on uploaded filename.
2002-07-05 15:06:39 +00:00
Sebastian Bergmann
0e52055f70
Fix ZTS build.
2002-07-03 21:07:24 +00:00
Frank M. Kromann
720f4b8365
Added MBSTR_ENC_TRANS to allow compilation and linking under win32
2002-07-03 18:44:40 +00:00
Rui Hirokawa
bb21c40738
fixed shift_jis character corruption including 0x5c as second byte on uploaded filename.
2002-07-03 13:36:19 +00:00
Sascha Schumann
fee236fb80
fix typo
2002-07-03 10:47:16 +00:00
Sascha Schumann
9c876ea01a
Add sapi_header_op interface which supersedes the sapi_add_header and _ex
...
calls.
Revert the change to the sapi_add_header_ex interface.
Fix various bugs:
1. header("HTTP/1.0 306 foo");
header("Location: absolute-uri");
did not work in combination with several SAPI modules, because
http_status_line was never properly reset. And thus, all SAPI
modules which looked at http_status_line ignored the changed
http_response_code.
2. The CGI SAPI did not send out the HTTP status line at all, if
http_status_line had not been set explicitly by calling
header("HTTP/1.0 200 foo");
2002-07-03 10:42:31 +00:00
Derick Rethans
d73eed9210
- No C++ comments
2002-07-01 18:52:30 +00:00
foobar
4b321b0430
Fix win32 build.
2002-07-01 09:00:00 +00:00
Sander Roobol
d325d07b1a
Main script should not be parsed when (include|require)_once()'ed, #17720
...
# Derick, MFH?
2002-06-30 13:38:16 +00:00
Marcus Boerger
d96924ffc5
-xbuf_resize does not need to have return value
2002-06-26 21:03:28 +00:00
Derick Rethans
d812929d2f
- Implement Andrei's request for disabling memory leak reporting in debug
...
builds.
#- Andrei: I can show you the logs :)
2002-06-26 19:43:46 +00:00
Marcus Boerger
302bfefac7
explain difference between sprintf, snprintf and spprintf
...
#before complaining snprintf is often used wrong:
#snprintf does not terminate the buffer but most people expect it
#that could be a security isuue at somewhere
2002-06-23 22:16:35 +00:00
Marcus Boerger
02ac908307
#some sentences about the functions
2002-06-23 22:12:22 +00:00
Marcus Boerger
db39a2efa7
-freeing memory for pbuf=NULL
...
#should have been one commit but to many versions during tests
2002-06-23 22:10:30 +00:00
Marcus Boerger
d3222bb5b7
-allow pbuf = NULL in case of NO MEMORY, too
2002-06-23 22:06:52 +00:00
Marcus Boerger
fd4d8d5450
-allways terminate buffer
...
-allow pbuf parameter to be NULL for buffer size calculation
2002-06-23 22:02:35 +00:00
Marcus Boerger
761e234a43
-unlimited php_printf
2002-06-23 00:57:01 +00:00
Marcus Boerger
76aa60d4e4
-compiler warning (missing data type)
2002-06-23 00:34:47 +00:00
Edin Kadribasic
2203ef1979
Made pgsql compile on win32 again.
...
All defines regarding libpq capabilities are kept in ext/pgsql/pgsql.dsp
where HAVE_PQESCAPE is already defined.
2002-06-21 13:11:47 +00:00
Derick Rethans
6869cb3f5a
- Added a new parameter to the header() function which overrides the HTTP
...
response code.
@- Added a new parameter to the header() function which overrides the HTTP
@ response code. (Derick)
2002-06-21 09:31:21 +00:00
Edin Kadribasic
0af2ae718f
No need to check for allow_url_fopen here.
...
#This closes two bugs which I cannot find right now courtesy our buggy bug
#database.
2002-06-19 00:31:30 +00:00
foobar
d2f2ed76d1
Use correct macro for boolean ini values.
2002-06-19 00:18:40 +00:00
Stefan Esser
028b25362b
fix: appending the default charset to text/ content types never worked
...
fix: removed double free
2002-06-18 15:04:58 +00:00
Stefan Esser
28ad564c29
keep fingers away from already freed memory.
2002-06-18 12:57:09 +00:00
Sander Roobol
0c1718c614
Patch by Michael Sisolak <msisolak@yahoo.com> to make header() honor the
...
replace parameter. Closes #16458 .
2002-06-18 10:16:36 +00:00
Markus Fischer
17b3ef47f3
- Fix builtin gets() emulation (hopefully).
2002-06-11 21:22:12 +00:00
Markus Fischer
4290da23d0
- Add missing Id tag.
2002-06-11 18:55:48 +00:00
Markus Fischer
709785a90a
- Always \0 terminate data returned from _php_stream_copy_to_mem().
2002-06-11 18:54:57 +00:00
Hartmut Holzgraefe
c39a3bc880
macro definition fixed, guess it was the usual kind of cut&past bug?
2002-06-11 09:36:48 +00:00
Jason Greene
c6a36d585b
@Impelemented timeout functionality, and fixed error handling of fsockopen() on win32
...
Also fixed error handling on unix (micropatch)
Closes Bug #14740
2002-06-11 03:55:28 +00:00
Harald Radi
ecad1fbc5a
pg_escape_* functions were not available on win32 due to a missing define
...
#if this breaks the build because the win32 pg libs don't export the functions
#we should consider implementing them somehow else
#some linuxtag work
2002-06-09 14:32:40 +00:00
Markus Fischer
0cd40c2808
- Since streams are always enabled, instead of just printing 'enabled' we tell
...
what streams are currently registered.
2002-06-08 10:25:44 +00:00
Sebastian Bergmann
874cdf43a6
Unbreak build by setting PHP_PREFIX to c:\php4 for now.
2002-06-07 15:30:13 +00:00
Sebastian Bergmann
49446bb216
Fugbix typo.
2002-06-07 15:24:03 +00:00
Stig Bakken
41e31645dd
* fix SHLIB_SUFFIX_NAME define for Windows
2002-06-07 12:20:28 +00:00
Stig Bakken
40ab700677
@New constants: PHP_PREFIX and PHP_SHLIB_SUFFIX (Stig)
2002-06-07 12:19:26 +00:00
Stefan Esser
5956656864
- Stay always in buffer
2002-06-07 08:00:12 +00:00
Stefan Esser
23ceadfe2b
fixed multiline header detection (':' is valid within following lines)
...
fixed fill_buffer to fill the buffer always completely
2002-06-05 13:35:34 +00:00
Stefan Esser
a06a3e1f7f
fixing some crashbugs that can be triggered with bogus uploads.
2002-06-05 11:28:33 +00:00
Markus Fischer
b04656ad40
- Finish implementation of custom smtp port (introduces "smtp_port" ini config).
2002-06-02 17:13:48 +00:00
Derick Rethans
f3c71c43b0
- Don't issue a notice when no file was uploaded
2002-05-31 09:05:39 +00:00
Venkat Raghavan S
575e3682f5
NetWare related changes
2002-05-31 04:49:45 +00:00
Sebastian Bergmann
ae6b6359d7
Add HAVE_MBSTR_RU support for Win32.
2002-05-21 07:15:42 +00:00
Wez Furlong
50f7427e69
Protect C code with extern "C"
2002-05-20 01:32:48 +00:00
Sander Roobol
751cd67cc0
get_cfg_var("get_file_path") didn't work correctly when an alternative
...
php.ini _file_ was specified using -c
2002-05-19 14:45:31 +00:00
Edin Kadribasic
544694255a
Added glob() support for windows.
2002-05-19 14:32:24 +00:00
Zeev Suraski
2260e1742d
- Centralize html_puts() again
...
- Revolutionize phpinfo()'s speed
2002-05-13 08:46:24 +00:00
Zeev Suraski
2369533bf9
Remove redundant code (thanks to Jani for pointing that out)
2002-05-12 22:17:58 +00:00
Sascha Schumann
f866bdc368
Simplify even more
2002-05-12 15:30:44 +00:00
Sascha Schumann
5c4ae13670
Simplify white space handling in php_html_puts.
...
If we encounter a ' ', we will look for the next non-' ' and set p
accordingly.
2002-05-12 15:22:11 +00:00
Sascha Schumann
a769454d79
reenable php_html_puts
2002-05-12 14:48:22 +00:00
Rasmus Lerdorf
63e6666216
MTH - thought the code was slightly different in HEAD because of the
...
streams stuff, but it is exactly the same bug.
@ Safe-mode fix related to the safe_mode_include_dir feature (Rasmus)
2002-05-11 19:58:40 +00:00
Zeev Suraski
b9fd10786b
Use portable #define
2002-05-11 13:49:44 +00:00
Zeev Suraski
bf97148978
Centralize html_puts() logic - php_html_puts() remains as an API wrapper
2002-05-11 12:41:33 +00:00
Zeev Suraski
77f41212f6
Removing HTMLization of ' ' wasn't ok, it didn't deal with series of spaces
...
properly. Turn series of spaces into 's.
2002-05-11 12:17:53 +00:00
Zeev Suraski
19b7861d70
0 byte file uploads are valid, avoid choking on them
2002-05-11 11:58:16 +00:00
Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
...
Should now also work under UNIX (CLI/CGI)
2002-05-11 03:41:17 +00:00
Edin Kadribasic
ffce791942
Added MD5 support for crypt() on Windows.
2002-05-10 04:58:05 +00:00
foobar
c241dc5c8b
ws fix
2002-05-09 22:46:45 +00:00
Preston L. Bannister
3c8c01b475
Compute directory for temporary files once and use same directory for all subsequent calls.
2002-05-09 22:03:19 +00:00
Preston L. Bannister
0c7cfcda4f
Detect when running under IIS and default force_redirect to zero. This This means an explicit php.ini setting is no longer required.
...
(NO extraneous whitespace changes this time (sigh)).
2002-05-09 21:18:26 +00:00
Preston L. Bannister
6de4f3a459
Add check for php.ini in same directory as php.exe (or equivalent executable that loaded php4ts.dll). Check is done before looking in the Windows directory. This allows distinct php.ini files when different applications using PHP are installed on the same system. Should be backwards compatible.
...
Note that checking for in CWD php.ini may be a security risk(?), and can now be made compile-time configurable by removing a single #define.
(This time with tabs for leading indent).
2002-05-09 20:34:53 +00:00
foobar
42c82bb40d
Revert the last patches.
2002-05-09 20:03:36 +00:00
foobar
773da954f8
ws fix
2002-05-09 19:58:39 +00:00
Preston L. Bannister
fb0c506592
Add check for php.ini in same directory as php.exe (or equivalent executable that loaded php4ts.dll). Check is done before looks in the Windows directory.
...
This allows distinct php.ini files when different applications using PHP are installed on the same system. Should be backwards compatible.
Note that checking for php.ini in CWD may be a security risk(?), and can now be made compile-time configurable by removing a single #define.
2002-05-09 19:51:18 +00:00
Preston L. Bannister
2d22fc3316
Compute directory for temporary files once and use same directory for all subsequent calls.
2002-05-09 19:36:03 +00:00
Rui Hirokawa
f30b722f14
Added conversion support from script character encoding to internal character encoding. This feature is very useful for japanese who uses Shift_JIS encoding because some of characters in Shift_JIS are including '0x5c' and it causes some troubles on Zend parser. This patch is made by Masaki Fujimoto.
2002-05-08 12:33:44 +00:00
Yasuo Ohgaki
2b5beee5ad
Added estrdup() needed.
...
Fixed typo.
2002-05-08 11:44:14 +00:00
Sascha Schumann
50f68406cb
Due to the thread-safety changes and lots of other stuff, the
...
current tree is not backwards compatible anymore. Bump API no.
2002-05-07 22:00:33 +00:00
Frank M. Kromann
7c80fc1d9e
Fixing win32 build.
2002-05-07 17:51:03 +00:00
Sascha Schumann
66036eab10
use thread-safe functions unconditionally
2002-05-07 13:24:07 +00:00
Sascha Schumann
946fca9c91
Add thread-safety to some conversion functions and sync a bit with
...
APR.
2002-05-07 05:26:30 +00:00
Zeev Suraski
fe127f93de
We shouldn't force Content-length:, but much worse, it's wrong in many
...
cases (basically, unless you use output buffering to buffer all of your content,
it won't work; output buffering is used for lots of different things as a
functional interface, and such buffers have no relation to Content-type at
all).
2002-05-04 23:23:16 +00:00
Sascha Schumann
707b8b019e
Free string before overwriting it
2002-05-04 19:06:46 +00:00
Sascha Schumann
9743860d35
simplify handling of variables by maintaining two strings which
...
are simply appended instead of traversing the hash table on each
URL/form.
also fix an unconditional segfault in rshutdown due to efree'ing
a static char *.
remove remove_var, add reset_vars. move the function declarations
into the right header file.
2002-05-04 18:33:13 +00:00
Sascha Schumann
4fe391cb91
these are case sensitive
2002-05-04 17:42:58 +00:00
James Cox
fb3d9b72e9
touch.
2002-05-04 17:41:03 +00:00
James Cox
7e22424996
add $id:$ line
2002-05-04 17:39:05 +00:00
Sascha Schumann
c998176089
free_index is set but never used
2002-05-04 17:34:41 +00:00
Sascha Schumann
7e05237ed4
call_result is set but never used
2002-05-04 17:32:01 +00:00
Yasuo Ohgaki
ae828233fe
Forgot to dup strings.
2002-05-04 10:55:08 +00:00
Yasuo Ohgaki
b1b5e42251
Fixed reference to freed zval string value.
2002-05-04 09:46:44 +00:00
Yasuo Ohgaki
dfc48de0cb
Fixed crash when buffer is over written in ob callback. (Bug $ 12227)
...
Added check current output function check for Centent-Length header.
@ Fixed output buffer crash when buffer is over written in callback. (Yasuo)
2002-05-04 03:02:51 +00:00
Thies C. Arntzen
9712a4b3c8
@ - Added output_add_rewrite_var() and output_remove_rewrite_var() to inject
...
@ and remove variables from the URL-Rewriter. (thies)
i have also modified the session module to use this - so it doesn't
need to fiddle with the output-system any more
2002-05-03 08:00:41 +00:00
Yasuo Ohgaki
5b83e9294c
Change nest level to send Content-Length again. It seems this is the
...
best setting for now.
PHP will not send Content-Length always. It only sends when it is
possible to send. output_buffer=0 is supposed to disable chunked
output, but it seems it does not disable. It also behaves a litte
strange way. This should be addressed someday.
It is possible Content-Length header is not set. If it happens, try to
increase chunk size for now. (i.e. output_buffer=40960)
I included a little debug code for me and other develpers to play with,
when (NestLevel==1 && ObStatus==5), PHP sends Content-Length.
2002-05-02 13:55:05 +00:00
Sebastian Bergmann
738b47c13e
The Windows build can now be configures more comfortably, for instance in regard to built-in extensions.
2002-05-02 09:49:41 +00:00
Yasuo Ohgaki
1103311eee
Fixed header output. Only need to output header when it is actually sent to client.
2002-05-02 06:50:18 +00:00
Yasuo Ohgaki
8ee815ec91
Check buffer status
2002-05-02 04:04:59 +00:00
Yasuo Ohgaki
f61b795a8f
Make Content-Type output always correct.
...
# Flushing buffer is needed to be fixed properly anyway...
2002-05-02 01:58:12 +00:00
Yasuo Ohgaki
43df0c78c0
Move Content-Length: header handling from zlib.c to output.c
...
When output buffer is enabled and header can be sent, Content-Length:
header is added always from now on.
2002-05-02 01:12:01 +00:00
Sebastian Bergmann
71872d8ec3
Add missing #define's.
2002-04-30 14:36:02 +00:00
Wez Furlong
b0ed189159
Remove debug code that should not have been committed.
...
# I must apologize for the quality of my commits tonight...
2002-04-30 00:22:44 +00:00
Wez Furlong
0989e7bb41
Remove this; it should not have been commited
2002-04-30 00:20:34 +00:00
Wez Furlong
479aa767f5
revert...
2002-04-30 00:17:48 +00:00
Wez Furlong
37411dd674
Implement context option setting API.
...
Add/amend debugging code for sockets.
Add a flag that will help the http wrapper optimize itself when
it is not being used for include/require.
2002-04-30 00:16:00 +00:00
Sebastian Bergmann
cd43b26095
Enable bundled build of ext/ctype and ext/mbstring on Win32.
2002-04-28 17:50:09 +00:00
Harald Radi
7e1a13131a
already defined in zend_config.win32.h
2002-04-25 09:01:35 +00:00
Stanislav Malyshev
68e5f549c0
Init output_start_* to avoid "output started at ZZZZZ" messages
...
(which may result when output started while zend is neither compiling nor
executing - e.g., when file upload fails).
2002-04-24 16:53:07 +00:00
foobar
ae2e36a4e5
Changed the error for 'no upload' to E_NOTICE so that it doesn't
...
pollute the logs too much.
@- Fixed possible crash bug in HTTP uploads. (Patch: Lucas Schroeder)
2002-04-23 00:14:08 +00:00
Wez Furlong
928bae9cf8
Make scheme part decoding rfc2396 compliant.
...
Change zlib:// and bzip2:// to compress.zlib:// and compress.bzip2://
Tidy up old socket/network code/comments.
2002-04-19 10:06:41 +00:00
Yasuo Ohgaki
e17161443a
Avoid defining/using S_ISDIR macro.
2002-04-19 05:48:22 +00:00
Sebastian Bergmann
a312b1f2ab
Allow for PCRE to be disabled.
2002-04-18 17:56:53 +00:00
Sebastian Bergmann
ecf95deb6a
Conditionally include mbstring.h.
2002-04-18 16:39:30 +00:00
Sebastian Bergmann
05a2de0d6a
Add HAVE_CALENDAR, HAVE_COM, HAVE_SESSION and HAVE_TOKENIZER to enable/disable these extensions, respectively. It is now possible to build PHP on Win32 with just ext/standard and ext/pcre. The latter is needed by the former, because at least the aggregation functions use PCRE.
2002-04-18 16:34:13 +00:00
Sebastian Bergmann
1d275db13b
Some cleanup for the Win32 build configuration.
2002-04-18 11:58:08 +00:00
Sebastian Bergmann
548421ff9a
Whitespace fixes.
2002-04-17 18:14:03 +00:00
Sebastian Bergmann
81599ef561
Only include php_bcmath.h when WITH_BCMATH=true.
2002-04-17 18:11:53 +00:00
Sebastian Bergmann
958c68a17c
Give HAVE_MYSQL meaning on Win32.
2002-04-17 18:10:35 +00:00
Sebastian Bergmann
08a4924344
Give HAVE_UODBC meaning on Win32.
2002-04-17 17:57:40 +00:00
Sebastian Bergmann
4a9c2f43f4
Give HAVE_LIBEXPAT and HAVE_WDDX meaning on Win32.
2002-04-17 17:51:30 +00:00
Sebastian Bergmann
d2809b9fca
Give HAVE_FTP meaning on Win32.
2002-04-17 17:38:03 +00:00
Sebastian Bergmann
a16213f5fd
Remove bogus includes.
2002-04-17 17:33:14 +00:00
Sebastian Bergmann
c2dd85ce15
Patch by Marcus Börger.
2002-04-17 17:25:18 +00:00
Sebastian Bergmann
90f32a7d9c
SPACEs->TAB.
2002-04-17 05:21:04 +00:00
Sebastian Bergmann
6d42121bf3
Forgot adding phpext_tokenizer_ptr.
2002-04-17 05:16:42 +00:00
Sebastian Bergmann
2fc2f74ad1
Enable ext/tokenizer by default on Win32, too. Since there is no HAVE_TOKENIZER flag, it cannot be turned off in config.w32.h.
2002-04-17 04:44:02 +00:00
Wez Furlong
b10b24d50c
Always initialize wrappers, regardless of PG(allow_url_fopen).
...
Add is_url field to wrapper structure; the stream wrapper openers
will disallow opening is is_url && !PG(allow_url_fopen).
Add infrastructure for stat($url) and opendir($url).
Tidy up/centralize code that locates and instantiates wrappers for the
various operations.
Implement opendir for plain files.
Make the PHP opendir and dir functions use the streams implementations.
Add modelines for syntax highlighting the pear scripts in vim
2002-04-16 22:14:27 +00:00
Marcus Boerger
7bb4b5bd76
fix cli/cgi -c <path>|<file>
...
#hope this fixes it really (works for me)
2002-04-16 19:08:02 +00:00
Frank M. Kromann
643fb6dcdf
Adding PHPAPI needed for exif on Win32
2002-04-15 22:22:53 +00:00
Wez Furlong
ca6b88ef46
should not be there
2002-04-15 20:12:29 +00:00
Wez Furlong
50cf12ce4c
Some minor tweaks and debugging for sockets.
2002-04-15 20:11:12 +00:00
Yasuo Ohgaki
3381fe4394
Fix cli/cgi -c option
...
# I must be sleeping
2002-04-13 14:12:17 +00:00
Wez Furlong
e2f00a130f
fix segfault
2002-04-12 18:17:19 +00:00
Yasuo Ohgaki
439b56842f
CGI/CLI take file and dir for -c option by this.
...
@ Both 'file' and 'path to php.ini' is allowed for "-c" cli/cgi option. (Yasuo)
2002-04-12 00:20:29 +00:00
Wez Furlong
ccbf1b84ee
sync with PHP_MAJOR_VERSION changes to configure.in
2002-04-11 15:50:32 +00:00
Wez Furlong
4adb1e58eb
Fix declarations (Thanks Sebastian)
2002-04-11 12:13:17 +00:00
Marcus Boerger
e76b401f32
fix build (hopefully for BSD, too)
2002-04-11 07:28:24 +00:00
Wez Furlong
e1d0a14790
Implement stream context and status notification system.
...
Bump the BC for zlib notice to a warning
# See my RFC to php-dev a few days ago
2002-04-10 22:42:32 +00:00
Marcus Boerger
4e1a645ab0
fix a warnig and an error (found by Sebastioan)
2002-04-10 13:02:53 +00:00
Marcus Boerger
bd9cf79efb
new ini setting log_errors_max_len
...
@-New ini setting log_errors_max_len controls maximum length for error
@ messages. Set it to 0 for infinite. Default is 1024 (old behaviour) (Marcus)
2002-04-10 01:27:44 +00:00
Marcus Boerger
3e70f373ce
make (v)spprintf available
2002-04-10 01:13:18 +00:00
Marcus Boerger
c664a0a202
introducing spprintf and vspprintf
...
#mail follows
2002-04-10 01:09:22 +00:00
Marcus Boerger
d3e97520d9
-preface for new vpprintf
...
#reordered and renamed some functions and removed some static
2002-04-10 01:07:49 +00:00
foobar
14a6bc6d69
upload_max_filesize can only be set in php.ini
2002-04-08 07:58:47 +00:00
Marcus Boerger
ddc6437e32
new feature ignoring repeated error messages (defaults to old behaviour)
...
@You can now disable logging of repeated error messages with two new ini settings ignore_repeated_errors, ignore_repeated_source. @(Marcus)
2002-04-06 18:49:59 +00:00
Wez Furlong
62538caa86
Added BC support for old style zlib: wrapper.
...
Added notice when a requested wrapper is not found.
# This BC thing was giving me nightmares.
# It took me 10 minutes to realize I hadn't compiled in zlib support also.
2002-04-06 17:29:39 +00:00
Wez Furlong
a0f165a5cb
main/streams.c
2002-04-02 16:46:33 +00:00
foobar
bccfe80480
Prevent crashing with some bogus POSTs.
2002-04-01 23:02:16 +00:00
foobar
f43ca8d2bc
Fixed a bug with file_uploads=off -> normal post variables not set.
2002-03-30 02:58:19 +00:00
Yasuo Ohgaki
266ba32b3c
Fix ZE2 build.
2002-03-29 01:19:02 +00:00
Wez Furlong
2539cbc74c
Phase 3 of OO wrapper cleanup
...
# What was phase 2?
2002-03-28 00:49:00 +00:00
Wez Furlong
5ee65bd8f5
Phase 1 of wrapper OO cleanup.
...
# Collecting underpants
2002-03-24 18:05:49 +00:00
Marcus Boerger
4df6833a79
-defined php_stream_temp_new() for standard temp streams
2002-03-23 17:51:20 +00:00
Hartmut Holzgraefe
10811cd0d8
getting rid of the warn_not_available alias
2002-03-22 01:10:31 +00:00
Markus Fischer
1d75089d8b
*** empty log message ***
2002-03-21 22:35:02 +00:00
foobar
9ef9a18d2c
The changes to build system and the streams stuff alone are big enough
...
reason to make next release 4.3.0
2002-03-21 20:55:55 +00:00
Marcus Boerger
661fd669ec
-missing efree in close
2002-03-21 20:37:04 +00:00
Wez Furlong
06f6e47e4c
Require that wrappers use <protocol>://<path> to avoid
...
ambiguities when filenames have ':' characters.
This slightly breaks BC with the old style zlib: wrapper.
2002-03-21 17:02:50 +00:00
Marcus Boerger
f2ae5b70d9
#uups commit on wrong file
2002-03-21 12:55:37 +00:00
Marcus Boerger
a598e0b73f
-fix missing efree
2002-03-21 12:45:32 +00:00
Wez Furlong
a662f012bb
Convert the gzfile related functions into aliases for their equivalents
...
in ext/standard/file.c, so a gzopen()ed file pointer can be used in
fread, fseek etc.
Improved behaviour of zlib stream.
Moved passthru code into streams.c
# I'm not happy about BG(mmap_file)
Nuked gzgetss_state as no longer needed.
2002-03-21 01:11:52 +00:00
Harald Radi
f64628eb7d
fixed signed/unsigned comparison warnings
2002-03-20 19:13:03 +00:00
Wez Furlong
3dbde95896
Make state parameter of php_strip_tags passed by reference.
...
Move state tracking to stream structure.
2002-03-20 14:38:13 +00:00
Wez Furlong
659a071e3d
Streams are all tracked as resources now.
...
Add some logic that will help track down leaks
when debug is enabled.
2002-03-20 14:21:30 +00:00
Wez Furlong
7990d742e5
Improve behaviour of the stream casting operation.
...
Improve interaction with fopencookie.
2002-03-19 23:29:37 +00:00
Zeev Suraski
a9411a6da2
Possibly fix a crash - Marcus, please take a look at it...
2002-03-19 19:16:20 +00:00
Zeev Suraski
dcb44bf512
- Fix whitespace (guys, please try to stick with the php4 tree style as far
...
as indentation/newlines go, and also as far as using {} even on if's
that have single statements)
- Fix Windows build
2002-03-19 19:15:40 +00:00
Wez Furlong
14a3911866
fix for bug #16168
2002-03-19 17:49:02 +00:00
Wez Furlong
b92f2da5fa
make buffer length warnings more verbose
2002-03-19 16:56:53 +00:00
Wez Furlong
32a4f35580
register some constants for user streams
2002-03-19 14:35:55 +00:00
Wez Furlong
6d55f16974
correct copy/paste typo
2002-03-19 13:46:32 +00:00
Wez Furlong
6d431f1caf
avoid possible buffer overruns when write returns a value larger than the buffer
2002-03-19 13:44:38 +00:00
Wez Furlong
b808af8601
Make file_get_wrapper_data return the underlying PHP object for
...
user-space streams.
2002-03-19 13:42:25 +00:00
Wez Furlong
06712a508a
Implement user-space streams.
...
There's probably room for improvement,
docs will following some time this week.
2002-03-19 03:51:01 +00:00
Wez Furlong
67231e25e4
make feof more useful on network streams
2002-03-19 03:49:03 +00:00
Frank M. Kromann
ce24409e86
Adding HAVE_SHUTDOWN on win32. Needed for the sockets extension to compile
2002-03-18 21:09:23 +00:00
Wez Furlong
33906e934a
Fix for bug #10001 : a timeout event prevents further reads.
...
The Bug DB has a patch that should be applied to fsock.c on the
4.2 branch.
2002-03-18 20:13:50 +00:00
Zeev Suraski
16c9da0eed
Fix build under Release_TS
...
Maybe separating TSRMLS away wasn't such a good idea (sorry Wez :)
2002-03-18 19:47:50 +00:00
Wez Furlong
48e902bacd
Fix for bugs #16148 , #11199 , #10092 :
...
fread from socket will never free memory.
This patch should also be applied to php_sockread_internal in
fsock.c in the 4.2 branch.
2002-03-18 19:42:19 +00:00
Wez Furlong
c978602a0b
fix non-TS build...
2002-03-18 19:13:11 +00:00
Wez Furlong
021bf6f01f
Shouldn't have made it into my last commit.
2002-03-18 18:57:25 +00:00
Wez Furlong
c9d5e13738
TSRMLS related work on streams, as discussed with Zeev.
...
# Should be the last "broad" commit for a while
# Don't forget to make clean ; make
2002-03-18 18:54:32 +00:00
Wez Furlong
966784bcde
fix TSRM build
2002-03-18 11:46:21 +00:00
Wez Furlong
dd9a3c94a8
tidyup use of STREAMS_DC macros
2002-03-18 11:18:07 +00:00
Zeev Suraski
8cb649d06d
Make Sebastian happy
2002-03-18 09:12:31 +00:00
Sascha Schumann
68d2592f52
Rename HAVE_PHP_STREAM to PHP_HAVE_STREAMS, because
...
1.) a PHP-specific symbol should be in the php namespace, and
2.) there are multiple streams and the old configure parameter was plural, too.
2002-03-18 08:29:17 +00:00
Zeev Suraski
73e79322ba
Fix the build and all of the outstanding VC++ warnings
2002-03-18 08:05:28 +00:00
Marcus Boerger
f83c6cc0a9
-temp streams are now clean (Thanks to Wez)
2002-03-18 04:57:06 +00:00
Marcus Boerger
318dc3e527
-added temporary streams
...
-added stream debug code
#should be used from php_stream_make_seekable
2002-03-17 23:50:31 +00:00
Wez Furlong
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Stefan Esser
0d3a45299d
SAFE_MODE restriction error message fixed if the file doesn't exist
2002-03-17 21:00:44 +00:00
foobar
fdc07402b5
- This is not used anymore.
2002-03-17 15:17:46 +00:00
Wez Furlong
12a0092376
Fix for php_stream_gets when the implementation does not support it
...
natively (Thanks Marcus).
Implement php_stream_make_seekable() and add STREAM_MUST_SEEK as an
option to php_stream_open_wrapper().
See README.STREAMS for usage.
2002-03-17 14:21:01 +00:00
Wez Furlong
effa6e8daa
tidy up the headers (streams related)
2002-03-17 13:29:44 +00:00
Wez Furlong
436e339bc7
Fix for Bug #16121 : make unix socket names binary safe.
...
# Could be applied to 4.2 branch, but I don't have a working copy, and
# I don't think it's amazingly critical.
2002-03-17 13:19:27 +00:00
Marcus Boerger
34cb24fcf7
-fix bug with wrappers
2002-03-17 12:06:41 +00:00
Marcus Boerger
8c3535e15a
-added memory streams
...
@added memory streams (marcus)
2002-03-16 20:11:06 +00:00
Marcus Boerger
bfe7a9acaf
-copy_stream_to_stream returns size if maxlen == PHP_STREAM_COPY_ALL
...
#had to commit myself to do the rest...
2002-03-16 20:05:08 +00:00
Wez Furlong
b28e19c004
fix ftell/fseek in stdio streams
2002-03-16 18:52:03 +00:00
Andi Gutmans
a18000f163
- Indentation fix.
...
Never do:
if (expr) {
}
else
It should be:
if (expr) {
} else {
2002-03-16 18:16:55 +00:00
Wez Furlong
1fdd2a7ddd
add HAVE_PHP_STREAM macro for extensions to test which fileio functions to use
2002-03-16 17:54:11 +00:00
Wez Furlong
0447327118
Implement get_file_contents() as discussed (briefly!) by myself, Derick
...
and Sterling on php-dev some months ago.
It returns the file contents as a string, and uses mmap if possible.
2002-03-16 16:06:18 +00:00
Wez Furlong
bed04279c3
Hopefully fix resource usage so that we have no leaks and don't segfault.
2002-03-16 14:39:51 +00:00
Wez Furlong
6beb1e37a8
work around apache segfault for the moment
2002-03-16 13:50:17 +00:00
Wez Furlong
30647934a4
Tweak the API to be more consistent.
...
Update docs.
2002-03-16 13:48:57 +00:00
Wez Furlong
12f893d142
fsock.c did it this way, so it must be OK...
2002-03-16 12:07:27 +00:00
Wez Furlong
a411b0e97b
bring back ptrdiff_t
2002-03-16 11:58:38 +00:00
Wez Furlong
31ed1707a1
Hopefully fix probs with apache.
2002-03-16 11:24:12 +00:00
Wez Furlong
29cb19ad18
some minor docu-in-header changes
2002-03-16 03:50:17 +00:00
Yasuo Ohgaki
31fe5e46cb
Quick fix build error when ptrdiff_t is not defined in types.h or sys/types.h
2002-03-16 03:37:11 +00:00
Yasuo Ohgaki
2d08c867c8
ZTS build fix
2002-03-16 03:33:48 +00:00
Yasuo Ohgaki
115a0be944
ZTS build fix
2002-03-16 03:30:19 +00:00
Wez Furlong
636829345e
Allow php_stream_copy_to_stream to do nothing when used with code
...
that calculates a max length of zero. (Thanks again Marcus).
2002-03-16 02:48:35 +00:00
Wez Furlong
7da30fa08c
some tweaks for seek/read used in image.c (thanks Marcus)
2002-03-16 02:39:39 +00:00
Wez Furlong
52982c422e
This should help with some build problems/warnings under win32.
...
Someone still needs to add the streams.c file to the MSVC
project/workspace though (there are so many that I don't really know
what I am doing :-).
2002-03-16 02:33:00 +00:00
Wez Furlong
28d6981152
more *'s
2002-03-16 01:58:13 +00:00
Andi Gutmans
8dfe4961c4
- More whitespace. I really can't do the other files though...
2002-03-16 00:13:46 +00:00
Andi Gutmans
f1e0b83277
- Change one strncpy() to strlcpy().
...
- Big indentation patch. I don't have strength to do all of the changed
- files but here's a good example. Please try and keep to the coding
- standards even if you think they suck :)
- Things to keep in mind:
- void *foo and not void * foo;
- if() { and not if()<TAB>{
- } else { and not {\nelse
-
- The streams stuff looks very cool though! :)
2002-03-16 00:05:47 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
jim winstead
12bc95432a
don't redefine NDEBUG if it is already defined. yeesh.
2002-03-15 17:10:38 +00:00
Andi Gutmans
f7ec2505ca
- Revert assert fix until it becomes clear what was wrong with my previous
...
- fix. I don't see any warnings when building with VC++ English.
2002-03-15 10:49:31 +00:00
Yasuo Ohgaki
23917d0e0c
Avoid warnings under VC.
...
# If you know how assert() should be used under VC, please fix it.
2002-03-15 06:36:56 +00:00
Stefan Esser
cf4a292c5d
fixed a typo within checkuid
2002-03-14 16:48:18 +00:00
Andi Gutmans
bb7f0a919a
- Define HAVE_ASSERT_H under Windows. There was a macro redefinition before
...
- this.
2002-03-14 15:13:08 +00:00
Zeev Suraski
d3256ecf00
Good suggestion, but I'm not sure we want to start receiving bug
...
reports with that version
2002-03-14 14:15:26 +00:00
Sterling Hughes
6489b9c316
update version
2002-03-14 14:00:04 +00:00
Zeev Suraski
fb837bddaf
Childish, are we?
2002-03-14 13:42:58 +00:00
foobar
186651bd06
- Fixed version
2002-03-14 13:39:36 +00:00
Zeev Suraski
075dc0ccc6
Fix version number
2002-03-14 13:27:43 +00:00
Yasuo Ohgaki
cbc1cd802c
Include/enable assert.h/assert() when it is available
2002-03-14 02:17:23 +00:00
foobar
aba912e66f
- Fixed bug: #16047 , #15865 , and propably a few more..
2002-03-14 01:45:02 +00:00
Frank M. Kromann
e96dd60412
Changed to PHP_CONFIG_FILE_PATH use the environment variable SystemRoot
2002-03-12 18:08:52 +00:00
Stefan Esser
2872bce78a
Fix: Now returns correct Content-Type with Opera 6.01
2002-03-10 11:03:04 +00:00
foobar
f30a9f1c86
- Commented out the space escaping. Works now as it did before.
2002-03-09 00:24:02 +00:00
foobar
f57fe2a8df
- Fixed the phpinfo() tables not to blow up when using very long
...
configure line.
2002-03-07 22:18:09 +00:00
Frank M. Kromann
e58fbab4d1
Revert uppercase directory name to lower case.
2002-03-07 20:00:08 +00:00
Frank M. Kromann
ea0de609a6
Enabling crypt() on Win32
2002-03-07 19:46:23 +00:00
Derick Rethans
d1db2071fc
- Bump version numbers on HEAD
2002-03-06 22:26:02 +00:00
Frank M. Kromann
46a7b0cf61
Killing compiler warning on Win32
2002-03-05 00:21:28 +00:00
Jon Parise
577210441b
Silence a warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0).
2002-03-04 20:57:36 +00:00
Derick Rethans
9c5b4a6c25
- Some more speed (and more consistency)
...
#- I had some spare time Sascha :)
2002-03-04 19:08:17 +00:00
Sascha Schumann
b4d5aa5c50
Supply php_html_puts which escapes a whole string.. now fully works in ZTS
...
mode, too.
2002-03-04 18:46:55 +00:00
Jon Parise
57472aa318
Silence warning under Solaris 8 (WorkShop Compilers 5.0 98/12/15 C 5.0).
2002-03-04 10:58:00 +00:00
James Cox
0c78c87f34
Changing the Velocis extension to now be called Birdstep, due to a product/company change.
...
added aliases for Velocis to the birdstep functions.
# testing is both advised and encouraged!
@ The Velocis extension is no
2002-03-04 09:10:32 +00:00
James E. Flemer
6a6b5a6108
(php_checkuid) Added case for root directory when mode is
...
not CHECKUID_ALLOW_ONLY_DIR.
2002-03-03 21:12:49 +00:00
James E. Flemer
ecac9a7e9e
(php_checkuid) Added case for root directory when mode is
...
CHECKUID_ALLOW_ONLY_DIR.
2002-03-03 20:49:04 +00:00
Hartmut Holzgraefe
bff90c71c1
typo fix
2002-03-02 16:41:55 +00:00
Zeev Suraski
e9ec537aba
Fix version number
2002-03-02 14:33:25 +00:00
Edin Kadribasic
ab57683ea0
Added PHP_SAPI constant which contains the name of running SAPI.
...
@- Added PHP_SAPI constant which contains the name of running SAPI. (Edin)
2002-03-01 19:29:35 +00:00
Yasuo Ohgaki
46bb7e0031
Do explicit test againt to FAILURE.
...
# Thanks Rasmus.
2002-03-01 09:29:32 +00:00
Yasuo Ohgaki
82a8d372e5
Added ob_get_status() to get array of buffers and it's status.
...
(DO NOT document this function yet)
Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
buffers that may not be deleted.
php_start_ob_buffer() and php_ob_set_internal_handler() takes parameter for
if the buffer created may be deleted or not.
Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
deleted until script finshes.
Changed ob_*() function that have void return type to bool. All ob_*()
functions return TRUE for success, FALSE for failure.
@ - Added ob_get_status() to get array of buffers and it's status. (Yasuo)
@ - Fixed crash bug with ob_end_*() function. ob_end_*() will not delete
@ buffers that may not be deleted. (Yasuo)
@ - Added 3rd parameter "bool erase" to ob_start(). If FALSE, buffer may not be
@ deleted until script finshes. (Yasuo)
@ - Changed ob_*() function that have void return type to bool. All ob_*()
@ functions return TRUE for success, FALSE for failure. (Yasuo)
2002-03-01 03:05:50 +00:00
Shane Caraveo
a9fcfb133c
turn on force redirect for windows
2002-03-01 00:16:58 +00:00
Edin Kadribasic
ab2564053f
Removed CWD from php_ini_search_path when using CLI SAPI.
2002-02-28 12:12:39 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
foobar
8439b0691d
Fixed minor typo.
2002-02-27 12:11:09 +00:00
Derick Rethans
a44b57424b
- Oops... wishful thinking here :)
2002-02-27 11:30:48 +00:00
Derick Rethans
5921ac0de3
- Update version number
2002-02-27 11:30:06 +00:00
Andi Gutmans
c456da514c
- Hopefully fix the shutdown_memory_manager() stuff. Part of my previous
...
- patch seems to have gotten lost
2002-02-26 19:38:41 +00:00
Sebastian Bergmann
1b32da412d
TSRM Cleanup.
2002-02-26 19:31:21 +00:00
Andi Gutmans
a306665717
- Pass shutdown_memory_manager the TSRMLS context.
2002-02-26 18:59:27 +00:00
Derick Rethans
86fa2d3937
- Let php_execute_script return 0 on failure and 1 on sucess, and change
...
SAPIs accordingly. (Andrei, Derick)
2002-02-14 20:16:08 +00:00
Sascha Schumann
1288783667
Irix defines AF_INET6, but lacks IPv6 support, including
...
struct sockaddr_in6.
2002-02-12 11:00:15 +00:00
Stig Venaas
9e420659ad
Added php_sockaddr_size() in network.c (and the header file). This is used
...
in ftp.c to make sure connect() and bind() is called with size argument
which is exactly the size of the relevant sockaddr_xx structure
2002-02-10 12:35:29 +00:00
Yasuo Ohgaki
88e3aa7af6
Legacy code removed.
...
This line incorrectly removes buffer.
This line was correct only when ouput.c does not support
nested output buffers. Fixed bug #15178
2002-02-07 02:50:28 +00:00
Yasuo Ohgaki
a3e676f64b
pval -> zval
...
Check number of parameters
2002-02-05 07:37:42 +00:00
Yasuo Ohgaki
0bf51b81bd
register_globals=off is defualt for 4.2.0
2002-02-05 06:31:53 +00:00
Sebastian Bergmann
3ff94ed265
Fix thread-safe build.
2002-02-02 05:43:55 +00:00
James E. Flemer
6aadae975c
Changed php.ini directive 'safe_mode_include_dir' to accept a
...
(semi)colon separated path, rather than a single directory.
Also moved checking of said path into a separate path for code
readability.
@- Changed php.ini directive 'safe_mode_include_dir' to accept a
@ (semi)colon separated path (like 'include_path') rather than
@ a single directory. (jflemer)
2002-02-01 20:04:14 +00:00
Edin Kadribasic
4972fac567
Ignore register_globals for $argc and $argv under CLI SAPI.
2002-01-31 00:05:07 +00:00
Derick Rethans
580a4701ba
- Fix for bug #15057 : getimagesize() crashes when offline (on MacOSX)
2002-01-21 07:54:56 +00:00
Edin Kadribasic
f5790b0a7c
Modified the build system to make certain extensions (pcntl, ncurses,
...
pcntl) only with cgi/cli sapi's. This was done by adding 3rd optional
parameter to PHP_EXTENSION macro which should be set to "cli" if
the extension only makes sense for that class of api's.
2002-01-20 02:30:18 +00:00
Yasuo Ohgaki
34cfada447
Make --enable-safe-mode useful
...
# It seems this option is broken for a long time.
@ Fix --enable-safe-mode. This configure option was not working.
2002-01-19 03:15:03 +00:00
Stefan Esser
3acaa30c1c
fix for bug #14776
2002-01-14 13:36:54 +00:00
Derick Rethans
645a94cd5e
- Make an E_NOTICE error type show 'Notice' instead of 'Warning'.
2002-01-10 16:00:08 +00:00
jim winstead
e68095972e
Move type-handling functions into ext/standard/type.c (which had
...
a few otherwise unused functions in it).
2002-01-09 23:47:46 +00:00
Stig Venaas
a6ec8d37e6
hostconnect now divides the timeout with no. of addresses. If a connection
...
attempt times out, it goes on to the next. Unless each timeout would be
<5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
2002-01-06 22:45:43 +00:00
Edin Kadribasic
1788410a56
Added argc and argv in request_info needed for the new cli sapi.
...
Modified registering $argc and $argv to support cli sapi.
2002-01-06 13:58:05 +00:00
Stig Venaas
6e1878b0fc
Added some consts for arguments in network.c declarations. Moved
...
php_sockaddr_storage to php_network.h and added check for struct
sockaddr_storage
2002-01-06 11:54:19 +00:00
Jon Parise
2720dc3c05
Nuke unused variable warning (end_arr).
2002-01-04 22:57:36 +00:00