Dmitry Stogov
fa3f0bb63f
Fixed bug #51008 (Zend/tests/bug45877.phpt fails)
2010-10-05 11:28:56 +00:00
Andrey Hristov
a9da84800e
add some safe casts
2010-10-05 11:08:21 +00:00
Patrick Allaert
0ef60a4544
Fixed typo in tests (thx Eyal)
2010-10-05 10:42:13 +00:00
Andrey Hristov
75ed0bbb3e
fixing more types
2010-10-05 10:30:00 +00:00
Kalle Sommer Nielsen
d6efd2fef4
Fixed constness compiler warning in pdo_mysql
2010-10-05 09:58:15 +00:00
Kalle Sommer Nielsen
cc1eaba454
Fixed compiler warnings in mysqli
...
- mysqli.c: Fix unused variables, they are only used in non-mysqlnd mode
- mysqli_api.c (PHP_5_3 only): Fix constness, add_property_string expects a char *, not a const char *
- mysqli_prop.c: Cast to long, as its below the LONG_MAX and therefore safe
- mysqli_result_iterator.c: Cast to ulong as the iterator member expects that rather than a my_longlong
# In trunk only warnings regarding the zend_property_info
# structure is present and PHP_5_3 is warning free now
2010-10-05 09:40:36 +00:00
Andrey Hristov
a3f2895e67
fix types
2010-10-05 08:56:21 +00:00
Ulf Wendel
b3dfb56949
Fix warnings
...
ext\mysqlnd\mysqlnd_result_meta.c(57) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqlnd\mysqlnd_result_meta.c(64) : warning C4090: 'initializing' : different 'const' qualifiers
ext\mysqli\mysqli_report.c(50) : warning C4013: 'php_mysqli_throw_sql_exception' undefined; assuming extern returning int
2010-10-05 08:29:54 +00:00
Andrey Hristov
d4b1c1ec78
fix recent TSRM build break, with --enable-debug
2010-10-05 08:17:33 +00:00
Gustavo André dos Santos Lopes
99807e9a72
- Moved ucgendat.c to a separate directory and included the
...
OpenLDAP license there, as required by the license itself.
2010-10-05 02:34:35 +00:00
Gustavo André dos Santos Lopes
42dae97fd4
- Fixed bug #52981 (Unicode casing table was out-of-date).
...
Updated with UnicodeData-6.0.0d7.txt and included the
source of the generator program with the distribution.
#The replaced tables, generated circa 2002, seem to reflect
#Unicode 3.2. I was unable to generate the same property
#offsets with Unicode 3.2 data, but all the tests I made
#indicate php_unicode_is_prop() is returning the correct
#values. The replaced file merely says it used a "modified
#version" of ucgendat, which is not very helpful. The results
#I got were not significantly different, only slightly higher
#offsets at two properties, which were carried over to the
#subsequent properties.
#I was, however, able to replicate precisely the casing table.
#The extent of the "modifications" besides omitting most of
#the tables, a slightly different layout and the casing table
#offsets having been multiplied by 3 is unclear.
#The test suite showed no regressions; however, it's very poor
#in testing the modified portion of the extension.
2010-10-05 01:54:17 +00:00
Felipe Pena
f1d905a417
- Fix build
2010-10-04 23:05:32 +00:00
Pierre Joye
12f855b3be
- missing file for webp
2010-10-04 22:34:02 +00:00
Pierre Joye
dfb96b3b95
- initial webp support, rely on libpx, final version will be either w/o dep or using libwebp (to be released by g)
2010-10-04 22:33:07 +00:00
Pierre Joye
cccc349aa5
- initial webp support, rely on libpx, final version will be either w/o dep or using libwebp (to be released by g)
2010-10-04 22:30:35 +00:00
Kalle Sommer Nielsen
304bc60e98
We do not need this TSRMLS_FETCH() call as we do not use any TSRM stuff in here, so we can get
...
a minor boost here in ZTS mode.
2010-10-04 21:04:25 +00:00
Kalle Sommer Nielsen
60f0599393
Skipped this one
2010-10-04 20:33:58 +00:00
Kalle Sommer Nielsen
f2552322e7
Revert for now
2010-10-04 20:26:50 +00:00
Michael Maclean
b30b0916bd
Un-deprecate mt_rand and deprecate mt_getrandmax
2010-10-04 20:20:30 +00:00
Dmitry Stogov
656f1fb271
Bug #51155 (Unreasonable non-emalloc allocations of memory)
2010-10-04 15:50:47 +00:00
Andrey Hristov
026da7d4a0
fix two more warnings
2010-10-04 14:52:14 +00:00
Andrey Hristov
0a5c631488
add some safe casts - lower the number of warnings by 2
2010-10-04 14:12:31 +00:00
Andrey Hristov
bf3b607f7a
Fix const-ness
2010-10-04 13:54:30 +00:00
Ulf Wendel
926ba0d9c7
Trying to fix compiler warnings (on Windows).
2010-10-04 13:36:23 +00:00
Andrey Hristov
d7b26d2987
Even better patch
2010-10-04 12:59:29 +00:00
Andrey Hristov
5f06ac5caf
don't define twice the macro on some platforms
2010-10-04 12:41:12 +00:00
Ulf Wendel
500cd35c21
Fixing compiler warning.
2010-10-04 10:58:05 +00:00
Ulf Wendel
5d6f3fb908
Fixing "ext/mysqlnd/mysqlnd.h", line 287: warning: syntax error: empty declaration"
2010-10-04 10:51:44 +00:00
Ulf Wendel
d73ea7c93e
Next one... ext/mysqli/mysqli_fe.c", line [many]: warning: syntax error: empty declaration
2010-10-04 10:43:21 +00:00
Ulf Wendel
ceb3b5cb22
Fixing compiler warning "ext/mysqli/mysqli_prop.c", line [...]: warning: syntax error: empty declaration"
2010-10-04 10:40:16 +00:00
Pierre Joye
8c0682f89f
- Fix #52908 , fix declaration
2010-10-04 10:35:32 +00:00
Ulf Wendel
cbbd9e80bd
Sorry again, nothing but removal of white space from the end of the lines.
...
- fix compile warning "ext/mysql/php_mysql.c:640:11: warning: extra tokens at end of #ifdef directive"
2010-10-04 10:08:10 +00:00
Ulf Wendel
e20c62d3be
Sorry for the commit but compiler warnings are annoying and so are white spaces at the end of a line, if one uses an editor which removes them on save and diff's get blown
...
up by white space changes...
Changes:
- remove end of line white space
- fix compiler warning "ext/mysqli/mysqli_priv.h:156:27: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli_fe.h:135:25: warning: no newline at end of file"
- fix compiler warning "ext/mysqli/mysqli.c:896:11: warning: extra tokens at end of #ifdef directive"
2010-10-04 10:02:58 +00:00
Dmitry Stogov
e8c87c6d21
- Fixed bug #52773 (Proxy objects have an inadequate destroy_object store callback)
...
- Fixed bug #52774 (Proxy object's store free callback calls zval_ptor_dtor on already freed data)
2010-10-04 07:15:30 +00:00
Gustavo André dos Santos Lopes
e1aa908468
- Implemented FR #50692 , not uploaded files don't count towards
...
max_file_uploads limit.
- As a side improvement, temporary files are not opened for
empty uploads and, in debug mode, 0-length uploads.
2010-10-04 01:27:33 +00:00
Felipe Pena
87a2373422
- Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
...
# In PCRE, by default, \d, \D, \s, \S, \w, and \W recognize only ASCII
# characters, even in UTF-8 mode. However, this can be changed by setting
# the PCRE_UCP option.
2010-10-03 16:01:38 +00:00
Gustavo André dos Santos Lopes
00f75c79ca
- Fixed a small mistake in the fix for bug #50953 that made connection timeouts not be detected as such.
2010-10-02 18:32:20 +00:00
Dmitry Stogov
d3b6fbe39b
Fixed bug #52940 (call_user_func_array still allows call-time pass-by-reference). (cataphract@php.net)
2010-10-01 11:53:04 +00:00
Dmitry Stogov
f64e4bac49
Fixed bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be freed too early). (mail_ben_schmidt at yahoo dot com dot au, Dmitry)
2010-10-01 09:49:20 +00:00
Kalle Sommer Nielsen
d252a45e82
* Added PHP_RAND_MAX and PHP_MT_RAND_MAX constants
...
* Deprecated getrandmax() and mt_getrandmax() in favour of the new constants
# We should promote constants for static data like such instead of function calls
# maybe this was just an old left-over
2010-10-01 09:18:44 +00:00
Ulf Wendel
1781aec59f
Fix leak with persistent connections when using mysqli.default_host is used
2010-10-01 08:54:16 +00:00
Stanislav Malyshev
d3b1ab9b20
Fix bug #52906 gmp_mod returns negative result when non-negative is expected
2010-10-01 00:12:23 +00:00
Andrey Hristov
77d73b814b
Plug a leak in mysqli when in the same script
...
a pconn is reused.
Call end_psession earlier - so will mysqlnd and
the plugins free data earlier.
2010-09-30 18:10:03 +00:00
Dmitry Stogov
53d3320951
Prevented crash in GC because of incorrect reference counting
2010-09-30 14:11:51 +00:00
Adam Harvey
81faf213c3
Loosen the valgrind version check slightly in run-tests.php so that it works
...
with the packaged valgrind in Ubuntu 10.04.
2010-09-30 11:16:45 +00:00
Adam Harvey
750d835b70
Fixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping
...
headers).
2010-09-30 11:04:21 +00:00
Gustavo André dos Santos Lopes
1c8e3c1b3e
- Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data).
2010-09-29 18:58:58 +00:00
Andrey Hristov
d55566c7b8
Fix a problem that leads to leaks in plugins that
...
use stmt local data - no free is called for statements
that are over-prepared
2010-09-29 13:18:07 +00:00
Andrey Hristov
9d6fa31713
fix the test
2010-09-29 11:40:57 +00:00
Felipe Pena
2d8a4ea299
- Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain used)
2010-09-29 01:25:35 +00:00