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
Zeev Suraski
e280c3e555
Fix a corrupted memory access
25 years ago
Andi Gutmans
4715403906
- Fix __FILE__ in the main script in CGI/command line mode.
25 years ago
Zeev Suraski
336004f4bc
Improved bailout mechanism, supports nested bailouts a-la try..catch
Note: You may *not* return directly from a catch block
25 years ago
Zeev Suraski
85b4df53c0
Improved interactive mode - it is now available in all builds, without any significant slowdown
25 years ago
Zeev Suraski
551f1831a7
Fix a major thread safety bug in the output mechanism
@- Fixed a major memory corruption bug in the thread safe version (Zeev)
25 years ago
Zeev Suraski
8332ab409a
Spit out errors
25 years ago
Sebastian Bergmann
49ab8cb8f1
Remove bogus '.'.
25 years ago
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
25 years ago
Shane Caraveo
f0b6b8ab52
The -c commandline option was not working at all, need to set the path
override before calling on the module startup.
25 years ago
Sascha Schumann
bc7a582f84
Use write(2), if we can successfully write to stdout.
25 years ago
Thies C. Arntzen
e80abfa40c
revert parts of last commit - stupid me!
25 years ago
Thies C. Arntzen
2db3431f00
--enable-memory-usage-info id deprecated. use --enable-memory-limit instead!
25 years ago
James Moore
6026a36879
Merge the more sensible way of doing this back in to HEAD
25 years ago
James Moore
873d59a8ea
@ - Fixed getopt so it accepts arguments in the form -<option><value> not
@ just -<option> <value> (jmoore)
25 years ago
Zeev Suraski
4afa93f716
@- Fixed a possible crash in the PHP CGI when no input file is
@ specified (Zeev)
Fixed bug 7822
25 years ago
Zeev Suraski
6cd3b987b8
$argc was off by one in -f (fix bug #9289 )
25 years ago
Andi Gutmans
a166b6146b
- Remove unused variable
25 years ago
Sterling Hughes
ba49860cc8
fix for bug 6491, http://www.php.net/bugs.php?id=6491 , removes a bit of
(what I think is) broken logic.
# This is as discussed on the mailing list previously. This change
# does fix the problem, however, the extra code was in there for a
# reason (I'm guessing :), i'm ready to revert this patch in a jiffy
# if someone has a good reason why that (just removed) extra logic
# should be in there.
25 years ago
Andi Gutmans
6196e0bc4d
- Fix for Bug id #10071
PR:
Submitted by:
Reviewed by:
Obtained from:
25 years ago
Andi Gutmans
4c823e8a89
- Change macros from V_ to VCWD_ because of AIX name clash
25 years ago
Stig Bakken
0b2641efa6
@Added -C command-line option to avoid chdir to the script's directory (Stig)
25 years ago
Sascha Schumann
466c226415
Revert mega patch.
This patch has at least the following deficiences:
- the CGI is built using objects from another SAPI module.
This usually results in unsatisfied symbol references.
- the CGI makefile is not created properly
- building CGI cannot be disabled
25 years ago
Stig Bakken
a4877d7afd
* CGI version is always installed!
* replaced --disable-pear with --with-pear=DIR (or --without-pear),
is backwards compatible
* use --datadir, --libdir and --sysconfdir configure options to determine
where PEAR files, shared extensions and php.ini goes
* simplified the extension version directory name
25 years ago
Wilfredo Sanchez
0df6e8dd88
Add INSTALL_ROOT variable to specify install location.
25 years ago
Ben Mansell
4549e389bb
Fix a bug with POST requests. If the Content-Type header wasn't present,
we were setting SG(request_info).content_type to NULL, instead of
an empty string. This was stopping PHP from processing the data.
25 years ago
foobar
f4917d49c3
Fixed the help for other options too.
25 years ago
foobar
356fc41a0a
Fix help text for -f
25 years ago
foobar
81a2669216
Can't output any error messages if there isn't any function initialized
to do it..
# Bug report: #7650
25 years ago
Zeev Suraski
ce39c56c8b
whitespace fix
25 years ago
Andi Gutmans
a0d3c5a88e
- Finally rename modules.h to zend_modules.h for consistency (first try
was 2000-03-11).
- Remove the first_arg_force_ref[]; and friends extern from php.h as they
are included via zend_API.h
25 years ago
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
25 years ago
Sascha Schumann
adb3e3992c
php_register_command_line_global_vars only needs file scope.
25 years ago
Sascha Schumann
280e10aac7
Neither the CGI nor the Servlet SAPI module call syslog, so remove
references to the syslog include files.
25 years ago
Sascha Schumann
c2fb53bed7
Finish fopen-wrappers rename.
25 years ago
Sascha Schumann
328ca1b178
There is no need to declare ap_php_(opterr|optopt) with external linkage
as they are not used outside of getopt.c.
PR: #9364
25 years ago
Zeev Suraski
bd0ac7fe14
Many patches. I hope I remember them all:
- Make sapi_module available to external modules (PHPAPI)
- Make the php.ini path reported in phpinfo() always point to
real full path of the php.ini file
- Optimized the ISAPI module not to read unnecessary server
variables and read necessary variables at most once.
25 years ago
Sascha Schumann
7f96af83b2
Stop automatically passing vars to AC_SUBST through PHP_SUBST.
There are some variables which are needed for Makefiles and files
created by AC_OUTPUT; we use PHP_SUBST_OLD for those now.
genif.sh was moved to an appropiate place.
25 years ago
Sascha Schumann
c95a8f39b9
Merge with php_4_0_4
26 years ago
Sascha Schumann
6c1af20310
Set the exit status from the return value of php_execute_script()
26 years ago
Hartmut Holzgraefe
1f6878e912
2nd step towards auto-credits
26 years ago
Zeev Suraski
030b707296
Update SAPI modules to interface with the new TSRM.
Enable thread-safety memory debugging in ISAPI when in debug mode
26 years ago
Zeev Suraski
0f7f5c2c0e
- Import Jade Nicoletti's transparent gzip encoding support as an output
handler. Works quite nicely!
- Fix buglets in output buffering
- Add output_handler INI directive
26 years ago
Zeev Suraski
9e40204f00
@- In CGI mode, $HTTP_SERVER_VARS now includes all of the environment variables
@ as well (Zeev)
26 years ago
Zeev Suraski
efd8117fd4
Fixed a bug in $argv and $argc not being properly defined in command-line mode
@- Fixed a bug that prevented $argv and $argc from being defined in the command
@ line version of PHP (Stas)
26 years ago
Stanislav Malyshev
24035faa29
I guess SG(request_info).argv0 and not !SG(request_info).argv0 was an intent, otherwise it doesn't make much sense.
26 years ago
Daniel Beulshausen
5e48df787a
use argv[1] if it's given, thanks to Bob Denny <rdenny@dc3.com>
26 years ago
Stanislav Malyshev
3bc3677439
Fix -d functionality
26 years ago
Sascha Schumann
bed7034f92
Unify aborted connection handling
26 years ago