Georg Richter [Sun, 16 Feb 2003 12:03:37 +0000 (12:03 +0000)]
added new function mysqli_stmt_affected_rows
added bigint support for mysqli_affected_rows
fixed memleak in mysqli_prepare (stmt->is_null)
fixed return type for mysqli_connect
Namespace patch. Big changes:
1. Nested classes are gone.
2. New syntax for namespaces:
namespace foo {
class X { ... }
function bar { ... }
var x = 1;
const ZZ = 2;
}
3. Namespaced symbol access: $x = new foo::X; - etc.
For now, namespaces are case insensitive, just like classes.
Also, there can be no global class and namespace with the same name
(to avoid ambiguities in :: resolution).
Wez Furlong [Sun, 16 Feb 2003 03:48:49 +0000 (03:48 +0000)]
A add much more useful select(2) implementation than is provided by
windows sockets. The winsock implementation will only work with sockets;
our implementation works with sockets and file descriptors.
By association, stream_select() will now operate correctly with files, pipes and sockets.
This change required linking against the winsock2 library. In terms of
compatibility, only older versions of windows 95 do not have winsock2
installed by default. It is available as a redistributable file, and is most likely installed by any OS patches (eg: Internet Explorer) applied by the user.
Also, add a win32 compatible pipe test when opening a stream from a pipe. This test will only work on NT, win2k and XP platforms. Without this test, interleaved fread() and select() calls would cause the read buffer to be clobbered. I will be working on a fix for this issue for win9x.
Wez Furlong [Sat, 15 Feb 2003 18:09:52 +0000 (18:09 +0000)]
If a test does not have any data after 60 seconds of waiting, assume that
it died a horrible death and kill it.
This is useful on windows when a message box is popped-up during an automated
test-run.
Ilia Alshanetsky [Fri, 14 Feb 2003 16:45:31 +0000 (16:45 +0000)]
Buncha Fixes.
* Fixed a number of memory leaks.
* Fixed some php_error_docref() calls that tried to print non-existent
arguments.
* Fixed some signed/unsigned problems.
* Fixed the MYSQLI_FETCH_RESOURCE macro so that compilers do not complain
about un-initialized variables.
* CS fixes.
Shane Caraveo [Thu, 13 Feb 2003 18:21:12 +0000 (18:21 +0000)]
There is *absolutely no* definitive way to know if argv0 is the
actual php script, or if it is the beginning of a query string.
Additionaly, passing parameters on the command line is
not part of CGI spec, and is not required by either
Apache or IIS. So I have removed that code altogether,
and done some further cleanup. Also fix pre4.3 behaviour if fix_pathinfo=0.
I've tested with IIS and Apache 1.3.27 on w2k and RH 7.3.
Sascha Schumann [Wed, 12 Feb 2003 19:38:10 +0000 (19:38 +0000)]
- trims +100 lines of code from spprintf.c
- introduces an overflow detection in STR_TO_DEC
- eliminates dead code (e.g. assert(foo); if (foo) {..})
- removes unused macros from the original code
- simplifies code (e.g. cc was completely dropped)
- improves run-time performance
The max_len feature is never used in our code base.
Nevertheless, cpu cycles were spent on each string
operation to check the current length against max_len which
is quite inefficient. Thus, I've moved the check to
vspprintf where it is applied only once per call.
Ilia Alshanetsky [Wed, 12 Feb 2003 16:50:51 +0000 (16:50 +0000)]
Removed zend_get_module(), this function is not used by anything and more
importantly. it does not work. It tries to find data based on numeric keys
in hash table using string keys.