Sascha Schumann
2909e5c9c9
centralize #include "build-defs.h" and drop (sometimes inconsistent) other
instances
24 years ago
Rasmus Lerdorf
989a61ed98
As discussed, add --with-config-file-scan-dir compile-time switch defining
a directory which will be scanned for *.ini files after the main php.ini
file has been parsed. This makes it much easier to automatically deploy
a modular PHP since adding extensions which have their own ini switches can
now be done by simply dropping a foo.ini file in the right directory and
restarting. A list of parsed ini files is maintained and shown on the
phpinfo page.
24 years ago
Colin Viebrock
c7c275b741
fix phpinfo() output for better browser BC
24 years ago
Zeev Suraski
2f4ed252de
Compat fix
24 years ago
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.
24 years ago
Anantha Kesari H Y
3798528753
NetWare related changes/modifications
24 years ago
Jan Lehnardt
d6497fc96e
- reenable "no value" output. thanks to sebastian for pointing that out.
24 years ago
Jan Lehnardt
6676617693
- add phpinfo() support for CLI.
@phpinfo() support for CLI (jan)
24 years ago
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).
24 years ago
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.
24 years ago
Sander Roobol
751cd67cc0
get_cfg_var("get_file_path") didn't work correctly when an alternative
php.ini _file_ was specified using -c
24 years ago
Sascha Schumann
a769454d79
reenable php_html_puts
24 years ago
Zeev Suraski
b9fd10786b
Use portable #define
24 years ago
Zeev Suraski
bf97148978
Centralize html_puts() logic - php_html_puts() remains as an API wrapper
24 years ago
Zeev Suraski
5af649efbd
Revert to the old php_ini.c, and reimplement the binary-path searching.
Should now also work under UNIX (CLI/CGI)
24 years ago
foobar
c241dc5c8b
ws fix
24 years ago
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)).
24 years ago
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).
24 years ago
foobar
42c82bb40d
Revert the last patches.
24 years ago
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.
24 years ago
Yasuo Ohgaki
e17161443a
Avoid defining/using S_ISDIR macro.
24 years ago
Sebastian Bergmann
c2dd85ce15
Patch by Marcus Börger.
24 years ago
Marcus Boerger
7bb4b5bd76
fix cli/cgi -c <path>|<file>
#hope this fixes it really (works for me)
24 years ago
Yasuo Ohgaki
3381fe4394
Fix cli/cgi -c option
# I must be sleeping
24 years ago
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)
24 years ago
Frank M. Kromann
46a7b0cf61
Killing compiler warning on Win32
24 years ago
Sascha Schumann
b4d5aa5c50
Supply php_html_puts which escapes a whole string.. now fully works in ZTS
mode, too.
24 years ago
Edin Kadribasic
ab2564053f
Removed CWD from php_ini_search_path when using CLI SAPI.
24 years ago
Sebastian Bergmann
38933514e1
Update headers.
24 years ago
Sterling Hughes
b91a66699c
Z_TYPE(filehandle)?? ok.. whatever... ;)
24 years ago
Derick Rethans
2830e45fe7
- Applied patch by Yasuo Ohgaki <yasuo_ohgaki@yahoo.com>
25 years ago
Derick Rethans
a0bbfb590c
- <br> -> <br />
25 years ago
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
25 years ago
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
25 years ago
Rasmus Lerdorf
00ef03186e
This is a list of char *'s, not zvals (caught by Nick - see bug #13107 )
25 years ago
foobar
001df0d028
Yet another TSRM fix.
25 years ago
Sascha Schumann
373b3e101e
more tsrm cleanup -- output.c is not doing any fetches anymore
25 years ago
Zeev Suraski
1159c84ab7
- TSRMLS_FETCH work
- whitespace fixes
25 years ago
Zeev Suraski
2ec440078a
Get rid of a couple of bogus persist_alloc()'s, and some cleanup
25 years ago
Zeev Suraski
b1de7fc900
More TSRMLS_FETCH annihilation. Enough for today...
25 years ago
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
25 years ago
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
25 years ago
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
25 years ago
Sebastian Bergmann
e4f109b69f
Finish phpinfo() HTML 4.01 tweaking.
25 years ago
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
25 years ago
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
25 years ago
foobar
9d1817ed7f
Fix bug: #10323 . Every value outputted is now escaped.
25 years ago
Frank M. Kromann
0be5cca176
Fix build on WIn32
Should the new directorys be static?
25 years ago
Stig Bakken
2cf1b8d345
* expanded the following constants and made them available in PHP:
DEFAULT_INCLUDE_PATH
PEAR_INSTALL_DIR
PHP_EXTENSION_DIR
PHP_BINDIR
PHP_LIBDIR
PHP_DATADIR
PHP_SYSCONFDIR
PHP_LOCALSTATEDIR
PHP_CONFIG_FILE_PATH
* no longer generating pear/PEAR.php
* fixed some tests
* some more installer work
25 years ago
Andi Gutmans
a6f90ec7c6
- Get rid of warning.
25 years ago