Thies C. Arntzen
cf1d0f1844
fixed newly introduced crash
2000-05-23 10:36:18 +00:00
Thies C. Arntzen
61ceb9e5ab
bump version to 4.0.1-dev
2000-05-23 07:49:23 +00:00
Hartmut Holzgraefe
1ec84f9c21
fix for bug #2852 : argc inconsistency
2000-05-22 23:24:55 +00:00
Andi Gutmans
7f689fc044
- Move activate_models() back to where it was. I don't want to make such
...
- an optimization right before 4.0.0. Who knows, maybe one of the phpinfo()
- functions depends on some information only available after RINIT.
- In any case, my fix for .phps stays in.
2000-05-21 18:05:04 +00:00
Andi Gutmans
dc5cd319e5
- Fix Apache php source highlighting mode. It was crashing due to the
...
- module shutdown functions being called when the startup functions weren't
- being called.
2000-05-21 16:36:16 +00:00
Thies C. Arntzen
92437e9db1
fix the fix (it's still a hack)
2000-05-19 10:48:05 +00:00
Thies C. Arntzen
bad35f5484
make sigchild handler more robust.
2000-05-19 10:40:34 +00:00
Zeev Suraski
0f82e6de23
Minor output mods
2000-05-19 08:28:53 +00:00
Thies C. Arntzen
674f4bac47
added new option "--enable-sigchild" (default is off)
...
when using this option php will setup it's own SIGCHLD handler.
when using oracle-libraries >= 8.1 on linux you need this option
if you are connecting using the BEQ interface - elsewise you will
see <defunc> processes whenever a php-script disconnects from oracle.
2000-05-18 19:45:34 +00:00
Zeev Suraski
7e0a18d014
Package 4.0.0
2000-05-18 17:43:19 +00:00
Zeev Suraski
e043439ff6
Update the license with the new clause 6
2000-05-18 15:34:45 +00:00
Andi Gutmans
a704be730c
- Fix Win32 build
2000-05-17 23:42:18 +00:00
Hartmut Holzgraefe
31c3dfdf52
proto-takeover from php3
2000-05-17 19:45:46 +00:00
Zeev Suraski
efb51322c1
Only allow loading of extensions only during .ini file parsing
2000-05-17 15:41:32 +00:00
Sascha Schumann
69223ccebd
ANSIfy declarations/prototypes
2000-05-16 23:38:51 +00:00
Sascha Schumann
46e672243a
Remove extra declarations of cwd_globals(_id)
2000-05-16 23:11:18 +00:00
Andi Gutmans
0aa5f2ea3c
- Reverse the patch until I have time to look at it. The global id should
...
be defined by ZEND_DECLARE_GLOBALS(cwd)
2000-05-16 14:59:30 +00:00
Andi Gutmans
4e6e741af8
- Commit Sascha's patch to the virtual_cwd code. Will test it on Windows
...
soon.
2000-05-16 14:47:55 +00:00
Sascha Schumann
17b84ad7e7
Planning for 4.0RC2 on Monday
2000-05-06 01:48:35 +00:00
Sascha Schumann
e905fabe0d
s/strtok_r/php_strtok_r/
2000-05-04 11:36:33 +00:00
Sascha Schumann
f2a236ff83
Missed localtime_r/ctime_r. Prefix them with php
2000-05-04 11:31:58 +00:00
Sascha Schumann
d0f3764ee2
Change reentrancy API to always use the php prefix.
...
Check for the declaration of reentrant functions, so that we can use
them in non-ZTS mode on all platforms.
2000-05-04 10:38:17 +00:00
Sam Ruby
6fb3301416
Correct build breakage - win32
2000-05-03 11:26:29 +00:00
Sascha Schumann
fca9539d63
Preset extension_dir to the installation directory of PHP modules.
...
This effectively means that dl() will work without having an installed
configuration file.
2000-05-02 14:46:20 +00:00
Sascha Schumann
c801cfb879
php_reentrancy.h is needed for strtok_r
2000-05-01 03:43:07 +00:00
Andi Gutmans
e13285ded7
- Take Sascha's advice and create on V_OPEN() which replaces open().
...
- Unlike the other macros its argument has to have braces around it, for
- example, open(filename, flags) becomse V_OPEN((filename, flags))
- Made small conversion to new Zend macros. The ugly (*foo)->value.str.val
- now becomes Z_STRVAL_PP(foo). PP means pointer pointer, there also exist
- single P's for example foo->value.str.val becomes Z_STRVAL_P(foo).
2000-04-30 16:32:36 +00:00
Sascha Schumann
be00d130e6
Fix virtual_open() by adding ellipse
2000-04-30 03:06:00 +00:00
Andi Gutmans
f1d5167ae3
- Implement V_OPEN() V_OPEN_CREAT() and V_CREAT().
...
Next step is to substitute all open()'s and creat()'s in the PHP tree
2000-04-29 19:01:58 +00:00
Zeev Suraski
1a8683f976
- Never mind. Seems like we're still missing the open() functionality
2000-04-29 17:57:47 +00:00
Zeev Suraski
aecae7c3af
- Give VIRTUAL_DIR another try after testing it extensively on our web site
2000-04-29 17:51:28 +00:00
Hartmut Holzgraefe
5c5ccc9844
no more broken scripts by erroneously terminating header()'s argument
...
with a CR-LF
2000-04-28 16:47:19 +00:00
Zeev Suraski
3220bb570e
- Fix an invalid trick (it was valid when header() was using
...
zend_get_parameters(), but it became invalid when someone switched it
to zend_get_parameters_ex(), and I decided to remove it anyway).
- Remove a redundant function call
2000-04-28 13:03:13 +00:00
Thies C. Arntzen
b9387791a8
(php_module_startup) is now doing setlocale(LC_ALL, "") instead of just setlocale(LC_CTYPE, ""). suggested by Jon Forsberg <zzed@cyberdude.com>
...
# this change simply seems "right" as setlocale(LC_ALL, "") also happens in RSHUTDOWN(basic)
2000-04-28 11:09:57 +00:00
Zeev Suraski
dc8980bab2
Change to using macros
2000-04-27 20:22:40 +00:00
Zeev Suraski
39aa59bdec
More error handling work (still completely disabled)
2000-04-27 18:37:02 +00:00
Zeev Suraski
9d2738cf1d
- Fix crash bug in localtime_r. If locatime() returns NULL then also return
...
NULL
2000-04-24 16:16:45 +00:00
Zeev Suraski
972ef3f31b
- Missed second argument
2000-04-21 14:50:09 +00:00
Andi Gutmans
dd05651046
- Fix last fix for Windows
2000-04-21 14:46:24 +00:00
Andi Gutmans
36faff14b1
- Small fix to virtual_Chdir_file() to include the trailing slash when
...
the file is in the root directory.
2000-04-21 14:42:20 +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
c0919bbd41
- virtual_lstat() doesn't exist on Windows.
2000-04-20 17:58:25 +00:00
Andi Gutmans
503bb3bedb
- Export strlcat()/strcpy() for Frank.
...
- Windows doesn't have lstat().
2000-04-20 17:40:03 +00:00
Zeev Suraski
883bd2b1de
- Fix virtual cwd bug
...
- Add more V_STAT() V_LSTAT() changes
2000-04-20 17:24:01 +00:00
Andi Gutmans
e40268d07c
- Add missing V_STAT()
2000-04-20 16:38:08 +00:00
Colin Viebrock
7ecf70047b
*** empty log message ***
2000-04-19 23:18:15 +00:00
Zeev Suraski
9cbcade6c9
Support E_USER_* error types
2000-04-19 15:10:14 +00:00
Egon Schmid
f1c268d79a
Corrected some protos.
2000-04-18 20:00:21 +00:00
Zeev Suraski
c007a7232d
Document the ob_*() functions
2000-04-18 19:18:47 +00:00
Sascha Schumann
93135c8b32
Undefine HAVE_*_R, so that we get our replacements
2000-04-16 16:32:51 +00:00
Andi Gutmans
b8fd674453
- PHP_FOPEN -> V_FOPEN
2000-04-15 14:37:28 +00:00
Zeev Suraski
f0c7e0275f
Remove unnecessary argument
2000-04-15 14:30:18 +00:00
Andi Gutmans
1665cba750
- Change PHP_ to V_ (directory & file functions)
2000-04-15 14:20:01 +00:00
Zeev Suraski
81138a641a
Forgot to commit the php4 fixes
2000-04-15 13:53:20 +00:00
Rasmus Lerdorf
6727342b7a
Make error_prepend_string and error_append_string work
...
@Make error_prepend_string and error_append_string work
2000-04-14 14:00:32 +00:00
Rasmus Lerdorf
32a3c3987e
Undo bogus commit
2000-04-14 13:40:27 +00:00
Rasmus Lerdorf
2acd0ad1fe
I don't see why this should be gcc dependant and this fixes bugs 4140
...
and 4143
2000-04-14 13:14:30 +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
897b413c2d
- Try and resolve the problem with current working directories not being
...
set to the script directory
2000-04-10 17:39:11 +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
Andi Gutmans
95f45d6c50
- Make all CVS users use the new virtual dir support.
...
Will probably disable this for the release.
2000-04-08 15:01:11 +00:00
Zeev Suraski
a0ba444959
Add a missing expand_filepath()
2000-04-07 22:10:04 +00:00
Zeev Suraski
12aae5ab66
- Fix const declaratirs in virtual cwd
...
@- Fixed a problem in include_once() with non constant arguments (Andi & Zeev,
@ Zend Engine)
2000-04-07 21:16:08 +00:00
Andi Gutmans
f118d94783
- This slipped in. Enable VIRTUAL_DIR when we're in ZTS. Eventually it
...
should always be enabled.
2000-04-07 10:26:28 +00:00
Andi Gutmans
89f99967b8
- Add wddx support to the default build
2000-04-07 10:21:17 +00:00
Zeev Suraski
3ba4105fde
Update the PHP logo
2000-04-05 21:41:38 +00:00
Andi Gutmans
49a34c6811
- Not needed anymore
2000-04-05 20:50:57 +00:00
Andi Gutmans
d7dc66bdbd
- More fixes
2000-04-05 20:49:51 +00:00
Andi Gutmans
e3bbb4bc6c
- Fix
2000-04-05 20:45:49 +00:00
Colin Viebrock
1ddc9ff852
Prettying up the output of phpinfo(). Someone has to tell me how
...
to get a new .gif logo in there, and why the ZEND_DEBUG output is
causing seg faults.
I also need to go through all the modules and fix up the output they
create.
2000-04-05 20:17:02 +00:00
Zeev Suraski
794f312176
Fix a problem with the virtual directory mechanism (corruption of the filenames to open)
2000-04-05 19:02:28 +00:00
Andi Gutmans
991f9ef9f4
- fopen and ZTS fixes
2000-04-03 17:40:44 +00:00
Zeev Suraski
69ff396312
*** empty log message ***
2000-04-02 22:15:14 +00:00
Zeev Suraski
18e0850ba1
@- Add $HTTP_POST_FILES[filename][tmp_name] - it was previously impossible to
...
@ retrieve the temporary name of an uploaded file using $HTTP_POST_FILES[] (Zeev)
- Changed IMAP Win32 definitions
2000-04-02 21:27:32 +00:00
Andi Gutmans
de0d354736
- Create dtor function
2000-04-02 20:26:06 +00:00
Andi Gutmans
d8e64d623e
- This version of chdir_file should be compatible with the Apache one.
2000-04-02 19:45:02 +00:00
Andi Gutmans
ce283e2326
- A bit more cleanups.
...
- Need to implement virtual_chdir_file() to replace chdir_file() in
sapi/apache so that we can start testing apache and debug it.
2000-04-02 19:28:25 +00:00
Andi Gutmans
6a2da70f94
- Virtual cwd compiles now (need to uncomment #define in php.h for it to
...
be enbaled right now).
It seems to work very basic stuff
2000-04-02 19:04:59 +00:00
Andi Gutmans
997e63993b
- Move to new Zend macros
2000-04-01 20:11:01 +00:00
Andi Gutmans
301f8feab4
- PHP_WIN32 is not defined here use ZEND_WIN32
2000-04-01 18:22:46 +00:00
Andi Gutmans
57b398af1f
- More virtual_cwd work
2000-04-01 18:21:03 +00:00
Andi Gutmans
a73ba4b238
- Make php_virtual_cwd compile
2000-04-01 18:11:08 +00:00
Andi Gutmans
effa5bb024
- Need zend.h for ZTS
2000-04-01 17:20:29 +00:00
Andi Gutmans
daf81344af
-
2000-04-01 17:08:03 +00:00
Andi Gutmans
8a4805c831
- Intermediate commit
2000-04-01 17:02:32 +00:00
Sascha Schumann
77688ff3b5
Up version number to 4.0RC2-dev. (4.0-dev looks too general for now.)
2000-04-01 14:39:14 +00:00
Zeev Suraski
53586378b0
@- Fix a problem when dealing with large POST blocks in CGI mode
2000-04-01 01:11:39 +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
Zeev Suraski
a82b3034b1
Several fixes, plus remove bindlib_w32 (it's more trouble than it's worth)
2000-03-31 19:46:35 +00:00
Andi Gutmans
9c3d6304dd
- Hopefully got most of them. We also need a chdir_file function like
...
for Apache.
2000-03-30 22:56:34 +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
Sascha Schumann
f72bcaa648
kill warning
2000-03-30 17:55:50 +00:00
Zeev Suraski
88041c4fc7
@- Changed the Windows version of PHP so that a php.ini file is no
...
@ longer mandatory (Zeev)
2000-03-29 19:45:15 +00:00
Zeev Suraski
8c79054ad2
Package RC1
2000-03-26 19:18:59 +00:00
Zeev Suraski
863e6fd242
- Update dsp
...
- Remove unnecessary includes
2000-03-25 19:17:41 +00:00
Andi Gutmans
18e1e63e78
- Support getcwd() semantics.
...
- We need to change this whole business to work with ZTS globals
2000-03-25 16:28:16 +00:00
Andi Gutmans
5b2bad3825
- Nuke hash_*_ptr() functions
2000-03-24 11:16:24 +00:00
Andi Gutmans
7acbcc9601
- Adjust for change in zend_startup()
2000-03-21 19:04:34 +00:00
Rasmus Lerdorf
c32e09f791
As it turns out, there are some browsers that can't handle default
...
charsets. I think forcing this on is going to cause us a lot of headache,
so turn it off by default.
@ Don't default to iso-8859-1 since this confuses some browsers
2000-03-20 08:19:51 +00:00
Andi Gutmans
1c8c9ad231
- Quick fopen() support. The code needs some cleaning up and we might
...
need to think of performance issues with the strdup()'s (definitely
use strndup() and maybe try to do with less string copies).
2000-03-19 21:10:48 +00:00
Thies C. Arntzen
245428b241
fix some protos
2000-03-19 10:56:40 +00:00
Andi Gutmans
959a550780
- Fix Win32 compile
2000-03-17 10:25:23 +00:00
Andi Gutmans
cd83fb18c0
- Last one for today.
2000-03-16 22:46:53 +00:00
Andi Gutmans
b46c44b485
- Allow passing of a verify function. This way we can easily create
...
chdir() and expandpath() wrappers.
2000-03-16 22:37:59 +00:00
Andi Gutmans
1bcdb436c1
- Note quite sure why this wasn't done.
2000-03-16 21:23:24 +00:00
Sascha Schumann
2a3fdcb73d
Cleanup
2000-03-16 19:19:14 +00:00
Sascha Schumann
8c9388c984
Merge in local changes
2000-03-16 19:14:13 +00:00
Andi Gutmans
14f76028aa
- php_is_dir_ok() should work on Windows now.
2000-03-16 19:10:01 +00:00
Andi Gutmans
c46d1e3402
- Fix a leak (I think)
2000-03-16 18:56:08 +00:00
Andi Gutmans
5c281c6116
- Make it compile on Windows.
2000-03-16 18:52:15 +00:00
Sascha Schumann
f0d631ad8f
Use old_state
2000-03-16 18:41:02 +00:00
Sascha Schumann
1ed113d925
(php_check_dots) we don't need len
2000-03-16 18:37:34 +00:00
Sascha Schumann
3cb7cf43de
virtual_chdir:
...
* added error handling
* fixed the special case where there were more DIRECTORY_UPs than
directory parts (i.e. cwd is d:\foo and path is ../..)
* no spaces between # and preprocessor directive - breaks some compilers
# added directory-existence check (not activated)
2000-03-16 18:25:47 +00:00
Andi Gutmans
0583ae2648
- Add initial virtual_getcwd() and virtual_chdir() for discussing with the
...
rest of the folks
2000-03-16 16:54:42 +00:00
Andi Gutmans
c56df5cac0
- WIN32 -> PHP_WIN32
2000-03-15 19:12:41 +00:00
Zeev Suraski
d0b9a3989b
- Define these ones and declare them in modules.h
2000-03-12 18:13:01 +00:00
Sascha Schumann
bb09ee9505
Use sprintf everywhere and define sprintf to php_sprintf, if sprintf is broken.
2000-03-12 17:18:21 +00:00
Sascha Schumann
caeaaf4d98
Fix build on systems which lack snprintf or vsnprintf.
...
PR: #3786
2000-03-12 15:47:34 +00:00
Andi Gutmans
9dca788ca0
- Don't define DEBUG anymore. Everyone should use PHP_DEBUG.
...
There are 2-3 third-party libs in PHP which use DEBUG and I left them
this way (primary example is pcrelib).
- Please test things and Andrei, can you check that pcrelib stopped
printing the warning messages?
2000-03-11 20:48:49 +00:00
Andi Gutmans
eedd3ac4d0
- Use strlcpy() insted of strcpy()
2000-03-10 18:19:08 +00:00
Thies C. Arntzen
9d0c2484c0
@- connection_aborted() and friends work again. (Thies)
2000-03-10 03:09:49 +00:00
Andrei Zmievski
9f870d1e6c
Kill warning.
2000-03-07 04:28:29 +00:00
Sam Ruby
fa7f4d1e6a
It looks like a number of "standard" extensions are now truly builtin...
2000-03-07 01:50:02 +00:00
Stig Bakken
99e0b36321
@Cleaned up extension namespace (Stig)
...
Cleaned up extension namespace, and changed ext/standard into one single
extension.
2000-03-06 20:37:11 +00:00
Sam Ruby
dc70a25a1d
Eliminate "wrong number of parameters" warning
2000-03-05 23:59:56 +00:00
Andi Gutmans
fbea48211e
- Make some fixes although there is a problem with getpid() being defined
...
in process.h as getpid(void) and thus having an arugment. We might need to
define a php_getpid() function to wrap getpid().
2000-03-05 21:40:40 +00:00
Sam Ruby
64df92e053
Fix traps due to sapi_global not being initialized when ZTS is set
...
Don't trap if php.ini can't be read
2000-03-05 21:37:47 +00:00
Sascha Schumann
2897c6fe25
Avoid the side-effect of defining function names, so that the PHP functions
...
are not renamed to their prefixed variants.
PR: #3535
2000-03-05 17:39:41 +00:00
Andi Gutmans
0a092b6226
- Fix Win32 build
2000-03-04 19:58:59 +00:00
Sascha Schumann
315999da94
Prefix some symbols with php_
...
^(pcre|Xml|XML).*
2000-03-04 14:44:01 +00:00
Zeev Suraski
d34b144061
@- Added parse_ini_file(). Currently implemented in non thread safe version
...
@ of PHP, and currently lacks section support (Zeev)
- Bring the non thread safe .dsp's uptodate
2000-03-04 02:59:14 +00:00
Sascha Schumann
3bfe29fddb
Support HP-UX 10.x non-standard time-related reentrant functions
2000-03-03 16:10:38 +00:00
Zeev Suraski
583556a3c2
@- Switched back to the old $HTTP_*_VARS[] behavior - $HTTP_GET_VARS["foo"]
...
@ and $foo are no longer references to each other, but separate variables
@ like they were prior to PHP 4.0 Beta 4 (Zeev)
2000-02-28 05:33:43 +00:00
Andi Gutmans
312071bd08
- Fix bug 3640
2000-02-27 05:22:48 +00:00
Zeev Suraski
7a955aa1c1
@- Fixed a (fairly common) situation where error_reporting values would not be
...
@ properly restored after a call to error_reporting(), in between requests (Zeev)
2000-02-26 23:50:11 +00:00
Zeev Suraski
5222c8872d
Verified $HTTP_*[] protection
2000-02-26 22:14:49 +00:00
Andrei Zmievski
137e1a1379
(php_hash_environment)
...
Fixed a bunch of memory leaks from the recent HTTP_*_VARS[] protection
patch.
2000-02-26 21:20:38 +00:00
Zeev Suraski
e5c8aeb3f1
- Protect $HTTP_POST_FILES[] as well
2000-02-26 18:59:29 +00:00
Andrei Zmievski
f7f7094bcf
Added notice about new functions.
2000-02-26 17:58:28 +00:00
Zeev Suraski
0e90b9dc83
@- The various $HTTP_*_VARS[] are now protected, and cannot be manipulated by
...
@ user input (Zeev)
This patch is untested! I'll only have time to test it thoroughly in a couple of hours...
2000-02-26 16:36:57 +00:00
Zeev Suraski
1261271839
Allow the INI callbacks to know at what stage PHP is
2000-02-26 15:36:23 +00:00
Zeev Suraski
88b31ecb28
@- The string None is now recognized as a keyword by the php.ini processor, and
...
@ can be used to denote an empty string (Zeev)
- Added None keyword support to the INI parser
- Removed specialized "none" code
2000-02-26 14:29:27 +00:00
Thies C. Arntzen
ae08e0500e
(sapi_send_headers) fix leak
2000-02-26 14:21:10 +00:00
Zeev Suraski
a508bec819
- From CODING_STANDARDS:
...
[6] NEVER USE strncat(). If you're absolutely sure you know what you're doing,
check its man page again, and only then, consider using it, and even then,
try avoiding it.
strncat() is your enemy!
- Fix several SAPI services, get rid of the default_content_type (it's always
composed of the mime type and charset now).
- Win32 works again
2000-02-26 05:03:41 +00:00
Zeev Suraski
bf5cb890b0
- Convert 'PHP3' to 'PHP'
...
- Avoid declaring crypt() related salt types twice
2000-02-26 03:20:55 +00:00
Sam Ruby
28a6ba5fc0
Win32 build error:
...
warning C4020: 'sapi_activate' : too many actual parameters
2000-02-25 23:31:42 +00:00
Sam Ruby
937db8cc80
Build failure on Win32:
...
error C2198: 'sapi_apply_default_charset' : too few actual parameters
2000-02-25 23:12:51 +00:00