Boris Lytochkin
1dc02ac2de
fix error reporting on OID not increasing
...
calling arguments markup
2011-05-08 09:20:58 +00:00
Felipe Pena
1c24911a46
- Fixed bug #54681 (addGlob() crashes on invalid flags)
2011-05-07 01:58:26 +00:00
Andrey Hristov
91bddbe26e
add the BLOCK_LEAVE macro for non-gcc and non-win
2011-05-04 19:09:12 +00:00
Andrey Hristov
84a309f87b
reorganize the DBG_ macros, add DBG_BLOCK_XXX
2011-05-04 19:05:19 +00:00
Andrey Hristov
2d5e51db05
fix valgrind warning
2011-05-04 10:35:04 +00:00
Antony Dovgal
bb2ccc96d3
fix tests
2011-05-04 08:44:14 +00:00
Antony Dovgal
968d49ae65
fix test
2011-05-04 08:28:31 +00:00
Dmitry Stogov
fbe8cf9a40
Fixed crash when passing invalid timestamp (negative integer on win32)
2011-05-04 07:53:22 +00:00
Antony Dovgal
354cb67597
fix tests
2011-05-03 11:15:30 +00:00
Felipe Pena
48cb3447bb
- Fixed ZTS build
2011-05-01 19:22:24 +00:00
Gustavo André dos Santos Lopes
6d9d7af86f
- Fixed bug #54580 (get_browser() segmentation fault when the browscap ini
...
directive is set in activation time). This commit fixes this by adding a per
request parsing of the browscap file that's when get_browser is called the
first time and the directive is set on activation time.w
2011-05-01 18:37:20 +00:00
Gustavo André dos Santos Lopes
93f65cdeac
- Fixed bug #54623 (Segfault when when writing to a persistent socket after
...
closing a copy of the socket).
2011-05-01 03:57:01 +00:00
Derick Rethans
9c285fddbb
- Updated to version 2011.7 (2011g)
2011-04-30 20:18:51 +00:00
Gustavo André dos Santos Lopes
c2d392e934
- Fixed build on Solaris.
2011-04-30 15:56:07 +00:00
Gustavo André dos Santos Lopes
a6c9737749
- Fixed SKIPIF section missing a semicolon.
2011-04-30 15:54:44 +00:00
Peter Cowburn
e77bd31f3f
fix method name in JsonSerializable exception message
2011-04-30 12:57:23 +00:00
Ilia Alshanetsky
118695a4ea
#doc
...
Added 3rd parameter to filter_var_array() and filter_input_array()
functions that allows disabling addition of empty elements
2011-04-28 12:32:47 +00:00
Rasmus Lerdorf
53204a26d2
Fix test by pointing this at a smaller file that is less likely to break the test
2011-04-27 21:27:31 +00:00
Rasmus Lerdorf
c09f0822fd
Fix broken test
2011-04-27 15:08:44 +00:00
Martin Jansen
0c8438462c
The project calls itself OpenSSL and not openSSL, so let's keep it
...
that way in our code as well.
2011-04-25 16:50:30 +00:00
Pierre Joye
b948b7d8ea
- keep node creation check
2011-04-25 09:31:00 +00:00
Pierre Joye
c8542ceac6
- keep inode creation check
2011-04-25 09:28:08 +00:00
Rasmus Lerdorf
380c3e5127
SSLV2 patch cleanup
2011-04-24 23:27:48 +00:00
Pierre Joye
6336b28019
- fix use of unitiliazed var
2011-04-24 22:08:11 +00:00
Rasmus Lerdorf
f1806e67e6
Support for openssl without SSLv2 supprot compiled in. Distros are starting to
...
remove support now and this wasn't compiling anymore on my Debian dev box.
2011-04-24 20:47:22 +00:00
Stanislav Malyshev
3440d853c7
implement FR #54540 - Allow loading of arbitrary resource bundles when fallback is disabled
2011-04-17 21:56:26 +00:00
Rob Richards
944a2b0c80
Implement FR #48587 (MySQL PDO driver doesn't support SSL connections)
2011-04-15 14:24:40 +00:00
Felipe Pena
07f60310b2
- Remove undesired line (reported by Gökhan Özbulak)
2011-04-13 13:38:52 +00:00
Stanislav Malyshev
c4a8866abb
fix bug #54238 (use-after-free in substr_replace())
2011-04-13 06:32:41 +00:00
Ilia Alshanetsky
465ffa7fa2
Fixed bug #54121 (error message format string typo).
2011-04-12 18:33:08 +00:00
Boris Lytochkin
b1d9284901
fix typo
2011-04-12 08:00:14 +00:00
Gustavo André dos Santos Lopes
09b990f499
- Fixed bug #54440 : libxml extension ignores default context.
2011-04-09 18:32:55 +00:00
Gustavo André dos Santos Lopes
db01e840c2
- Fixed bug #54494 : mb_substr() mishandles UTF-32LE and UCS-2LE.
2011-04-09 16:59:36 +00:00
Sebastian Bergmann
6f3148db81
Add optional argument to debug_backtrace() and debug_print_backtrace() to limit the amount of stack frames returned.
2011-04-09 09:52:24 +00:00
Dmitry Stogov
77ed819430
Fixed bug #54323 (Accessing unset()'ed ArrayObject's property causes crash)
2011-04-07 14:52:30 +00:00
Adam Harvey
187eb235fe
Implement FR #54459 (Range function accuracy) by changing the way range()
...
calculates values when used with floating point bounds/step.
2011-04-06 10:23:06 +00:00
Boris Lytochkin
bbb4f679ae
* Net-SNMP version detection and proper processing
...
* more UCD-SNMP-related code removal
2011-04-06 06:58:25 +00:00
Boris Lytochkin
cab643f615
* added detection and walkaround for net-snmp library bug (net-snmp BUGid 2027834)
...
* drop UCD-SNMP support, R.I.P.
2011-04-05 12:20:35 +00:00
Pierrick Charron
1368364469
Fix common typos in the source code (Reported in Bug #54065 )
...
# External libraries were excluded
# Thanks eitan at eitanadler dot com for the first patch :)
2011-04-03 21:46:52 +00:00
Ilia Alshanetsky
063aba2e65
Fixed bug #53037 (FILTER_FLAG_EMPTY_STRING_NULL is not implemented).
2011-04-03 16:30:31 +00:00
Pierrick Charron
5a8c917c37
Fixed bug #54454 (substr_compare incorrectly reports equality in some cases)
2011-04-03 07:18:27 +00:00
Felipe Pena
70075bc84c
- Improved message and version checking
2011-04-02 01:24:53 +00:00
Pierre Joye
599d9134fc
- add CURLINFO_REDIRECT_URL
2011-04-01 17:19:08 +00:00
Pierre Joye
4aac903e61
- [doc] add ini option to set the default cainfo file, in case none was set at compile time
2011-04-01 17:10:52 +00:00
Derick Rethans
fee45b7a5f
- Updated to version 2011.5 (2011e)
2011-04-01 11:24:49 +00:00
Pierre Joye
27c0221dc9
- not used on win
2011-03-30 09:46:56 +00:00
Pierre Joye
f7249e7c5c
- fix build, should fix that code too on non win (wondering if that part was working at all)
2011-03-30 09:46:20 +00:00
Pierre Joye
38bbbe3417
- attempt to fix build, 1st error
2011-03-30 09:42:21 +00:00
Pierre Joye
b7a99bbbb8
- fix build
2011-03-30 09:25:09 +00:00
Christopher Jones
92ecff668f
Refactor OCI8 config.m4: improve messages and merge similar conditionals
2011-03-29 21:37:45 +00:00
Felipe Pena
5def890d4d
- Fixed bug #44989 (64bit Oracle RPMs still not supported by pdo-oci)
...
patch by: jbnance at tresgeek dot net
2011-03-29 18:40:20 +00:00
Nuno Lopes
301eda5b6d
MFB (r309775): fix last commit
2011-03-28 09:11:28 +00:00
Gustavo André dos Santos Lopes
f7b7b6aa9e
- Improved upon r309729.
...
- Extented strategy to remaining the classes on spl_directory.c, even those that don't crash.
- UPGRADING.
- Better bug54384.phpt, with all the classes covered.
2011-03-27 22:44:34 +00:00
Arnaud Le Blanc
b83e243c23
Added CallbackFilterIterator and RecursiveCallbackFilterIterator classes
...
[DOC] This is a concrete FilterIterator which takes a callback as
constructor parameter, and uses this callback for filtering. This allows
to use FilterIterator without extending it.
CallbackFilterIterator Example:
$it = new ArrayIterator(range(1,100));
$it = new CallbackFilterIterator($it, function($value) {
return $value % 2;
});
foreach($it as $value) // ...
RecursiveCallbackFilterIterator Example:
$it = new RecursiveDirectoryIterator("/");
$it = new RecursiveCallbackFilterIterator($it, function($file, $k, $it) {
return $it->hasChildren() || $file->getSize() > 1024;
});
foreach(new RecursiveIteratorIterator($it) as $file) // ...
The callback takes the current value, the current key and the inner
iterator as parameters.
2011-03-27 20:13:27 +00:00
Felipe Pena
2191af9546
- Fixed compiler warnings
2011-03-27 18:14:58 +00:00
Gustavo André dos Santos Lopes
c2fe893985
- Fixed bug #54384 : Several SPL classes crash when parent constructor is
...
not called.
#Merge to 5.3 pending (slight BC break on AppendIterator, as it's no
#longer possible to defer the call to the parent constructor until
#after the constructor is performed).
#Bugs fixed in an atypical way for SPL. The parent constructor call
#check is performed at construction time by using a wrapper constructor
#instead of a check on the beginning of each instance method.
#Perhaps this should be uniformized in trunk; this method was mainly
#applied only to the ones crashing, except a few iterators (at least
#AppendIterator and RecursiveIteratorIterator).
2011-03-27 04:21:06 +00:00
Felipe Pena
3acdca4703
- Fixed bug #54395 (Phar::mount() crashes when calling with wrong parameters)
2011-03-26 17:02:34 +00:00
Ulf Wendel
8138f7de40
Update of mysqlnd version. This has been forgotten when introducing set_autocommit, tx_commit, tx_rollback calls ( http://svn.php.net/viewvc?view=revision&revision=308669 ).
2011-03-25 10:45:28 +00:00
Andrey Hristov
133ba9b5dd
fix buffer overflow - overwriting with 0x0, due to
...
unchecked buffer size. This can be easily workarouned on
existing unpatched systems by increasing
mysqlnd.net_cmd_buffer_size ini variable to more than 8k
2011-03-24 16:12:18 +00:00
Ulf Wendel
38fd7f48d0
Limit test with 65k params, should crash mysqlnd
2011-03-24 13:40:06 +00:00
Felipe Pena
39e0aa4dc6
- Fixed bug #54292 (Wrong parameter causes crash in SplFileObject::__construct())
2011-03-23 22:46:04 +00:00
Andrey Hristov
e7a5fb405e
Fix compressed build, make it easier
2011-03-23 17:14:28 +00:00
Ulf Wendel
1eb3bdd802
Coverage for a 'silent server protocol change' from the past for which both mysqlnd and libmysql have workarounds.
2011-03-23 08:57:52 +00:00
Felipe Pena
2adf58cfcf
- Fixed bug #54283 (new DatePeriod(NULL) causes crash)
2011-03-23 01:22:18 +00:00
Felipe Pena
11c4a5b96a
- Fixed bug #54281 (Crash in non-initialized RecursiveIteratorIterator)
2011-03-22 22:41:16 +00:00
Andrey Hristov
3ffac762b0
palloc is long dead, use more appropriate name
2011-03-22 14:39:58 +00:00
Andrey Hristov
a6d4f047d4
Fix message
2011-03-22 14:39:36 +00:00
Andrey Hristov
cfb01aab63
remove more unneeded includes
2011-03-22 12:54:02 +00:00
Andrey Hristov
15fd9c4f58
remove unneeded includes
2011-03-22 12:22:16 +00:00
Adam Harvey
9de1ad4cd2
Fix bug #54318 (Non-portable grep option used in PDO pgsql configuration).
...
Patch by Ben Walton <bwalton at artsci dot utoronto dot ca>.
2011-03-22 09:12:01 +00:00
Adam Harvey
991ba13174
Fix bug #54340 (DateTime::add() method bug).
2011-03-22 08:33:22 +00:00
Gustavo André dos Santos Lopes
0de2e61cab
- Added socket_import_stream().
...
- Fixed socket_strerror.phpt
- Made php_set_sock_blocking return FAILURE on fcntl error.
- Made socket_set_block()/socket_set_nonblock() emit warning on error.
2011-03-22 00:44:23 +00:00
Andrey Hristov
3afdf62df0
throw out legacy code, that never was used for something
...
useful. Was added for QC but QC is now a plugin, not part of
the core.
2011-03-21 13:58:11 +00:00
Adam Harvey
e1c16f119c
Fix bug #54316 (DateTime::createFromFormat does not handle trailing '|'
...
correctly).
2011-03-21 09:40:52 +00:00
Gustavo André dos Santos Lopes
7f2937223d
- Make fclose() actually close stream, even when the resource refcount is > 1.
...
This reverts the fix for bug #24557 .
- Make php_stream_free delete the stream from the resources list, not merely
decrease its refcount, as a single call to zend_list_delete does.
#Not worth the risk merging to 5.3. While change #2 may prevent some segfaults,
#a quick and dirty survey to the codebase only showed calls to php_stream_close
#or php_stream_free on streams allocated in the same function, which would have
#refcount == 1. May be reconsidered.
2011-03-21 02:58:54 +00:00
Gustavo André dos Santos Lopes
2034e14341
- Fixed SKIPIF section of bug52820.phpt.
2011-03-20 22:15:43 +00:00
Gustavo André dos Santos Lopes
bc13636bfe
- Fixed SKIPIF section of bug51958.phpt.
2011-03-20 22:12:11 +00:00
Boris Lytochkin
14eaa5ac58
follow CS:
...
- method set_security should be named as setSecurity
- SNMP_VERSION_2C constant
2011-03-20 20:07:33 +00:00
Gustavo André dos Santos Lopes
547a96090f
- Fixed bug #54332 (trunk only, null pointer deref due to information loss on long to int conversion)
...
- Fixed some int* pointers being passed as size_t*.
2011-03-20 15:15:08 +00:00
Gustavo André dos Santos Lopes
2ddfe19120
- Normalized line endings, added native eol-style.
2011-03-20 02:05:41 +00:00
Gustavo André dos Santos Lopes
c9d397d59f
- Adding copyright headers to the new files, gotta do something about the
...
windows line endings too, but I'm separating the commits.
2011-03-20 02:03:29 +00:00
Gustavo André dos Santos Lopes
8deb11c0c3
- Fixed bug #54291 (Crash iterating DirectoryIterator for dir name starting
...
with \0).
2011-03-19 23:15:04 +00:00
Boris Lytochkin
5d0c948296
revert r309111 (name_len was not a typo)
2011-03-19 20:50:39 +00:00
Felipe Pena
179b9d0f63
- Fixed bug #54312 (soap_version logic bug)
...
Patch by: tom at samplonius dot org
2011-03-19 17:36:01 +00:00
Raphael Geissert
a286fa3523
Add the libraries we actually test and need for LDAP and OpenSSL, fixes bug #53339
...
Patch by Clint Byrum
2011-03-18 18:47:09 +00:00
Andrey Hristov
f06443593e
add a proxy for sppintf and vspprintf
2011-03-18 14:56:20 +00:00
Andrey Hristov
c90df5850b
WS
2011-03-18 13:55:25 +00:00
Andrey Hristov
2d2d1c7335
new function/methods - mysqlnd_stmt_flush. Removing
...
code duplication
2011-03-18 13:35:33 +00:00
Andrey Hristov
ca5df2a8bb
less trace info
2011-03-18 12:33:17 +00:00
Andrey Hristov
8c14436f73
split mysqlnd_debug.c in 3 files
2011-03-18 11:58:46 +00:00
Gustavo André dos Santos Lopes
ff0fe17725
- Replaced calls to getprotobyname by constants to avoid
...
unnecessarily hitting /etc/protocols on MINIT.
2011-03-17 22:21:59 +00:00
Ulf Wendel
afdcb5ecb4
Test coverage for some of the cases where LAST_INSERT_ID() and API *_insert_id() differ as documented in the MySQL manual in particular the C API reference section
2011-03-17 15:18:22 +00:00
Andrey Hristov
d903915f93
Fix for bug #54221 mysqli::get_warnings segfault when used in multi queries
2011-03-17 10:28:53 +00:00
Andrey Hristov
34846cff4d
Remove unused macros
2011-03-16 14:10:59 +00:00
Andrey Hristov
5d9b15feb1
allocate persistently
2011-03-16 12:42:59 +00:00
Andrey Hristov
4a38256394
compiler warnings fixed
2011-03-16 11:51:56 +00:00
Gustavo André dos Santos Lopes
76dd2d8e2c
- Fixed bug #51958 : socket_accept() fails on IPv6 sockets.
...
#On hold for 5.3
2011-03-14 22:59:05 +00:00
Derick Rethans
8553a94476
- Updated to version 2011.4 (2011d)
2011-03-14 18:56:02 +00:00
Dmitry Stogov
bbc879b587
Fixed multibyte related issues
2011-03-14 16:00:59 +00:00
Felipe Pena
0be5ca5b3c
- Missing fixes for bug #54247
2011-03-14 14:12:42 +00:00
Felipe Pena
fe91aeaaac
- Fixed bug #54247 (format-string vulnerability on Phar)
2011-03-14 13:54:41 +00:00
Gustavo André dos Santos Lopes
e4298bf0fb
- Added multicast support to the sockets extension (bug #40510 ).
2011-03-14 00:08:29 +00:00
Felipe Pena
cedd0a7224
- Fix infile return on duplicated key (related to bug #54242 )
2011-03-13 14:57:19 +00:00
Felipe Pena
5500c1cc17
- Fixed bug #54242 (dba_insert returns true if key already exists)
2011-03-13 14:21:58 +00:00
Felipe Pena
03b63d57be
- Fixed ZTS build
2011-03-13 14:19:31 +00:00
Pierrick Charron
6e74d95f34
Fixed bug #54180 (parse_url() incorrectly parses path when ? in fragment)
2011-03-13 04:02:56 +00:00
Boris Lytochkin
d890ece3fc
fix typo in SNMP_SNPRINT_VALUE usage: use val_len, not name_length
2011-03-11 07:21:13 +00:00
Eyal Teutsch
adecc80459
fixed tests to match the new float precision of 53, as described in bug 47168
2011-03-10 13:25:19 +00:00
Scott MacVicar
a5339945c6
Add a version number to timelib for other projects that use it.
...
This has the same version scheme as timezonedb.
<year><release-padded-to-two>
2011-03-09 20:06:52 +00:00
Felipe Pena
67fa13a3ca
- Fixed bug #49608 (Using CachingIterator on DirectoryIterator instance segfaults)
2011-03-08 19:56:29 +00:00
Felipe Pena
9c61d0a6dd
- Version++
2011-03-08 18:24:04 +00:00
Felipe Pena
4fcffb5443
- Fixed bug #54193 (Integer overflow in shmop_read())
2011-03-08 13:11:14 +00:00
Derick Rethans
a37cf682d8
- Updated to version 2011.3 (2011c)
2011-03-07 14:55:28 +00:00
Moriyoshi Koizumi
b2ddc6de23
Fix ZTS build.
2011-03-06 07:06:55 +00:00
Moriyoshi Koizumi
cdb9ee0d1a
Fix zend.multibyte oddities. Hope this will address all the known problems.
2011-03-06 07:00:30 +00:00
Felipe Pena
6ba343aeff
- Fixed bug #54167 (PDO_DBLIB returns null on SQLUNIQUE field)
...
# initial patch by: mjh at hodginsmedia dot com (5.3)
# trunk version by me
2011-03-05 23:07:45 +00:00
Boris Lytochkin
8e600b817e
* tune snmp2_walk.phpt
...
* more net-snmp v5.3 compatibility (OPAQUE_SPECIAL_TYPES)
2011-03-04 19:23:25 +00:00
Boris Lytochkin
3c0f1d5b95
* fix warning about redefining REGISTER_PDO_CLASS_CONST_LONG (damn copy'n'paste)
...
* tuned two unit test that failed at gcov.php.net/PHP_HEAD
2011-03-04 18:58:01 +00:00
Boris Lytochkin
661b552938
fix warnings mentioned in 'Parameter Parsing Report'
2011-03-02 22:12:02 +00:00
Felipe Pena
18097605b7
- Fixed SplObjectStorage::offsetSet arginfo, reported in bug #54118
2011-03-01 00:13:23 +00:00
Ilia Alshanetsky
1d984a7ffd
Fixed bug #54089 (token_get_all() does not stop after __halt_compiler).
2011-02-28 15:18:27 +00:00
Gustavo André dos Santos Lopes
e65d361fde
- Fixed bug #54092 (Segmentation fault when using HTTP proxy with the FTP
...
wrapper).
#php_stream->wrapperdata should hold an array zval (like its zval* type
#indicates...), it's not a place where the wrapper can drop an arbitrary
#pointer. For that, .wrapperthis should be used.
#Also, since the ftp dir wrapper defines its own stream type, it's more
#appropriate to use .abstract to store the stream instance specific data.
2011-02-27 20:23:54 +00:00
Boris Lytochkin
e9920cce1c
remove compiler warnings
...
fix various memory leaks seen with --enable-debug
2011-02-26 19:08:55 +00:00
Boris Lytochkin
1c65920819
* new methods get_errno, get_error to get errno and error string
...
of last SNMP-related error
* formatting markup
* some fixes in max_oids logic: NULL will set it to default value,
do not allow non-positive user-supplied values
* unit tests for changes
2011-02-26 08:27:26 +00:00
Boris Lytochkin
3ab69c4cff
fix parse errors for non_repeaters & max_repetitions: aligment errors
2011-02-25 19:22:15 +00:00
Andrey Hristov
2a9e82d020
even better fix
2011-02-25 16:55:27 +00:00
Andrey Hristov
5373a3949c
fix plugin counting, this is trunk only
2011-02-25 16:44:39 +00:00
Andrey Hristov
59c5875f83
move from macros to functions, which can be overwritten, if needed
2011-02-25 12:25:36 +00:00
Nuno Lopes
8d2d7255ec
MFB: fix lcov build (r308657)
2011-02-25 09:37:33 +00:00
Felipe Pena
accc8eeefe
- Fixed possible off-by-one overflow in ibase_gen_id()
2011-02-24 02:42:38 +00:00
Johannes Schlüter
7d0a6c3f8b
- Fix tests. temp dir might be something other than /tmp
2011-02-22 14:49:32 +00:00
Andrey Hristov
2e30412f20
fix invalid memory read. Thank you, valgrind
2011-02-21 16:24:37 +00:00
Pierre Joye
32c4a3a061
- fix bug #54061 , memory leak in openssl_decrypt
2011-02-21 12:50:26 +00:00
Pierre Joye
f922e31129
- fix bug #54061 , memory leak in openssl_decrypt
2011-02-21 12:47:38 +00:00
Pierre Joye
b526a6ef44
- fix bug #54060 , memory leak in openssl_encrypt
2011-02-21 10:07:31 +00:00
Scott MacVicar
ecb9d8019c
Fix Bug #54058 , invalid utf-8 doesn't set json_encode() in all cases
2011-02-21 08:09:02 +00:00
Gustavo André dos Santos Lopes
2a6968e43a
- Fixed bug #54055 (buffer overrun with high values for precision ini
...
setting).
#This fix (for g/G/k/H modes) is done at a different level than that for the
#modes e/E/f/F, at a bit higher level and therefore with less coverage. I
#chose this because it addresses the problem where it is -- the calling function
#that passes a buffer too small to php_gcvt.
2011-02-21 06:53:24 +00:00
Gustavo André dos Santos Lopes
b21f62eb2d
- Removed dead defines.
2011-02-21 05:33:16 +00:00
Felipe Pena
a47eb9a4d6
- Fixed memory leak in DirectoryIterator::getExtension() and SplFileInfo::getExtension()
2011-02-20 16:33:53 +00:00
Felipe Pena
c4850dbf88
- Fixed bug #54040 (Logical && where & probably needed in spl_iterators)
2011-02-20 16:09:50 +00:00
Felipe Pena
b98ceb5e40
- Fixed build
2011-02-19 16:32:00 +00:00
Johannes Schlüter
6c734a6b4c
- Implement FR#53878 Interactive shell should work with shared readline extension
...
# This is useful w/ distributors who like to build all things shared or don't
# provide the readline extension. Or if a user pefers readline's behavior over
# libedit which might be used by the distributor.
2011-02-19 16:04:30 +00:00
Boris Lytochkin
430af9a0ab
push most of SNMP query options into objid_query structure
2011-02-19 11:13:10 +00:00
Gustavo André dos Santos Lopes
a3a5157286
- PHP_STREAM_OPTION_WRITE_BUFFER no longer disables the read buffer of a plain
...
stream when 0 is given as the value.
- PHP_STREAM_OPTION_WRITE_BUFFER no longer changes the chunk size in socket
streams.
- Added stream_set_chunk_size() function.
- Some signedness fixes.
- Test for commit r308474, now that it's possible to actually test it.
2011-02-19 01:28:37 +00:00
Boris Lytochkin
73f5ee551c
enable HAVE_SHUTDOWN_SNMP_LOGGING
2011-02-17 12:12:22 +00:00
Boris Lytochkin
6b81a9ac2e
* Fix memory leak on concurrent new, open
...
* change comments to ANSI-C style
* added compatibility with net-snmp prior 5.4
2011-02-17 12:02:16 +00:00
Gustavo André dos Santos Lopes
9bbc114b59
- Classes that implement stream wrappers can define a method called
...
stream_truncate that will respond to truncation, e.g. through ftruncate.
Closes feature request #53888 .
2011-02-17 00:25:32 +00:00
Andrey Hristov
eb0dd2b8ab
fixed a problem in mysqlnd. 0 was always as num_rows returned for
...
unbuffered sets (text protocol and PS).
2011-02-16 16:36:33 +00:00
Derick Rethans
ef95075cdc
- Updated to version 2011.2 (2011b)
2011-02-15 16:26:42 +00:00
Pierre Joye
2a7acc3f4d
- fix the fix (Dmitry) and ensure that it builds everywhere, can someone test on solaris&co pls?
2011-02-15 14:02:26 +00:00
Pierre Joye
36671fe781
- unused var
2011-02-15 09:07:34 +00:00
Pierre Joye
6f6d60821e
- fix intl build with ICU < 4.2, windows part
2011-02-15 08:48:24 +00:00
Pierre Joye
71f5af6c70
- fix build with ICU < 4.2, add ICU_VERSION for m4 checks
2011-02-15 08:28:03 +00:00
Felipe Pena
b58c6f5ede
- Fixed crash on unserialize(serialize(new SNMP))
2011-02-15 00:07:26 +00:00
Felipe Pena
aef9557333
- Fixed memory leak on serialize(new SNMP)
2011-02-14 23:58:52 +00:00
Felipe Pena
be2bfd1bcf
- Fixed memory leak
2011-02-14 23:43:22 +00:00
Hannes Magnusson
d1d61ce612
Bug#54016 (finfo_file() Cannot determine filetype in archives)
2011-02-14 15:32:02 +00:00
Ilia Alshanetsky
86efc8e55e
Fixed variable re-declarations
2011-02-14 14:05:46 +00:00
Pierre Joye
409c5a9c7b
-Bug #54002 , fix windows build, use the relevant values in the warnings
2011-02-14 09:40:10 +00:00
Pierre Joye
dbccc8c112
- fix bug #54002 , exif_read_data crashes on crafted tags
2011-02-14 09:08:44 +00:00
Felipe Pena
f912a2d087
- Fixed bug #53991 (SimpleXMLElement::__construct shows no params via ReflectionMethod)
2011-02-11 21:10:48 +00:00
Daniel Convissor
e718cfd09d
Add DateInterval format() tests.
2011-02-11 01:33:45 +00:00
Daniel Convissor
07afcb59f6
Add extensive tests for DateTime::diff(), add() and sub().
2011-02-10 22:57:41 +00:00
Scott MacVicar
18b7f018e3
Fix Bug #53963 , error code isn't always set in certain error cases.
2011-02-09 08:05:00 +00:00
Gustavo André dos Santos Lopes
257b994fdc
- Changed default serialize_precision from 100 to 17, as discussed in internals.
2011-02-08 21:40:51 +00:00
Gustavo André dos Santos Lopes
077ee3a879
- Fixed bug #53959 (reflection data for fgetcsv out-of-date).
2011-02-08 16:29:34 +00:00
Pierre Joye
169c5dc2b7
- Fixed bug #53893 (Wrong return value for ZipArchive::extractTo())
2011-02-07 16:20:16 +00:00
Ilia Alshanetsky
6186c16449
Fixed parse_url() tests to account for port validation
2011-02-06 17:23:57 +00:00
Gustavo André dos Santos Lopes
426f31e790
- Changed port validation introduced in commit #308035 to consider
...
negative ports and ports > 65535 as invalid.
The tests that fail due to #308035 in the standard ext were not
fixed. If the behavior in those tests turns out to be the
desirable one, both this commit and #308035 ought to be reverted
or at least adapted.
2011-02-05 22:37:00 +00:00
Boris Lytochkin
c50b3d7add
fix crash caused by incorrect offset altering
2011-02-05 13:22:38 +00:00
Boris Lytochkin
f69e1100ce
added r/o info property with basic session info,
...
fix crash in _get_properties in trunk
2011-02-05 00:29:31 +00:00
Ilia Alshanetsky
109b8e99e0
Fixed bug #53924 (FILTER_VALIDATE_URL doesn't validate port number).
2011-02-04 21:41:15 +00:00
Adam Harvey
793cfe1376
Change the way HAVE_GLOB is dealt with in ext/zip per IRC conversation with
...
Pierre.
2011-02-04 11:51:29 +00:00
Adam Harvey
fcc7922ff1
Fix bug #53923 (Zip functions assume HAVE_GLOB is defined).
2011-02-04 10:50:42 +00:00
Adam Harvey
6bc25ca285
Fix bug #53914 (SPL assumes HAVE_GLOB is defined). Original patch by Chris
...
Jones; test updates by myself.
2011-02-04 10:49:49 +00:00
Adam Harvey
2b4fb94e8e
Fix bug #53913 (Streams functions assume HAVE_GLOB is defined). Patch by Chris
...
Jones.
2011-02-04 10:47:41 +00:00
Scott MacVicar
0413cf5b48
XFAIL these for the moment, Kalle totally broke these in 298241
...
when removing register_globals
2011-02-03 17:07:48 +00:00
Scott MacVicar
ca378eefa0
Add header_register_callback(), allows a userland function
...
to be called as all the headers are being sent and after all
of the default headers have been merged.
headers_list(), header_remove() and header() can all be used
inside the callback.
<?php
header('Content-Type: text/plain');
header('X-Test: foo');
function foo() {
foreach (headers_list() as $header) {
if (strpos($header, 'X-Powered') !== false) {
header_remove('X-Powered-By');
}
header_remove('X-Test');
}
}
$result = header_register_callback('foo');
echo "a";
2011-02-03 16:47:28 +00:00
Scott MacVicar
ee9af39c90
Fix docblocks on SpoofChecker and remove exceptions after discussion with Stas.
2011-02-03 16:29:23 +00:00
Ilia Alshanetsky
7a23458c8e
Fixed compiler warnings caused by var re-declaration
2011-02-03 13:33:10 +00:00
Gustavo André dos Santos Lopes
9e71bff701
- Simpler fix for bug #53915 .
2011-02-03 12:45:30 +00:00
Gustavo André dos Santos Lopes
f2329f1f4b
- Fixed bug #53915 : ReflectionClass::getConstant(s) emits fatal error on
...
constants with self::.
- Reflown some NEWS entries to have lines no longer than 80 chars.
2011-02-03 12:38:25 +00:00
Gustavo André dos Santos Lopes
1f49902999
- Fixed bug #53903 (userspace stream stat callback does not separate the
...
elements of the returned array before converting them).
2011-02-01 22:55:17 +00:00
Andrey Hristov
01745fa657
Fix more warnings about size_t
2011-02-01 19:30:22 +00:00
Gustavo André dos Santos Lopes
c6ccc43285
- Fixed several comparisons that always result in true of false
...
due to signedness of one of the operands, either by removing
dead code or fixing it.
- Thrown some comments around in php_stream_get_record.
- See http://www.mail-archive.com/internals@lists.php.net/msg49525.html
2011-02-01 18:11:16 +00:00
Andrey Hristov
44cd358f04
fix warnings. These checks are not needed because
...
param_no is unsigned, it wasn't in the beginning.
2011-02-01 16:55:20 +00:00
Gustavo André dos Santos Lopes
28cd40919d
- Fixed bug #49072 (feof never returns true for damaged file in zip).
2011-02-01 14:43:52 +00:00
Ilia Alshanetsky
0927309852
Fixed bug #53898 (PHAR reports invalid error message, when the directory does not exist).
2011-02-01 14:01:00 +00:00
Pierre Joye
fefe9fc5c7
- fix build, wrong version id
2011-02-01 13:57:06 +00:00
Pierre Joye
fcdc76be21
- WS
2011-02-01 10:57:51 +00:00
Boris Lytochkin
2bc31f8027
preprocessed changes made in rev.307894:
...
keeping ext/snmp backwards compatible
2011-02-01 08:20:13 +00:00
Boris Lytochkin
dc781e2520
- Improved SNMP extension:
...
. Allow ~infinite OIDs in GET/GETNEXT/SET queries. Autochunk them to max_oids
upon request.
2011-02-01 07:45:30 +00:00
Felipe Pena
ca9b3511f8
- Fixed build
2011-02-01 01:02:00 +00:00
Andrey Hristov
423000075f
Add two new enums constants from the server
2011-01-31 13:52:21 +00:00
Andrey Hristov
d82b05a64b
Don't lose this data anymore. It worked without the fix,
...
but it with it is just correct (trunk only).
2011-01-31 13:29:18 +00:00
Kalle Sommer Nielsen
ddcac10dd1
Fixed bug #53795 (Connect Error from MySqli (mysqlnd) when using SSL)
2011-01-31 12:47:28 +00:00
Kalle Sommer Nielsen
c8a25b87f1
Use our own zend_strndup() implementation of strndup() -- Fixes build on platforms without strndup(), like Windows
2011-01-31 12:32:32 +00:00
Boris Lytochkin
5e82e334dd
Improved SNMP extension. FR #53594
2011-01-31 11:41:33 +00:00
Stanislav Malyshev
f0d42e74a9
fix bug 53885 (ZipArchive segfault with FL_UNCHANGED on empty archive)
2011-01-30 22:28:57 +00:00
Stanislav Malyshev
1e91069eb4
Fix bug #52290 (setDate, setISODate, setTime works wrong when DateTime created from timestamp)
2011-01-30 10:18:12 +00:00