Stanislav Malyshev
40fd4fb21b
Standartize full path handling - everything now goes via expand_filepath
...
Add errno to open_basedir checking function
2000-08-08 16:36:25 +00:00
Andi Gutmans
c756ae2d9f
Virtualize realpath, chmod, chown and utime
...
This should fix #5935 and #5904
@- Virtualize realpath, chmod, chown and utime (Stas)
2000-08-06 16:22:07 +00:00
Stanislav Malyshev
688268727e
If we can't find a protocol in URL wrapper, try it as a filename ( fix #5931 )
2000-08-03 15:09:27 +00:00
Rasmus Lerdorf
677df784c1
This url symbol was a bit too generic. Change it to php_url instead.
...
It was clashing with a similar typedef in the UdmSearch integration I am
working on.
2000-07-29 22:32:21 +00:00
Zeev Suraski
d8a4278ab4
- Update .dsp's
...
- Make non ZTS Win32 build again
2000-07-29 10:48:57 +00:00
Zeev Suraski
6614e8edb4
- I wrote a long msg but the commit didn't go through.
...
- So here is the short version:
- a) Start moving to binary opens in Windows
- b) Give checkuid_mode() a small face lift including the fopen-wrappers.c
- The mode to this function should at least be a #define but that is for
- another day. Anyway this whole stuff should be given more face lifts in
- the future.
2000-06-25 17:02:59 +00:00
Andi Gutmans
bd900fb66b
- Make Windows compile
2000-06-16 08:02:33 +00:00
Andi Gutmans
e3ae196da8
- Don't need to check doc_root's length twice
2000-06-16 01:25:02 +00:00
Andi Gutmans
f8ecf34bf1
- Last one for tonight. Make sure that we don't check uninitialized
...
- memory
2000-06-16 01:23:03 +00:00
Andi Gutmans
b73a6f883d
- Last patch for tonight. A more optimized way to check for absolute path
...
- in Windows. This should be fixed to use the virtual cwd macro for
- ABSOLUTE_DIR() but I need to have time to understand the logic first
2000-06-16 01:14:08 +00:00
Andi Gutmans
70b8e3e8f6
- Missed a bracket
2000-06-16 01:08:39 +00:00
Andi Gutmans
cbfa4c88d9
- Beautify fopen-wrappers a bit.
...
- Still needs quite a lot of improvement in order to treat Windows well
2000-06-16 00:56:38 +00:00
Zeev Suraski
fce92e3ca2
Avoid using E_CORE_* errorlevels in any place which is not in the global startup sequence
2000-06-12 20:22:17 +00:00
Andrei Zmievski
e52889acd9
@- Changed WDDX to always serialize arrays as structs. (Andrei)
...
Changed WDDX to always serialize arrays as structs. PR #4924
2000-06-09 13:50:39 +00:00
Hartmut Holzgraefe
eb8cd900a6
@ fopen_wrappers() are now extensible via modules
...
so here it finaly is, the more general approach to fopen wrappers
# see what i'll break this time
2000-06-08 09:43:12 +00:00
Andi Gutmans
8c82566b48
- Fix problem in sessions module under Win32. Need to use ; as an options
...
- delimiter in save_path instead of :.
2000-05-27 16:38:49 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Zeev Suraski
0b8369196b
A few .dsp fixes
2000-04-20 22:52:37 +00:00
Andi Gutmans
4928f63821
- Change a getcwd()
2000-04-20 21:07:39 +00:00
Andi Gutmans
e40268d07c
- Add missing V_STAT()
2000-04-20 16:38:08 +00:00
Andi Gutmans
1665cba750
- Change PHP_ to V_ (directory & file functions)
2000-04-15 14:20:01 +00:00
Andi Gutmans
7f54318897
- Turn off VIRTUAL_DIR by default
2000-04-11 17:00:21 +00:00
Zeev Suraski
8ec20a16ed
Fix another missing opened_path assignment
2000-04-10 22:50:32 +00:00
Andi Gutmans
c981be0bca
- Don't need to extern functions
...
- Use virtual_file_ex() in expand_filepath()
2000-04-09 19:54:50 +00:00
Zeev Suraski
a0ba444959
Add a missing expand_filepath()
2000-04-07 22:10:04 +00:00
Andi Gutmans
1bab18a00c
- This shouldn't do any harm and might fix a problem with Win32
2000-03-31 22:48:59 +00:00
Andi Gutmans
9df7df3293
- Baby steps... Use PHP_FOPEN()
2000-03-30 22:41:13 +00:00
Andi Gutmans
72b57c66f0
- Use PHP_CHDIR()
2000-03-30 22:39:29 +00:00
Andi Gutmans
f9547241d5
- Fix another bug in session.c
...
- Start using the new PHP_GETCWD() and co. macros
2000-03-30 22:38:50 +00:00
Andi Gutmans
c56df5cac0
- WIN32 -> PHP_WIN32
2000-03-15 19:12:41 +00:00
Andi Gutmans
eedd3ac4d0
- Use strlcpy() insted of strcpy()
2000-03-10 18:19:08 +00:00
Andi Gutmans
312071bd08
- Fix bug 3640
2000-02-27 05:22:48 +00:00
Zeev Suraski
bf5cb890b0
- Convert 'PHP3' to 'PHP'
...
- Avoid declaring crypt() related salt types twice
2000-02-26 03:20:55 +00:00
Zeev Suraski
9b621d1c8f
Get the license right... (this won't make it to RC1 of B4)
2000-02-19 23:21:46 +00:00
Zeev Suraski
80bdd19e03
Fine tune Andi's patch
2000-02-11 15:59:30 +00:00
Andi Gutmans
f9e0d94a65
- Baby steps with PHP_WIN32 :)
2000-02-11 12:56:54 +00:00
Zeev Suraski
6d0ab6166c
SAPIfication, Episode VI: Return of the SAPI
...
Remove mostly all references to APACHE and CGI_BINARY from the code.
- Apache include files are no longer included by any PHP code, except for the Apache SAPI module.
- No server specific code is in any of the base PHP code.
Still left to be done:
- Eliminate any references to APACHE from the few remaining modules.
- Move request_info.c's logic to SAPI
- Modify the regex function names, and globals, so that we can always
include them, without having to fear any interference with Apache;
Always use the bundled regex library
2000-02-10 19:41:21 +00:00
Andi Gutmans
f452c7762f
- Introduce PHP_WIN32
2000-02-10 17:14:05 +00:00
Sascha Schumann
43ae2bffbb
Happy Y2K patch! Happy new year (or the new millennium, depending on whether
...
you start counting at 0 or 1).
2000-01-01 01:32:05 +00:00
Andrei Zmievski
0f1acb60a1
php3 -> php prefix work
1999-12-21 19:43:38 +00:00
Zeev Suraski
a3c6514332
More php3_ annihilation
1999-12-17 19:51:39 +00:00
Zeev Suraski
02d3b39420
More php3_ annihilation
1999-12-17 19:16:50 +00:00
Zeev Suraski
5df43c134f
opened_path could end up uninitialized - fixed
1999-12-06 15:30:44 +00:00
Sascha Schumann
5b983c944f
Clean up php3.*\.h files. The files itself are renamed, and references in all
...
.*\.[ch] files were changed. There is a slight chance that my script missed
a few changes, please correct them manually.
1999-12-04 19:19:57 +00:00
Andi Gutmans
2337d110f9
- Added opened_path to php_fopen_wrapper() and the URL fopen wrapper (it's not
...
always properly set, it's a TODO for all of us). This enables us to implement
true 'use' support.
@- Added support for the 'use' keyword - behaves like 'require', but will not
@ use the same file more than once (Andi & Zeev, Zend library)
1999-11-30 20:18:11 +00:00
Thies C. Arntzen
639354357f
@- RFC-854 fix for internal FTP-Code. Commands have to end in "\r\n" (Thies)
...
(PHP fopen) commands send to a FTP-server need to end in "\r\n" (RFC 854)
1999-11-11 13:49:42 +00:00
Andrei Zmievski
9e0017536d
_php3/_php3i -> php rename
1999-10-16 16:35:20 +00:00
Andi Gutmans
37d7b91d48
- First go at using strlcat().
1999-09-14 20:12:46 +00:00
Andi Gutmans
7a9ad9d0c8
Make fopen() work with URL's in Win32
1999-08-25 16:24:14 +00:00
Zeev Suraski
3cb1eb0471
Removed '3' from key functions in PHP (maintained compatibility through
...
php3_compat.h)
1999-08-02 19:17:14 +00:00
Sascha Schumann
99a2aa0f80
allow access to std{in,out,err} by using the php domain
1999-07-18 15:53:50 +00:00
Zeev Suraski
c5724cbd14
License update
1999-07-16 13:13:16 +00:00
Zeev Suraski
d4f24f19ad
* Get rid of another request_info element (filename)
...
* CGI through Apache should work now
1999-06-26 19:14:26 +00:00
Stig Bakken
8139b776e9
cosmetics
1999-06-22 11:04:35 +00:00
Stig Bakken
7f8e11d6d3
fix some potential buffer overflows
1999-06-22 01:59:30 +00:00
Zeev Suraski
f88464ee6d
Win32/ZTS compiles again
1999-06-19 13:04:55 +00:00
Stig Bakken
62fc2f5f7f
update php3 sync info
1999-06-18 14:45:48 +00:00
Stig Bakken
d92c591514
optimize php3_fopen_url_wrapper() a bit (fewer recv() and send() calls)
1999-06-18 14:22:59 +00:00
Stig Bakken
2ca5404046
make CGI version work again
1999-06-18 13:02:34 +00:00
Stig Bakken
27f1799b68
MIME headers may be 512 characters long.
1999-06-16 18:43:59 +00:00
Stig Bakken
117a2fba07
* fixed some #if/#ifdef issues
...
* hand-patched in php3 changes from 3.0.6 to HEAD in these files:
fopen-wrappers.[ch] ext/standard/file.[ch] ext/standard/fsock.[ch]
ext/standard/php3_string.h ext/standard/string.c
* added some new file/socket macros for more readable code:
FP_FGETS(buf,len,sock,fp,issock)
FP_FREAD(buf,len,sock,fp,issock)
FP_FEOF(sock,fp,issock)
FP_FGETC(sock,fp,issock)
1999-06-16 17:06:53 +00:00
Stig Bakken
8c4411b5da
* reverse fsock/string import patches
1999-06-15 21:51:00 +00:00
Stig Bakken
336392ea6c
* now using php4.ini instead of php3.ini
...
* re-imported fopen-wrappers, fsock and string code from php3
NB! I have not tested all of the imported functions yet.
1999-06-15 17:06:22 +00:00
Zeev Suraski
a5ab6b9638
Move path_info to the SAPI structure
1999-05-02 19:54:02 +00:00
Zeev Suraski
7942eaf381
* Plenty of thread safety and Win32 work.
...
* Changed PHP4 to compile as a DLL, both ISAPI and the the CGI run with the same DLL.
* Switched to using the DLL runtime library under Win32. PHP will NOT work if
compiled against the static library!
* Removed yesterday's php4libts project (with php4dllts, it's obsolete).
This *does* affect thread-unsafe Windows as well - the thread unsafe CGI is also
dependant on the thread-unsafe DLL.
1999-04-26 14:00:49 +00:00
Zeev Suraski
0818d96c97
A lot of cleanups... Removed old thread-safe code and other redundant code and files
1999-04-24 00:12:00 +00:00
Zeev Suraski
6f7c0edee3
Remove tls.[ch]
1999-04-23 20:06:01 +00:00
Stig Bakken
ff37732997
moved fdf, hyperwave, informix and some smaller files
1999-04-22 00:25:57 +00:00
Sascha Schumann
dcc16af80c
port some fixes, add compat routines
1999-04-21 17:11:01 +00:00
Zeev Suraski
c5af324ec3
More thread safety work
1999-04-21 04:02:11 +00:00
Stig Bakken
257de2bade
First commit of re-structuring phase one. We have started using automake in
...
sub-directories and started to move extension code into ext/<name>. For now,
I have moved the "standard" extension (which is quite a mix of everything
right now) and the GD extension into their own subdirs in ext/.
The configure script now also runs configure in the libzend directory
automatically and makes sure php4 and libzend use the same config.cache file.
To avoid running configure in libzend, use the --no-recursion option.
"make" in php4 also builds libzend now.
The Apache module doesn't compile right now, but a fix for that is
coming up.
1999-04-17 00:37:12 +00:00
Zeev Suraski
bb6dff9c67
Buh-bye php3_ini
1999-04-10 16:25:23 +00:00
Zeev Suraski
79f9f0ce88
Move safe_mode to the new php_ini mechanism
1999-04-10 12:17:20 +00:00
Stig Bakken
a12d0a1c1c
patched in fsock.c from php3
1999-04-08 08:57:09 +00:00
Zeev Suraski
aceaabceff
PHP 4.0
1999-04-07 21:05:13 +00:00