Andrei Zmievski [Mon, 16 Apr 2001 04:56:31 +0000 (04:56 +0000)]
@- Fixed a bug with /e modifier in preg_replace(), that would not correctly
@ replace two-digit references if single digit references were present
@ before them. This fixed bug #10218. (Andrei)
We shoud not fseek in a pipe and this caused a problem with popen and
fgets on the platforms where the buffer fix was applied (Solaris, FreeBSD).
Now the fseek is done only when the handle is of type fopen.
Marc Boeren [Wed, 11 Apr 2001 08:14:57 +0000 (08:14 +0000)]
Added a database member to the dbx_link object. Since e.g. mysql reuses
connections, two or more dbx_link objects may share the connection
identifier. The database name is used in the dbx_query, where it calls
mysql_db_query instead of mysql_query.
This means the database name has to be passed around to all dbx_xxx_query
functions, hence the update on all the files. (Mc)
# Thanks to Christian Rabe for all the input on this issue!
Kevin [Tue, 10 Apr 2001 16:26:28 +0000 (16:26 +0000)]
Fixed compatibility issues in the ODBC extension for the Velocis Database server. Specifically, config.m4 was changed to use the client libraries instead of the serer libraries, and to look for the libs in the $RDSHOME/lin directory ass opposed to the $RDSHOME/bin directory. Makefile.in was changed to use the php_odbc.c file as the source for Velocis support. Other misc changes include a few #defines for some undefined data types and some #ifdefs for unsupported functions.
Jason Greene [Tue, 10 Apr 2001 03:16:05 +0000 (03:16 +0000)]
Fix for PR #9729, 9664, 9656, 8667.
All compilers on Solaris should build this extension correctly now.
It turns out the SUN CC, by default, enables a define that enables the use of
#pragma redefine extname in sun header files. This is why cc would work,
and gcc wouldn't.
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
* 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
Jon Parise [Fri, 6 Apr 2001 16:24:55 +0000 (16:24 +0000)]
Comment out the 'include_path' variable by default.
# Leaving it blank overrides the default include path, which contains the
# PEAR directory.
# The other option is to have the build system generate this file and expand
# @PEAR_INSTALLDIR@ on this line to reflect the system default.
- Lock the whole thing for now in order not to have a race condition.
It shouldn't effect performance too much because usually threads are
reused a few times before they are nuked by the web server, at least
under IIS and Zeus.
- Revert previous fix because dtor's which access thread local storage
might stop working. Need to fix this! We can either mutex the whole thing
which is slow (this is how it was before the race condition was introduced)
or find a different solution.
Jason Greene [Wed, 4 Apr 2001 04:41:01 +0000 (04:41 +0000)]
This is a temporary fix to the previous patch that breaks the build.
This keeps the functionality of searching for glibtool or libtool,
but have you checked the rest of the build process to see if this is
compatible? Regardless, 'which' returns a value on some os's when nothing is
found which breaks the previous patches test. Also the unary negation after
an if is not compatible with true bourne.