]> granicus.if.org Git - php/log
php
14 years agoRevert for now
Kalle Sommer Nielsen [Mon, 4 Oct 2010 20:26:50 +0000 (20:26 +0000)]
Revert for now

14 years agoUn-deprecate mt_rand and deprecate mt_getrandmax
Michael Maclean [Mon, 4 Oct 2010 20:20:30 +0000 (20:20 +0000)]
Un-deprecate mt_rand and deprecate mt_getrandmax

14 years agoBug #51155 (Unreasonable non-emalloc allocations of memory)
Dmitry Stogov [Mon, 4 Oct 2010 15:50:47 +0000 (15:50 +0000)]
Bug #51155 (Unreasonable non-emalloc allocations of memory)

14 years agofix two more warnings
Andrey Hristov [Mon, 4 Oct 2010 14:52:14 +0000 (14:52 +0000)]
fix two more warnings

14 years agoadd some safe casts - lower the number of warnings by 2
Andrey Hristov [Mon, 4 Oct 2010 14:12:31 +0000 (14:12 +0000)]
add some safe casts - lower the number of warnings by 2

14 years agoFix const-ness
Andrey Hristov [Mon, 4 Oct 2010 13:54:30 +0000 (13:54 +0000)]
Fix const-ness

14 years agoTrying to fix compiler warnings (on Windows).
Ulf Wendel [Mon, 4 Oct 2010 13:36:23 +0000 (13:36 +0000)]
Trying to fix compiler warnings (on Windows).

14 years agoEven better patch
Andrey Hristov [Mon, 4 Oct 2010 12:59:29 +0000 (12:59 +0000)]
Even better patch

14 years agodon't define twice the macro on some platforms
Andrey Hristov [Mon, 4 Oct 2010 12:41:12 +0000 (12:41 +0000)]
don't define twice the macro on some platforms

14 years agoFixing compiler warning.
Ulf Wendel [Mon, 4 Oct 2010 10:58:05 +0000 (10:58 +0000)]
Fixing compiler warning.

14 years agoFixing "ext/mysqlnd/mysqlnd.h", line 287: warning: syntax error: empty declaration"
Ulf Wendel [Mon, 4 Oct 2010 10:51:44 +0000 (10:51 +0000)]
Fixing "ext/mysqlnd/mysqlnd.h", line 287: warning: syntax error:  empty declaration"

14 years agoNext one... ext/mysqli/mysqli_fe.c", line [many]: warning: syntax error: empty decla...
Ulf Wendel [Mon, 4 Oct 2010 10:43:21 +0000 (10:43 +0000)]
Next one... ext/mysqli/mysqli_fe.c", line [many]: warning: syntax error:  empty declaration

14 years agoFixing compiler warning "ext/mysqli/mysqli_prop.c", line [...]: warning: syntax error...
Ulf Wendel [Mon, 4 Oct 2010 10:40:16 +0000 (10:40 +0000)]
Fixing compiler warning "ext/mysqli/mysqli_prop.c", line [...]: warning: syntax error:  empty declaration"

14 years ago- Fix #52908, fix declaration
Pierre Joye [Mon, 4 Oct 2010 10:35:32 +0000 (10:35 +0000)]
- Fix #52908, fix declaration

14 years agoSorry again, nothing but removal of white space from the end of the lines.
Ulf Wendel [Mon, 4 Oct 2010 10:08:10 +0000 (10:08 +0000)]
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"

14 years agoSorry for the commit but compiler warnings are annoying and so are white spaces at...
Ulf Wendel [Mon, 4 Oct 2010 10:02:58 +0000 (10:02 +0000)]
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"

14 years ago- Fixed bug #52773 (Proxy objects have an inadequate destroy_object store callback)
Dmitry Stogov [Mon, 4 Oct 2010 07:15:30 +0000 (07:15 +0000)]
- 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)

14 years ago- Implemented FR #50692, not uploaded files don't count towards
Gustavo André dos Santos Lopes [Mon, 4 Oct 2010 01:27:33 +0000 (01:27 +0000)]
- 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.

14 years ago- Fixed bug #52971 (PCRE-Meta-Characters not working with utf-8)
Felipe Pena [Sun, 3 Oct 2010 16:01:38 +0000 (16:01 +0000)]
- 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.

14 years ago- Fixed a small mistake in the fix for bug #50953 that made connection timeouts not...
Gustavo André dos Santos Lopes [Sat, 2 Oct 2010 18:32:20 +0000 (18:32 +0000)]
- Fixed a small mistake in the fix for bug #50953 that made connection timeouts not be detected as such.

14 years agoFixed bug #52940 (call_user_func_array still allows call-time pass-by-reference)...
Dmitry Stogov [Fri, 1 Oct 2010 11:53:04 +0000 (11:53 +0000)]
Fixed bug #52940 (call_user_func_array still allows call-time pass-by-reference). (cataphract@php.net)

14 years agoFixed bug #52879 (Objects unreferenced in __get, __set, __isset or __unset can be...
Dmitry Stogov [Fri, 1 Oct 2010 09:49:20 +0000 (09:49 +0000)]
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)

14 years ago* Added PHP_RAND_MAX and PHP_MT_RAND_MAX constants
Kalle Sommer Nielsen [Fri, 1 Oct 2010 09:18:44 +0000 (09:18 +0000)]
* 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

14 years agoFix leak with persistent connections when using mysqli.default_host is used
Ulf Wendel [Fri, 1 Oct 2010 08:54:16 +0000 (08:54 +0000)]
Fix leak with persistent connections when using mysqli.default_host is used

14 years agoFix bug #52906 gmp_mod returns negative result when non-negative is expected
Stanislav Malyshev [Fri, 1 Oct 2010 00:12:23 +0000 (00:12 +0000)]
Fix bug #52906 gmp_mod returns negative result when non-negative is expected

14 years agoPlug a leak in mysqli when in the same script
Andrey Hristov [Thu, 30 Sep 2010 18:10:03 +0000 (18:10 +0000)]
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.

14 years agoPrevented crash in GC because of incorrect reference counting
Dmitry Stogov [Thu, 30 Sep 2010 14:11:51 +0000 (14:11 +0000)]
Prevented crash in GC because of incorrect reference counting

14 years agoLoosen the valgrind version check slightly in run-tests.php so that it works
Adam Harvey [Thu, 30 Sep 2010 11:16:45 +0000 (11:16 +0000)]
Loosen the valgrind version check slightly in run-tests.php so that it works
with the packaged valgrind in Ubuntu 10.04.

14 years agoFixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping
Adam Harvey [Thu, 30 Sep 2010 11:04:21 +0000 (11:04 +0000)]
Fixed bug #52941 (The 'iconv_mime_decode_headers' function is skipping
headers).

14 years ago- Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate...
Gustavo André dos Santos Lopes [Wed, 29 Sep 2010 18:58:58 +0000 (18:58 +0000)]
- Fixed bug #52944 (Invalid write on second and subsequent reads with an inflate filter fed invalid data).

14 years agoFix a problem that leads to leaks in plugins that
Andrey Hristov [Wed, 29 Sep 2010 13:18:07 +0000 (13:18 +0000)]
Fix a problem that leads to leaks in plugins that
use stmt local data - no free is called for statements
that are over-prepared

14 years agofix the test
Andrey Hristov [Wed, 29 Sep 2010 11:40:57 +0000 (11:40 +0000)]
fix the test

14 years ago- Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain used)
Felipe Pena [Wed, 29 Sep 2010 01:25:35 +0000 (01:25 +0000)]
- Fixed bug #52947 (segfault when ssl stream option capture_peer_cert_chain used)

14 years agoRemove non C90 quotes
Stanley Sufficool [Wed, 29 Sep 2010 00:55:43 +0000 (00:55 +0000)]
Remove non C90 quotes

14 years agoadd another hook, maybe the last one, for MYSQLND_STMT, which
Andrey Hristov [Tue, 28 Sep 2010 14:36:18 +0000 (14:36 +0000)]
add another hook, maybe the last one, for MYSQLND_STMT, which
was missed before

14 years ago- Fixed possible flaw in open_basedir (CVE-2010-3436)
Pierre Joye [Tue, 28 Sep 2010 13:29:33 +0000 (13:29 +0000)]
- Fixed possible flaw in open_basedir (CVE-2010-3436)

14 years ago- Fixed bug #52931 (strripos not overloaded with function overloading enabled)
Felipe Pena [Mon, 27 Sep 2010 23:09:00 +0000 (23:09 +0000)]
- Fixed bug #52931 (strripos not overloaded with function overloading enabled)

14 years ago- Updated to version 2010.13 (2010m)
Derick Rethans [Mon, 27 Sep 2010 13:57:42 +0000 (13:57 +0000)]
- Updated to version 2010.13 (2010m)

14 years agoFixed bug #45921 (Can't initialize character set hebrew)
Andrey Hristov [Mon, 27 Sep 2010 12:37:23 +0000 (12:37 +0000)]
Fixed bug #45921 (Can't initialize character set hebrew)
sorry for committing it separated

14 years agoFix the value, it was bumped
Andrey Hristov [Mon, 27 Sep 2010 11:23:01 +0000 (11:23 +0000)]
Fix the value, it was bumped

14 years agoFix bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large
Adam Harvey [Mon, 27 Sep 2010 07:08:04 +0000 (07:08 +0000)]
Fix bug #52929 (Segfault in filter_var with FILTER_VALIDATE_EMAIL with large
amount of data).

14 years agoRemoved a TSRMLS_FETCH() call in php_idate() in favor of the TSRMLS macros
Kalle Sommer Nielsen [Mon, 27 Sep 2010 01:19:57 +0000 (01:19 +0000)]
Removed a TSRMLS_FETCH() call in php_idate() in favor of the TSRMLS macros

14 years ago- fix bug #52926, zlib fopen wrapper does not use the context
Pierre Joye [Sun, 26 Sep 2010 20:46:54 +0000 (20:46 +0000)]
- fix bug #52926, zlib fopen wrapper does not use the context

14 years agoUpdate getColumnMeta native types for SQL Server 2008
Stanley Sufficool [Sun, 26 Sep 2010 20:16:25 +0000 (20:16 +0000)]
Update getColumnMeta native types for SQL Server 2008

14 years agoFix failing phar tests.
Adam Harvey [Fri, 24 Sep 2010 08:53:00 +0000 (08:53 +0000)]
Fix failing phar tests.

14 years agoWS fixes
Andrey Hristov [Thu, 23 Sep 2010 16:03:22 +0000 (16:03 +0000)]
WS fixes

14 years agoLet's try not to have 'uft8'-only tests and avoid setting the charset upon connect...
Ulf Wendel [Thu, 23 Sep 2010 15:08:43 +0000 (15:08 +0000)]
Let's try not to have 'uft8'-only tests and avoid setting the charset upon connect. I've changed the tests to make no assumptions on the server charset setting. var_dump()/EXPECTF tests got replaced with dynamic tests which try to take the current charset into account.

14 years agoEliminate a TSRMLS_FETCH() call in case of an error in one of the ereg functions
Kalle Sommer Nielsen [Thu, 23 Sep 2010 04:51:02 +0000 (04:51 +0000)]
Eliminate a TSRMLS_FETCH() call in case of an error in one of the ereg functions

14 years agoThere are a few cases where we can save a TSRMLS_FETCH() call here
Kalle Sommer Nielsen [Thu, 23 Sep 2010 04:50:26 +0000 (04:50 +0000)]
There are a few cases where we can save a TSRMLS_FETCH() call here

14 years agoFix up the vim folds in phar_object.c and add a note that the two prototypes
Adam Harvey [Thu, 23 Sep 2010 04:41:14 +0000 (04:41 +0000)]
Fix up the vim folds in phar_object.c and add a note that the two prototypes
before Phar::__construct() are actually valid and not a mistake, per bug
#52909.

14 years agoAdded TSRMLS macros into php_get_current_user()
Kalle Sommer Nielsen [Thu, 23 Sep 2010 04:13:36 +0000 (04:13 +0000)]
Added TSRMLS macros into php_get_current_user()

14 years agoCast to char * here
Kalle Sommer Nielsen [Thu, 23 Sep 2010 03:54:54 +0000 (03:54 +0000)]
Cast to char * here

14 years agoMissed to check this one in the last commit
Kalle Sommer Nielsen [Thu, 23 Sep 2010 03:49:26 +0000 (03:49 +0000)]
Missed to check this one in the last commit

14 years agoFixed compiler warnings in the standard library
Kalle Sommer Nielsen [Thu, 23 Sep 2010 03:45:36 +0000 (03:45 +0000)]
Fixed compiler warnings in the standard library

14 years agoFixed signedness compiler warning
Kalle Sommer Nielsen [Thu, 23 Sep 2010 03:33:36 +0000 (03:33 +0000)]
Fixed signedness compiler warning

14 years agoUnify, force one charset at connect, thus fixing
Andrey Hristov [Wed, 22 Sep 2010 18:25:33 +0000 (18:25 +0000)]
Unify, force one charset at connect, thus fixing
test failures because different servers have different
system charsets.

14 years agoTest update for sql_mode = ansi
Ulf Wendel [Wed, 22 Sep 2010 15:22:22 +0000 (15:22 +0000)]
Test update for sql_mode = ansi

14 years agoTest update for sql_mode = ANSI
Ulf Wendel [Wed, 22 Sep 2010 15:16:07 +0000 (15:16 +0000)]
Test update for sql_mode = ANSI

14 years agohere comes the news
Andrey Hristov [Wed, 22 Sep 2010 15:15:11 +0000 (15:15 +0000)]
here comes the news

14 years agoFix for
Andrey Hristov [Wed, 22 Sep 2010 15:14:04 +0000 (15:14 +0000)]
Fix for
Request #48082 mysql_connect does not work with named pipes

14 years agosmall macro fix
Andrey Hristov [Wed, 22 Sep 2010 14:54:43 +0000 (14:54 +0000)]
small macro fix

14 years agofix for bug 52891 - optimize a bit
Andrey Hristov [Wed, 22 Sep 2010 14:26:43 +0000 (14:26 +0000)]
fix for bug 52891 - optimize a bit

14 years agoFix for
Andrey Hristov [Wed, 22 Sep 2010 11:38:49 +0000 (11:38 +0000)]
Fix for
Bug #52891 Wrong data inserted with mysqli/mysqlnd when using bind_param,value>LONG_MAX

14 years agoupdate tests
Andrey Hristov [Wed, 22 Sep 2010 11:09:29 +0000 (11:09 +0000)]
update tests

14 years ago- Fixed EG(saved_fpu_cw) initialization
Felipe Pena [Wed, 22 Sep 2010 00:11:34 +0000 (00:11 +0000)]
- Fixed EG(saved_fpu_cw) initialization

14 years agoTrying to pimp gcov.php.net code coverage tests.. trying to cover mysqlnd compress...
Ulf Wendel [Mon, 20 Sep 2010 19:01:13 +0000 (19:01 +0000)]
Trying to pimp gcov.php.net code coverage tests..  trying to cover mysqlnd compress code with a standard test run

14 years agoAlign test to the style used in the other tests
Ulf Wendel [Mon, 20 Sep 2010 18:26:11 +0000 (18:26 +0000)]
Align test to the style used in the other tests

14 years agoNo reason not to run the tests with libmysql. Its long, long ago that pconnect has...
Ulf Wendel [Mon, 20 Sep 2010 17:26:39 +0000 (17:26 +0000)]
No reason not to run the tests with libmysql. Its long, long ago that pconnect has been a mysqlnd only feature

14 years agoFixed a compiler warning
Ilia Alshanetsky [Mon, 20 Sep 2010 12:48:27 +0000 (12:48 +0000)]
Fixed a compiler warning

14 years agoFixed bug #52888 (Zend MM shutdown crash)
Dmitry Stogov [Mon, 20 Sep 2010 12:12:42 +0000 (12:12 +0000)]
Fixed bug #52888 (Zend MM shutdown crash)

14 years agoReverted wrong patch
Dmitry Stogov [Mon, 20 Sep 2010 10:45:22 +0000 (10:45 +0000)]
Reverted wrong patch

14 years agoDont be strict on error messages, they can vary by server version
Ulf Wendel [Mon, 20 Sep 2010 09:04:48 +0000 (09:04 +0000)]
Dont be strict on error messages, they can vary by server version

14 years agoadd test case for 52891
Andrey Hristov [Mon, 20 Sep 2010 09:02:31 +0000 (09:02 +0000)]
add test case for 52891

14 years agoFix incompatible types, we need to use a char here for recv()
Kalle Sommer Nielsen [Sun, 19 Sep 2010 19:18:30 +0000 (19:18 +0000)]
Fix incompatible types, we need to use a char here for recv()

14 years agofixed compilation error.
Rui Hirokawa [Sun, 19 Sep 2010 01:28:32 +0000 (01:28 +0000)]
fixed compilation error.

14 years agoImproved performance of unserialize(), original patch by galaxy dot mipt at gmail...
Kalle Sommer Nielsen [Sat, 18 Sep 2010 16:09:28 +0000 (16:09 +0000)]
Improved performance of unserialize(), original patch by galaxy dot mipt at gmail dot com

14 years agoSkip if PDO_SQLITE is not available
Ulf Wendel [Fri, 17 Sep 2010 17:11:21 +0000 (17:11 +0000)]
Skip if PDO_SQLITE is not available

14 years agoRemove OS dependent directory separator from EXPECT
Ulf Wendel [Fri, 17 Sep 2010 16:40:02 +0000 (16:40 +0000)]
Remove OS dependent directory separator from EXPECT

14 years ago- restore VOLUME_NAME_NT and VOLUME_NAME_DOS definition, thx Andrey for the headup
Pierre Joye [Fri, 17 Sep 2010 11:34:49 +0000 (11:34 +0000)]
- restore VOLUME_NAME_NT and VOLUME_NAME_DOS definition, thx Andrey for the headup

14 years ago- fix ts build (zend_list_insert change)
Pierre Joye [Fri, 17 Sep 2010 10:51:53 +0000 (10:51 +0000)]
- fix ts build (zend_list_insert change)

14 years ago- use popen_ex directly, avoid the tsrm fetch
Pierre Joye [Fri, 17 Sep 2010 10:04:28 +0000 (10:04 +0000)]
- use popen_ex directly, avoid the tsrm fetch

14 years ago- drop tsrmls_fetch in popen_ex
Pierre Joye [Fri, 17 Sep 2010 10:00:01 +0000 (10:00 +0000)]
- drop tsrmls_fetch in popen_ex

14 years ago- drop tsrmls_fetch in tsrm_win32_access
Pierre Joye [Fri, 17 Sep 2010 09:27:19 +0000 (09:27 +0000)]
- drop tsrmls_fetch in tsrm_win32_access

14 years ago- drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup...
Pierre Joye [Fri, 17 Sep 2010 08:42:12 +0000 (08:42 +0000)]
- drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup/group the upgrade guide, no need of twenty titles for the same change

14 years ago- drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup...
Pierre Joye [Fri, 17 Sep 2010 08:41:05 +0000 (08:41 +0000)]
- drop TSRMLS_FETCH in sapi_register_* (won't bring much at runtime :) ) and cleanup/group the upgrade guide, no need of twenty titles for the same change

14 years agofix ZTS build
Antony Dovgal [Fri, 17 Sep 2010 07:07:52 +0000 (07:07 +0000)]
fix ZTS build

14 years ago- Added missing entries related to pdo_dblib
Felipe Pena [Thu, 16 Sep 2010 21:49:48 +0000 (21:49 +0000)]
- Added missing entries related to pdo_dblib

14 years ago- WS
Pierre Joye [Thu, 16 Sep 2010 19:15:26 +0000 (19:15 +0000)]
- WS

14 years agoImplement FR #44331 (Formatting option for json_encode). Bikeshedding about the
Adam Harvey [Thu, 16 Sep 2010 16:21:15 +0000 (16:21 +0000)]
Implement FR #44331 (Formatting option for json_encode). Bikeshedding about the
exact form of the JSON pretty printing and brace handling will only be accepted
in the form of patches. ;)

14 years agoRebalance the folds in json.c.
Adam Harvey [Thu, 16 Sep 2010 14:15:19 +0000 (14:15 +0000)]
Rebalance the folds in json.c.

14 years agoImplemented FR #49366 (Make slash escaping optional in json_encode()).
Adam Harvey [Thu, 16 Sep 2010 13:53:27 +0000 (13:53 +0000)]
Implemented FR #49366 (Make slash escaping optional in json_encode()).

14 years ago- zend_list_insert TSRMLS fix (thx tony for the headup)
Pierre Joye [Thu, 16 Sep 2010 13:34:51 +0000 (13:34 +0000)]
- zend_list_insert TSRMLS fix (thx tony for the headup)

14 years ago- cleanup ze1/ze2
Pierre Joye [Thu, 16 Sep 2010 10:01:51 +0000 (10:01 +0000)]
- cleanup ze1/ze2

14 years ago- use TSRMLS_D/C with php_stream_context_alloc
Pierre Joye [Thu, 16 Sep 2010 09:33:42 +0000 (09:33 +0000)]
- use TSRMLS_D/C with php_stream_context_alloc

14 years ago- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert, missing header
Pierre Joye [Thu, 16 Sep 2010 09:18:46 +0000 (09:18 +0000)]
- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert, missing header

14 years ago- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert
Pierre Joye [Thu, 16 Sep 2010 09:13:19 +0000 (09:13 +0000)]
- use TSRMLS_*C instead of TSRMLS_FETCH in zend_list_insert

14 years ago- unused, double declared
Pierre Joye [Wed, 15 Sep 2010 22:25:44 +0000 (22:25 +0000)]
- unused, double declared

14 years ago- not there anymore
Pierre Joye [Wed, 15 Sep 2010 22:11:28 +0000 (22:11 +0000)]
- not there anymore

14 years ago- macros--; ZEND_FAST_* are now gone
Pierre Joye [Wed, 15 Sep 2010 17:27:43 +0000 (17:27 +0000)]
- macros--; ZEND_FAST_* are now gone

14 years ago- update and restore TOC
Pierre Joye [Wed, 15 Sep 2010 17:04:22 +0000 (17:04 +0000)]
- update and restore TOC