Ilia Alshanetsky
27e175eef0
So long safe_mode mode.
Also removed the magic_quotes configure option, no longer relevant since
the magic is gone :-).
20 years ago
Dmitry Stogov
09ca61c125
Made server wide switch for unicode on/off (according to PDM).
20 years ago
foobar
251c5173fd
bump year and license version
20 years ago
foobar
7d92b356d9
revert
21 years ago
foobar
1496355faf
MFB: Always return something, even if it succeeds :)
21 years ago
foobar
ec0b4f91f4
- Fixed bug #34307 (OnUpdateStringUnempty INI options can be set as empty)
21 years ago
foobar
000a9e3015
- Fixed problem with -dextension=foobar.so not having it's MINIT run.
21 years ago
foobar
23e671a51e
- Bumber up year
21 years ago
foobar
f66d5f0cc5
- Fixed few logic errors in php*.ini search path creation as documented here:
http://fi.php.net/manual/en/configuration.php#configuration.file
#
# Before this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("/www/php/lib/php.ini", O_RDONLY) = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
# With this patch:
#
# $ strace php -r 'echo 1;' 2>&1 | grep php.ini
# open("./php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
# open("/usr/src/php5_1_full/sapi/cli/php.ini", O_RDONLY) = -1 ENOENT (No such file or directory)
# open("/www/php/lib/php.ini", O_RDONLY) = 3
# lstat64("/www/php/lib/php.ini", {st_mode=S_IFREG|0640, st_size=46264, ...}) = 0
#
21 years ago
Antony Dovgal
98694f919c
ws fix
21 years ago
Hartmut Holzgraefe
882cb200cc
edge case: do not remove trailing slash for root directory (Bug #33882 )
21 years ago
Hartmut Holzgraefe
7e071d9a1f
php.ini search logic needs to use the absolute path of the running binary
when looking for php.ini in the directory the php binary is installed in
21 years ago
Dmitry Stogov
f47c78487b
Improved PHP extension loading mechanism with support for module dependencies and conflicts
21 years ago
Ilia Alshanetsky
2a2d49b947
Fixed bug #30050 (Possible crash inside php_shutdown_config()).
# Patch suggestion by nw at softwarekombinat dot de
22 years ago
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
22 years ago
Derick Rethans
ac9f4cc2af
- We always need to destroy the llist though.
22 years ago
Derick Rethans
3781af53cd
- Fixed zero bytes memory allocation when no extra ini files are found in the
--with-config-file-scan-dir specified directory. (patch by Eric Colinet
<e.colinet@laposte.net>)
22 years ago
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
23 years ago
Wez Furlong
fcdda2e8f8
Fix a problem resolving the php.ini path under win32 terminal services environment.
Remove config-file-path option from configure under win32; it is not used except to display what might have been chosen, so lets default to the getenv() thingy.
23 years ago
Ilia Alshanetsky
24793840b2
Fixed unused variable warning on *nix.
23 years ago
Stanislav Malyshev
06aae4bd9c
Enable setting php.ini path via the registry
23 years ago
James Cox
f68c7ff249
updating license information in the headers.
23 years ago
Marcus Boerger
b5c97d8dab
fix phpinfo() & php -i
23 years ago
Shane Caraveo
26296130ad
Fix PHPRC overriding other ini files. This is how PHPRC worked prior to
4.3.x, and is usefull for applications that execute PHP and want to
emulate CGI and define alternate INI files (ie. cannot use -c).
23 years ago
Marcus Boerger
63739c7db8
give sapi modules the possibility to overwrite default ini settings
23 years ago
Rasmus Lerdorf
1ad304c2c5
MFB config-file-scan-dir crash fix
23 years ago
foobar
7e3b50896c
ws/style fixes
23 years ago
foobar
ec11fe04e9
Fix the possible conflicts with other libs (like libc-client)
23 years ago
Wez Furlong
e52aac940f
Implement simple stream support in the ZE scanners.
23 years ago
foobar
173b9493e2
Fixed bug: #22011 (-n must ignore all ini files)
23 years ago
Ilia Alshanetsky
d59d500af7
Moved the scandir code into it's own files so that it can be used by other
OSes where libc does not have a native scandir() implementation.
23 years ago
Shane Caraveo
82f6cef483
Fix broken build by adding scandir and alphasort for win32
23 years ago
Ilia Alshanetsky
8d352d2dd6
Fixed bug #21625 (When scanning a directory for ini files, do so in
alphabetical order. This gives a user a way to control the order in which
the ini files are loaded).
Fixed a bug that would make the code try to read files without an extension
as ini files.
23 years ago
Harald Radi
b51b6f0fbf
ini patch to allow 'entry[] = value' entries
23 years ago
Sebastian Bergmann
2c5d4b8c23
Bump year.
24 years ago
Derick Rethans
d454becda8
- Whitespace
24 years ago
Marcus Boerger
cecb9dfc79
Implemented -n switch to skip parsing ini at startup as suggested by Wez.
#The switch 'n' was planned to be used for beautifying....delete n to make
#clear these functions do not have a switch yet.
24 years ago
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