Commit Graph

13164 Commits

Author SHA1 Message Date
Dmitry Stogov
6e63ea45c7 BUG #27457 was fixed (using temporary hash table with string keys only) 2004-03-18 09:48:37 +00:00
Ilia Alshanetsky
d0a4801579 s/emalloc/safe_emalloc/ where appropriate. 2004-03-18 02:16:35 +00:00
Ilia Alshanetsky
5442d722c3 Fixed bug #27300 (Improved regex for pg_convert()).
# Patch by benjcarson at digitaljunkies dot ca
2004-03-18 01:34:58 +00:00
Sara Golemon
4341ee6061 Userspace Directory Stream Test 2004-03-17 20:48:12 +00:00
Marcus Boerger
851c254ef8 Fix CachingIterator's ability to cache string conversion results.
Add a test for that.
2004-03-17 19:58:32 +00:00
Marcus Boerger
b967853eb3 Go with implicit call 2004-03-17 19:14:15 +00:00
Marcus Boerger
8cdd2ed319 Explicit cast needed for now 2004-03-17 19:00:44 +00:00
Pierre Joye
f223262bcd - Fix crash when an invalid color index is used with imagecolortransparent 2004-03-17 17:07:31 +00:00
Dmitry Stogov
67a0ff81ae Test was fixed 2004-03-17 16:06:18 +00:00
Ilia Alshanetsky
88058e5715 Fixed bug #27498 (bogus safe_mode error on nonexistent directories for
chdir() and opendir() functions).
2004-03-16 23:23:17 +00:00
Georg Richter
e3077eadef fixed stmt->stmt->query which was removed in libmysql 4.1.2
added query buffer in internal stmt structure to copy string
after prepare
2004-03-16 21:43:25 +00:00
Derick Rethans
f66c62cef8 - Fixed compilation on the 'broken' IRIX native compiler. 2004-03-16 21:39:43 +00:00
Derick Rethans
1e8e284c6b - Fixed typo 2004-03-16 20:58:01 +00:00
Marcus Boerger
426649067c Make use of zend_make_printable_zval() instead of 'manually' calling
__toString().
2004-03-16 10:17:59 +00:00
Marcus Boerger
cde333aca6 This workaround is no longer needed 2004-03-16 10:16:52 +00:00
Jay Smith
83b2d923f8 Fixed bug #27291 (get_browser matches browscap.ini patterns incorrectly). 2004-03-15 21:26:39 +00:00
Marcus Boerger
b83663e0f2 Keep BC of pg_fetch_object 2004-03-15 20:16:59 +00:00
Marcus Boerger
0ace9f4885 Bugfix #27597 pg_fetch_array not returning false . 2004-03-15 19:47:18 +00:00
Frank M. Kromann
05158095ce Fix for #27594. Comuted columns does not return a column source 2004-03-15 19:41:48 +00:00
foobar
e389c25850 - Fix test (wrong expected result..) 2004-03-15 15:53:28 +00:00
Adam Dickmeiss
9a04d51b4a Use MAKE_STD_ZVAL instead of ALLOC_ZVAL 2004-03-15 10:01:12 +00:00
Jon Parise
633c95aa40 Fixed crash in php_ini_scanned_files() when no additional INI files were
actually parsed.

I'll merge this into the PHP_4_3 branch as soon as I receive permission
from the release master.
2004-03-15 07:45:25 +00:00
Marcus Boerger
15e1d817be Fix strval to use __toString if necessary 2004-03-14 22:59:04 +00:00
Jan Lehnardt
4ed1b9a193 - improve error message 2004-03-14 17:53:28 +00:00
Marcus Boerger
decc3fc6e6 Add new test 2004-03-14 15:33:15 +00:00
Melvyn Sopacua
21ecfd57fd Fix a typo, dating back from 1.145. 2004-03-14 11:42:17 +00:00
Pierre Joye
f4f1fe553a - add a 2nd test for #27582 2004-03-14 03:21:26 +00:00
Pierre Joye
9be8aeb690 - add tests for the bug #27582 (imagefilltoborder crashes) 2004-03-13 23:22:56 +00:00
Pierre Joye
197b48322e - restore too the alphablending if we do not reach the end of the function
Notice: This function still crashes (stack overflow), to reproduce it
  see bug27582_2.phpt
2004-03-13 23:21:25 +00:00
Marcus Boerger
0763dfa16f Update test with check for [] assignment 2004-03-13 20:07:22 +00:00
Marcus Boerger
96cb40a072 Check for ext/spl being available 2004-03-13 20:03:02 +00:00
Marcus Boerger
462bb8b83a Add new test 2004-03-13 20:01:23 +00:00
Marcus Boerger
b95d8d14d5 Bugfix #27586 ArrayObject::getIterator crashes with [] assignment 2004-03-13 20:01:00 +00:00
Pierre Joye
9fc9639c83 - fix #27582 (http://bugs.php.net/bug.php?id=27582)
The problem was that the colors were changed endlessly, blending over
  and over. An endless loop and recursive calls filled the stack=>segfault
2004-03-13 18:28:19 +00:00
Sterling Hughes
e71590ef68 zval **, not a zval * 2004-03-12 20:04:31 +00:00
Sterling Hughes
94a1728de0 avoid a memory leak when a php_curl handle is allocated, but the initialization
of a CURL handle fails.
2004-03-12 18:41:19 +00:00
Sterling Hughes
177db33c63 add the curl_copy_handle() function which will exactly duplicate a cURL handle.
Useful when you have multiple "similair" transforms as with a multi handle with
only small variances (like the URL)
2004-03-12 18:37:55 +00:00
Ilia Alshanetsky
4eafea278f Simplify check. 2004-03-12 17:37:04 +00:00
Ilia Alshanetsky
2c9098a78f Additional checks of return values from user callback functions. 2004-03-12 17:31:10 +00:00
Rasmus Lerdorf
8f58b974b2 Fix/workaround for http://bugs.php.net/27533 2004-03-12 17:29:52 +00:00
Sterling Hughes
ad84ce6233 leave length as -1, no need to strdup() 2004-03-12 16:36:30 +00:00
John Coggeshall
1c7ea2045b Opps. Shouldn't look at the value, just the type 2004-03-12 16:28:28 +00:00
John Coggeshall
4c76273d88 CURLOPT_INFILE === CURLOPT_READDATA 2004-03-12 16:12:47 +00:00
John Coggeshall
2009e4e83b Fixed a crash which happens if your READFUNCTION callback doesn't actually
return a string as promised.
2004-03-12 16:08:11 +00:00
Ilia Alshanetsky
3787740cbc Fixed compiler warning. 2004-03-12 01:59:46 +00:00
Frank M. Kromann
542dc54ce4 Hack to check for ming version 0.2 and 0.3 to inclue the right libs. 2004-03-11 18:48:30 +00:00
Pierre Joye
68f1108b53 - prepare 0.2.1 2004-03-11 11:37:04 +00:00
Ilia Alshanetsky
6a1a3ecc36 Readability++ 2004-03-11 00:27:16 +00:00
Ilia Alshanetsky
21a7e57ae7 Fixed memory leak in the multi interface.
Fixed proto of curl_multi_exec().
Fixed crash in curl resource attached to curl multi resource is manually
freed via curl_close().
2004-03-11 00:11:18 +00:00
Frank M. Kromann
a5fec66463 More ZLIB exports needed by the ming extension 2004-03-10 21:59:29 +00:00
Moriyoshi Koizumi
e84334a597 - Revert ini setting patch, as I notified in
http://news.php.net/article.php?group=php.internals&article=8451
2004-03-10 20:55:42 +00:00
Rasmus Lerdorf
05f8b4e6bc getopt() doesn't work if variables_order does not include "S" because it
only looks in $_SERVER for argv.  So, if we don't find argv in $_SERVER
fall back to looking in the global symbol table where register_argc_argv
would have put it.
2004-03-10 19:12:49 +00:00
Frank M. Kromann
579a7dd0c9 Reexport some zlib symbols so we can avoid linking with zlib.lib in shared extensions (on win32) 2004-03-10 18:30:44 +00:00
Ard Biesheuvel
cc924cad9d Nuke unused vars 2004-03-10 15:59:50 +00:00
Ard Biesheuvel
e6281ab38b Don't use fp arithmetic for int results
# FP arithmetic is not accurate enough on 64-bit archs
# This patch relies on ZEND_SIGNED_MULTIPLY_LONG(),
# so that should be fixed as well.
2004-03-10 15:57:49 +00:00
Martin Kraemer
b63def4dfc Typo 2004-03-10 11:24:11 +00:00
Georg Richter
a3bd712b78 added new function mysql_stmt_free_result 2004-03-10 09:50:05 +00:00
Marcus Boerger
5f5a8172be Update 2004-03-09 17:47:28 +00:00
Marcus Boerger
bf2cf5041c Drop copydoc and add more classes/methods 2004-03-09 17:36:32 +00:00
Marcus Boerger
1b060f3614 Access to inner iterator was missing 2004-03-09 17:35:18 +00:00
Rasmus Lerdorf
3189068f4e Make curl_setopt($ch,CURLOPT_RETURNTRANSFER,0) reset the RETURNTRANSFER to
stdout as is implied in the documentation.  Currently it simply does
absolutely nothing and there is no way to reset it to stdout.
2004-03-09 17:11:22 +00:00
Marcus Boerger
56834c958d Update 2004-03-09 17:01:21 +00:00
Marcus Boerger
50ee116f08 Clearify the different method/class flags (as discussed with Andi). 2004-03-09 16:38:37 +00:00
Ilia Alshanetsky
e33168207e Fixed memory leak with curl_multi_init() de-initialization. 2004-03-09 15:04:17 +00:00
Marcus Boerger
1651be020a Show the connect result 2004-03-09 14:37:49 +00:00
Marcus Boerger
59804de32e Missing buffer->val change 2004-03-09 14:29:20 +00:00
foobar
3bd12064ef test for bug #27457 2004-03-09 14:19:50 +00:00
Georg Richter
612ab199ad fixed memleaks in bind functions
added 4.1.2 support (renamed functions)
2004-03-09 12:01:23 +00:00
Ilia Alshanetsky
35f695954a Cleaned up phpinfo() output. 2004-03-09 02:36:23 +00:00
Pierre Joye
451e295d09 - Fix sugg only if it exists... 2004-03-09 01:57:53 +00:00
Pierre Joye
3093399928 - free sugg 2004-03-09 01:57:01 +00:00
Ilia Alshanetsky
a073ba979f Fix function declaration. 2004-03-09 01:28:29 +00:00
Ilia Alshanetsky
7bc8bdec79 Change float operations to safe_emalloc().
Original idea by Sascha (see sess_sqlite.c)
2004-03-09 01:09:35 +00:00
Ilia Alshanetsky
e375ffddb4 Added enchant_dict_quick_check() function.
Made enchant_dict_check() return a boolean.
2004-03-09 00:31:17 +00:00
Ard Biesheuvel
b303ba089c More wordsize fixes 2004-03-08 23:11:45 +00:00
Pierre Joye
f1ff65c155 - Fixes protos 2004-03-08 23:08:17 +00:00
Ard Biesheuvel
b703fe79f6 Fix warning 2004-03-08 23:04:33 +00:00
Ilia Alshanetsky
d2d091b2af Cleanup 2004-03-08 22:21:36 +00:00
Derick Rethans
b3b2192a1e - Added mb_list_encoding() to return an array with all mbstring supported
encodings.
2004-03-08 22:18:05 +00:00
Pierre Joye
14bdcf810a - sources cleanup:
- merge the tests of broker/dict pointers, I can always set them back if
   we like to raise warnings here
 - proto fixes
 - remove printf() debug
2004-03-08 21:34:12 +00:00
Marcus Boerger
7dd5b1f126 Rename hasMore() to valid() as discussed. (Part V) 2004-03-08 21:17:39 +00:00
Marcus Boerger
979ef59b7c Rename hasMore() to valid() as discussed. (Part IV) 2004-03-08 21:15:39 +00:00
Pierre Joye
c2689fe35b - Initial commit 2004-03-08 20:12:13 +00:00
Ard Biesheuvel
1950bdd42c MFB fix #27408 2004-03-08 19:08:25 +00:00
Marcus Boerger
6b0f57ee50 Rename hasMore() to valid() as discussed. (Part II) 2004-03-08 18:05:41 +00:00
Marcus Boerger
b6b7c9eb65 Rename hasMore() to valid() as discussed. (Part I) 2004-03-08 17:33:31 +00:00
Ard Biesheuvel
6bfc0d06cf Merged some more odd fixes from my own branch 2004-03-08 10:49:17 +00:00
Ard Biesheuvel
48d16437d6 Cleaned up array handling and optimize for the case where no array fields are used
Fix timestamp binding for Win32 (which doesn't have gmtime_r())
CS
2004-03-08 10:32:26 +00:00
Derick Rethans
0d4352ced8 - Fixed bug #24550 (tokenizing with __METHOD__ crash) (Patch by Greg Beaver) 2004-03-08 08:02:02 +00:00
Ilia Alshanetsky
6112260738 Fixed compiler warnings. 2004-03-08 03:06:56 +00:00
Marcus Boerger
5208baee49 Add another missing conversion 2004-03-08 00:19:43 +00:00
Marcus Boerger
4ee3282ec6 Search for db-4.2.x 2004-03-07 23:45:31 +00:00
Sascha Schumann
048e66b2a9 Avoid using floating point arithmetic and rely on safe_emalloc
for the multiplication.

The actual size requirement is spelled out as:

** The result is written into a preallocated output buffer "out".
** "out" must be able to hold at least 2 +(257*n)/254 bytes.
** In other words, the output will be expanded by as much as 3
** bytes for every 254 bytes of input plus 2 bytes of fixed overhead.
** (This is approximately 2 + 1.0118*n or about a 1.2% size increase.)
2004-03-07 22:35:26 +00:00
Ilia Alshanetsky
0eb7000b0a Corrected string escape calculation. 2004-03-07 21:57:50 +00:00
Ard Biesheuvel
4fffb84005 Simplify / fix 2004-03-07 18:01:12 +00:00
Ard Biesheuvel
67cdc2c12f Added missing support for binding timestamps
# Returning timestamps was already supported
2004-03-07 14:25:08 +00:00
Moriyoshi Koizumi
9a0e4fae4c - Forgot to commit this one. 2004-03-07 00:03:50 +00:00
Moriyoshi Koizumi
91b39a6538 - Fix test, take 2 2004-03-06 23:11:25 +00:00
Ilia Alshanetsky
02cdf5a87a Fixed bug #27421 (mbstring.func_overload should be system ini setting). 2004-03-06 19:29:52 +00:00
Ilia Alshanetsky
72a3bb18d1 Fixed bug #27460 (base64_decode() does not handle extra padding). 2004-03-06 19:06:04 +00:00