1
0
mirror of https://github.com/php/php-src.git synced 2026-04-24 16:38:25 +02:00
Commit Graph

25557 Commits

Author SHA1 Message Date
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