Stig Bakken [Mon, 10 Feb 2003 14:26:19 +0000 (14:26 +0000)]
* PEAR::isError accepts second parameter that will be matched against
the error code. PEAR::isError($obj, FOO) will return true if $obj
is an error object, and $obj->getCode() returns FOO.
Zeev Suraski [Mon, 10 Feb 2003 12:46:58 +0000 (12:46 +0000)]
- Treat $this->foo inside class X as an implicit 'public $foo' if X::$foo
is not explicitly declared
- Forbid multiple declaration of the same variable
Wez Furlong [Mon, 10 Feb 2003 12:36:07 +0000 (12:36 +0000)]
Newly created objects should use a separate function_table from the global class entry table.
For objects instantiated via new, make sure that intern->function_table uses the newly created table when the class is registered.
For generic per-object hashing, copy the ce->function_table into intern->function_table.
Wez Furlong [Sun, 9 Feb 2003 21:40:13 +0000 (21:40 +0000)]
Fix various little leaks and segfaults.
Fix scripts like this:
$obj = new COM('Foo');
$obj2 = $obj->get_object();
$obj2->method(); // <-- would segfault here
Wez Furlong [Sun, 9 Feb 2003 21:37:41 +0000 (21:37 +0000)]
Add get_class_name handler so that the current var_dump implementation does not segfault.
Add a generic rpc_object_from_data() function for generating rpc objects from C code (as discussed with Harald).
Added feature request #9173 (added stream_get_line(), this function will
read either the specified number of bytes or until the ending string is
found).
Added feature request #14097 (option allowing file() command not to include
line endings in it's output. As well as another option, which allows blank
lines to be excluded from the output).
Marcus Boerger [Sun, 9 Feb 2003 14:17:05 +0000 (14:17 +0000)]
Kill some warnings
# the remainig is not easy to solve: float_var = float_cast(extpression)
# This cannot be fixed by simply casting again to float because some
# compilers may ignore the double casting.
Andrey Hristov [Sat, 8 Feb 2003 19:11:04 +0000 (19:11 +0000)]
making it compilable under ZE2 (PHP5).
NOTE : Even it is compilable there is an compilation warning because of that
handle_function_call is deprecated in ZE2 (#if 0). Look like there will is
a problem with __call().
Pierre Joye [Sat, 8 Feb 2003 08:41:43 +0000 (08:41 +0000)]
Add gdImageEllipse
Replace gdImageFilledEllipse by a new function (backported from
the new phpgd)
the new gdImageFilledEllipse fix bug bug #22103 (ellipse part)
Uwe Schindler [Fri, 7 Feb 2003 18:57:40 +0000 (18:57 +0000)]
(NSAPI SAPI) Fixed _SERVER[] variables (all headers included) to be now similar to apache SAPI; with this new file the memory leaks (webserver eats up memory during a few days running) are also disappeared (all by NSAPI allocated strings are freed).
Fixed bug #15734 (Added an optional parameter to get_defined_constants(),
which if passed, will include information regarding who created the constant).
Sara Golemon [Thu, 6 Feb 2003 22:18:41 +0000 (22:18 +0000)]
bc_raise() can return a scale lower than that passed into it. While most other bcmath calls won't, it's safest to do a quick check that we're only
reducing n_scale, not increasing it.
Fixed bug #19506 (get_extension_funcs() can now retrieve a list of built-in
Zend Engine functions, if "zend" is specified as the module name).
Made get_extension_funcs() on failure.