Commit Graph

40 Commits

Author SHA1 Message Date
Sascha Schumann
c801cfb879 php_reentrancy.h is needed for strtok_r 2000-05-01 03:43:07 +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
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
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
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
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
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
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
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
daf81344af - 2000-04-01 17:08:03 +00:00
Andi Gutmans
8a4805c831 - Intermediate commit 2000-04-01 17:02:32 +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
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
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
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