Chris Jarecki [Sun, 13 Jan 2002 01:17:34 +0000 (01:17 +0000)]
- Added xpath_register_ns() function.
@ - Added xpath_register_ns() function.
@ It makes possible to issue XPath queries with namespaces
@ like for example: "//namespace:sampletag" (Chris Jarecki)
Gavin Sherry [Sat, 12 Jan 2002 07:22:27 +0000 (07:22 +0000)]
This fixes the notorious "mode 'c' fails" bug (see bugs - 10380, 10798, 11732). The bug originates from the fact that mode "c" for db3 sets 'type' to DB_UNKNOWN and mode DB_CREATE when the database already exists. The underlying library raises an error at this logical discrepancy: obviously one cannot create a database of unknown type.
Tomas V.V.Cox [Fri, 11 Jan 2002 01:51:24 +0000 (01:51 +0000)]
- Added HTTP::head($url) which sends a "HEAD" HTTP command to a server
and returns the headers as an associative array
- Call-time pass-by-reference fixes
Yasuo Ohgaki [Wed, 9 Jan 2002 08:02:21 +0000 (08:02 +0000)]
- shmop_open has a new flag for read/write access, 'w'
- eliminated a segfault when trying to write to a SHM_RDONLY segment
- eliminated a segfault when an invalid flag which starts with 'a' or 'c' is passed
- updated creators' email addresses
- changed error messages to say shmop_* instead of shm* to correspond with new shmop_* function names
Patch by Ilia Alshanetsky (ilia@prohost.org)
# Please test :)
foobar [Wed, 9 Jan 2002 03:40:51 +0000 (03:40 +0000)]
Reverted Hartmut's patch as it caused more trouble than it solved.
# Broke my build totally. The 'correct' fix is to make the checks better
# everywhere. ie. to check for existance of the library/symbol in some lib.
A
Changed names of functions:
- htmldoc() to html_doc(),
- htmldocfile() to html_doc_file(),
- domxml_htmldumpmem() to domxml_html_dump_mem(),
- htmldumpmem() to html_dump_mem().
James Cox [Mon, 7 Jan 2002 18:31:18 +0000 (18:31 +0000)]
changed the instructions for php with win32 + apache. Recommending using sapi
over cgi binary, since cgi binary and apache don't mix well security wise.
Stig Venaas [Sun, 6 Jan 2002 22:45:43 +0000 (22:45 +0000)]
hostconnect now divides the timeout with no. of addresses. If a connection
attempt times out, it goes on to the next. Unless each timeout would be
<5s. Added php_any_addr() that fills out the any address for IPv6 and IPv4.
Tomas V.V.Cox [Sun, 6 Jan 2002 20:17:00 +0000 (20:17 +0000)]
Added readPHPArgv() function that will safely read the $argv PHP array
across different PHP configurations. Will take care on register_globals
and register_argc_argv ini directives and the new $_SERVER vars
Edin Kadribasic [Sun, 6 Jan 2002 14:08:14 +0000 (14:08 +0000)]
@- Added CLI (command line intrerface) sapi based on a cut-down version
@ of the CGI sapi which is more suited for writing shell scripts. Some of
@ the differences are: it prints no HTTP headers, displays plain text
@ error messages, etc. (Edin)
Added CLI (command line intrerface) sapi.
# Let's see if a build expert can make this compile along
# side some other sapi.
Markus Fischer [Sat, 5 Jan 2002 23:50:59 +0000 (23:50 +0000)]
- Refuse attribute nodes on add_child() and add list destructor for PI
nodes. (Christian Stocker)
- Fix append_child() according to add_child().
- Fix some protos, minor code and warning message cosmetics.
jim winstead [Sat, 5 Jan 2002 23:49:58 +0000 (23:49 +0000)]
More tweaking of wordwrap() with the cut parameter set. It was being a
little too aggressive and cutting words without breaking at spaces
first. (A couple of tests were incorrect.)
jim winstead [Sat, 5 Jan 2002 20:46:43 +0000 (20:46 +0000)]
New memcpy()-based wordwrap() implementation. The simple case
(single-character break, no forced break) appears to be about 60%
faster, and there's simply no comparison for non-simple cases with
non-trivial amounts of text. The old algorithm was O(n^2) (with an
unfortunately large constant factor) because of the use of strncat(),
the new one is O(n). Added some more tests, too.
@ - Made wordwrap() significantly faster. (Jim)
# test case: $t = join('',file('ChangeLog')); $w = wordwrap($t,10,"\n",1);
# new code completes in less than a second. i'm still waiting for the
# old code to finish.
jim winstead [Sat, 5 Jan 2002 03:45:11 +0000 (03:45 +0000)]
Fixed pow(), and added finite(), isinf(), and isnan(). Also fixed
pow() tests.
@- Fixed pow(), and added finite(), isinf(), and isnan(). (Jim)
# Jeroen was on crack, and apparently flunked arithmetic. Names of new
# functions subject to change if people get persnickety about them.
# (They're currently the same as the underlying C library function
# names. Hope nobody forgets to update the tests if they change the
# names.)
# Oh, and pow() uses the new parameter-passing API now.
jim winstead [Sat, 5 Jan 2002 01:59:11 +0000 (01:59 +0000)]
Be more aggressive in making sure that substring matches are valid in
ereg_replace before trying to use them.
# i could have sworn i fixed this in php3. ereg() has similar logic, i
# guess i just missed ereg_replace. fixing this lets
# ext/standard/tests/reg/012.phpt pass on my debian/unstable box
jim winstead [Fri, 4 Jan 2002 19:48:08 +0000 (19:48 +0000)]
Fixed segfault in wordwrap() when wrapping to zero width and using
multi-character break or trying to force cut (bug #12768, now fails
and issues a warning because forcing a zero-width cut doesn't make
sense). Also converted to new paramater-passing API and avoid making
an extra copy of the return values.
# also added tests.
@- Fixed segfault in wordwrap() when wrapping to zero width and using
@ multi-character break or trying to force cut (bug #12768). (Jim)