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
Stanislav Malyshev
5bb0a44e06
Fix bug #52808 (Segfault when specifying interval as two dates)
2011-01-30 08:54:53 +00:00
Felipe Pena
0e7c00f3a6
- Fixed bug #53867 (Test failure)
...
patch by: rquadling at php.net
2011-01-28 20:41:54 +00:00
Andrey Hristov
2e3e86b996
clear error before doing anything, because we can get
...
trapped by previous error :
php -r '$link = mysqli_init();
var_dump($link->real_connect("127.0.0.1", "unknown", "unknown"));
var_dump($link->real_connect("127.0.0.1", "known", "password"));'
shows the problem. The second connect did not work, as it should be.
2011-01-28 17:33:14 +00:00
Ulf Wendel
267bf9b31b
Don't expect a certain server reply, it is undefined what happens.
2011-01-28 13:41:02 +00:00
Dmitry Stogov
aa5055ba0f
Added ability to connect to HTTPS sites through proxy with basic authentication using stream_context/http/header/Proxy-Authorization
2011-01-28 10:33:47 +00:00
Adam Harvey
c5f06eff15
Fixed bug #53854 (Missing constants for compression type). Patch by Richard
...
Quadling.
2011-01-28 04:19:40 +00:00
Adam Harvey
6bf5a8593b
Fix zip test.
2011-01-28 03:55:34 +00:00
Andrey Hristov
c2887dd8f5
a better habitat
2011-01-27 18:51:12 +00:00
Andrey Hristov
942ea00eea
fix a crash in new code
2011-01-27 17:30:29 +00:00
Ilia Alshanetsky
46ff954ca7
Added support for "extra" parameter for PGNotify().
2011-01-27 16:02:30 +00:00
Scott MacVicar
c10b7e3ac2
Fix crash with mbstring, this probably isn't the correct behaviour but 272/276 of the tests pass after this.
...
When mbstring.language is unset, it ends up being mbfl_no_language_neutral and there is no default when setting the encoding.
internal_encoding and current_internal_encoding then end up being null.
2011-01-27 11:47:31 +00:00
Pierre Joye
36854c3cad
- Fix bug #53166 , missing parameters in reflections/docs
2011-01-27 11:47:24 +00:00
Ulf Wendel
b961a26705
Check PAM auth plugin build in to mysqlnd. I am afraid one cant do much better testing without making many assumptions on the server setup.
2011-01-25 17:00:30 +00:00
Derick Rethans
e1a4b5439d
- Let's keep this consistent in the whole file.
2011-01-25 15:08:19 +00:00
Ulf Wendel
e5e8ca7f43
Handle deprecation messages differently in tests to reduce test differences between 5.3 and trunk: suppress warnings by default, check warnings in a dedicated test
2011-01-25 14:01:00 +00:00
Ulf Wendel
1d6d0f8aaf
Always bail about deprecation, make warning visible. It is documented to be deprecated in the 5.3 manual but the deprecation warning was tied to trace_mode=1 (as of 2002 or the like).
2011-01-25 12:51:29 +00:00
Gustavo André dos Santos Lopes
4a946a91e5
- Fixed CHARSET_UNICODE_COMPAT (ISO-8859-1 is compatible in the relevant sense).
...
- Fixed usage of zend_multibyte_get_internal_encoding (its return cannot be
cast to char*).
- Change tests to reflect that charset detection now relies on
internal_encoding, not on current_internal_encoding.
NOTE: This fixes the changes in rev 306077, but it remains that that change
introduced a BC break. I assumed it was intentional
2011-01-25 10:57:07 +00:00
Ilia Alshanetsky
05b2d22a00
removed un-used variable
2011-01-24 20:58:09 +00:00
Derick Rethans
334c7417fb
- Updated to version 2011.1 (2011a)
2011-01-24 16:45:56 +00:00
Andrey Hristov
2cdc51e580
fix typos
2011-01-24 13:59:28 +00:00
Andrey Hristov
4439bde560
small cleanups
2011-01-24 13:58:18 +00:00
Andrey Hristov
ce4e6f4db5
Handle MySQL 5.5 authentication features.
...
Authentication protocol can be changed, a new raw
packet is introduced, which includes only the "encrypted"
data for the auth plugin, sent after change protocol (0xFE)
is sent to the client.
2011-01-24 12:34:47 +00:00
Stanislav Malyshev
e7a2c9a85c
Add imap_fetchmime
2011-01-24 03:52:00 +00:00
Stanislav Malyshev
68512f85c4
fix tests
2011-01-24 02:48:15 +00:00
Stanislav Malyshev
1a8b87d2c5
Fixed bug #5273 (Can't use new properties in class extended from DateInterval)
2011-01-24 02:31:48 +00:00
Stanislav Malyshev
a6c0a4e474
Fixed Bug #52063 (DateTime constructor's second argument doesn't have a null default value)
2011-01-24 01:15:41 +00:00
Ilia Alshanetsky
9c29975e4d
Fixed compiler warning
2011-01-23 16:44:58 +00:00
Pierre Joye
88a1f3988c
- local redeclaration
2011-01-23 10:02:06 +00:00
Pierre Joye
fc4853f34b
- kill local redeclaration by using a less common name
2011-01-23 09:46:06 +00:00
Ilia Alshanetsky
e3d1ab787f
Fixed variable overloading
2011-01-20 19:32:36 +00:00
Pierre Joye
e0af377bd8
- be sure that we got tzid by adding a default case
2011-01-20 07:05:34 +00:00
Pierre Joye
739a870b0d
- fail when no known op are given
2011-01-20 06:58:04 +00:00
Pierre Joye
4ff753b99b
- unused var
2011-01-20 06:55:11 +00:00
Pierre Joye
1e9faabe8e
- fail when no known op are given
2011-01-20 06:54:28 +00:00
Pierre Joye
eddf7586db
- kill local redeclaration
2011-01-20 06:49:17 +00:00
Pierre Joye
3292399d27
- init err (and simplify)
2011-01-20 06:45:52 +00:00
Pierre Joye
aac73eb84a
- init err
2011-01-20 06:44:16 +00:00
Pierre Joye
a2a62aeb5f
- force static, can't be built yet shared anyway
2011-01-19 21:19:45 +00:00
Andrey Hristov
87a2104c1a
fix ZTS build
2011-01-19 17:51:02 +00:00
Pierre Joye
f47405315d
- malloc may fail
2011-01-19 15:23:07 +00:00
Gustavo André dos Santos Lopes
b9b1fb1827
- Hopefully finally fixed the mess in rev 307562 and rev 307563.
2011-01-19 00:22:06 +00:00
Gustavo André dos Santos Lopes
f455f85e6c
- Fixed wrong function call in original commit to FR #39771 .
2011-01-18 19:56:09 +00:00
Gustavo André dos Santos Lopes
163b3bcec9
- Implemented FR #39771 (Made DOMDocument::saveHTML accept an optional
...
DOMNode like DOMDocument::saveXML).
2011-01-18 19:45:38 +00:00
Pierre Joye
0c665f0996
- fix the fix (wrong test)
2011-01-18 10:29:26 +00:00
Pierre Joye
a1b2df31d6
- don't try to access if calloc fails (quick review of its usage: seems that the stats member is validated in other places, to be confirmed)
2011-01-17 14:07:40 +00:00
Pierre Joye
59dc221530
- fix NULL derefencing
2011-01-17 14:01:01 +00:00
Ilia Alshanetsky
78b60fcc97
Fixed compiler warning
2011-01-17 13:44:54 +00:00
Ulf Wendel
a55e03aaff
Fix tests: don't expect people to use a certain db/schema for testing
2011-01-17 13:06:44 +00:00
Kalle Sommer Nielsen
5ba90aefb0
Added 'catalog' to the field fetching functions in mysqli (Thanks to Johannes for the headsup)
2011-01-17 10:43:53 +00:00
Kalle Sommer Nielsen
dc8da85778
Remove this void comment (c/p mistake)
2011-01-17 09:59:07 +00:00
Kalle Sommer Nielsen
2d9325ec2c
Fix mysqlnd build
2011-01-16 15:44:48 +00:00
Andrey Hristov
16c6ce94d2
Update on the mysqlnd auth plugins, changed the plugin
...
structure and where they load themselves.
0xFE packets (method switch) needs to be done, additional
wire-level packet to be created to be parsed and the packet
doesn't fit the PACKET_OK structure anymore.
2011-01-14 20:04:17 +00:00
Andrey Hristov
a3391dce9f
merge from branch
2011-01-14 20:02:49 +00:00
Johannes Schlüter
fc49f76caa
- Fix #53551 (PDOStatement execute segfaults for pdo_mysql driver)
2011-01-14 14:57:57 +00:00
Andrey Hristov
5ca5c2bf43
Change things to allow passing of the password length
...
to mysqlnd. This is needed as a password might include
a \0 and thus we need to be binary safe.
2011-01-14 13:00:42 +00:00
Scott MacVicar
b2c4503fbe
intl: Add Spoofchecker cloning, fix typo in prototype, rename some variables and tidy syntax.
2011-01-13 07:46:59 +00:00
Scott MacVicar
d90394851c
Add Spoofchecker to intl extension.
...
Implements part of Unicode TR36 and TR39
2011-01-13 06:53:09 +00:00
Andrey Hristov
429e07bba2
grok the MySQL 5.5 extended handshake.
...
Move the authentication routines, the native ones, to
separate file and encapsulate them in a plugin.
Depending on the server version and what the server
requests (or doesn't in old versions) load the authentication
plugin to handle it.
Currently only the 4.1+ authentication is supported. More to come
2011-01-12 21:40:05 +00:00
Derick Rethans
8e73b70806
- Fixed bug #53729 (DatePeriod fails to initialize recurrences on 64bit
...
big-endian systems). (Patch by rein@basefarm.no )
2011-01-12 19:50:09 +00:00
Ilia Alshanetsky
a6a4751a88
Fixed variable re-declaration
2011-01-12 13:21:27 +00:00
Felipe Pena
189b042a01
- Fixed compiler warnings
2011-01-12 00:29:59 +00:00
Andrey Hristov
ddbbcdce49
Use common code to handle initial authentication and
...
COM_CHANGE_USER
2011-01-11 13:02:57 +00:00
Ilia Alshanetsky
934e8d134c
Fixed bug #53630 (Fixed parameter handling inside readline() function).
2011-01-10 18:19:02 +00:00
Andrey Hristov
00eaff1528
plug a leak
2011-01-10 15:28:52 +00:00
Andrey Hristov
61d49db1f3
new flag
2011-01-10 15:14:56 +00:00
Stefan Marr
478e5d1dd0
Added trait_exists() [TRAITS] [DOC]
...
- also changed class_exists() to return false for traits
- added related tests, and get_declared_traits() tests in ext/s/t/co
2011-01-09 19:57:41 +00:00
Rui Hirokawa
b374b41c6f
added an option to http_build_query for RFC-3986
...
based url-encoding.
2011-01-08 02:21:44 +00:00
Kalle Sommer Nielsen
69a3575b38
Implemented FR #39847 (mysqli_fetch_[field|fields|field_direct] need to return db)
2011-01-07 18:25:55 +00:00
Kalle Sommer Nielsen
ee62a1a747
Added test case for #47802 and fixed macro name after the move to mysql_options()
2011-01-07 17:18:30 +00:00
Kalle Sommer Nielsen
1351c2e2c6
Update to use mysql_options() instead of mysql_set_character_set() (As suggested by Andrey)
2011-01-07 14:58:23 +00:00
Pierre Joye
7b330e0e96
- missing add header
2011-01-07 14:57:51 +00:00
Kalle Sommer Nielsen
e4c36b054c
Implemented FR #47802 , support for character sets in DSN strings for PDO_MYSQL
2011-01-07 14:39:56 +00:00
Andrey Hristov
5549e066f2
Proper fix for
...
Bug #53503 mysqli::query returns false after successful LOAD DATA query
which fixes als #56349 , same behavior but in ext/mysql. Both due to a bug
in mysqlnd. Never was a problem with libmysql.
Also fixed the 53503's test case as it always reported PASS, even when there
should have been a failure.
2011-01-07 14:22:30 +00:00
Felipe Pena
d3e6f27a76
- Fixed memory leak on SQLite3Result and SQLite3Stmt when assigning to a reference.
2011-01-07 01:11:16 +00:00
Adam Harvey
3571c955b5
Implement request #53659 (Implementing RegexIterator::getRegex() method). Patch
...
by Joshua Thijssen.
2011-01-06 02:32:02 +00:00
Adam Harvey
e7a1d5004e
Remove empty files left when r306542 was reverted in r306552.
2011-01-06 02:24:49 +00:00
Scott MacVicar
ef0a793fdd
Implemented FR #53466 (SQLite3Result::columnType() should return false after all of the rows have been fetched).
2011-01-06 00:08:59 +00:00
Etienne Kneuss
78728e33fa
Implement SplObjectStorage::removeAllExcept (Patch by Matthey Turland)
2011-01-05 15:01:18 +00:00
Ilia Alshanetsky
92ce32032d
Added test
2011-01-05 14:41:50 +00:00