Commit Graph

26612 Commits

Author SHA1 Message Date
Xinchen Hui
af92365239 Improved fix for #61058, and add test script 2012-02-12 05:32:24 +00:00
Xinchen Hui
3d898cfa3f Fixed bug #61058 (array_fill leaks if start index is PHP_INT_MAX) 2012-02-12 04:59:08 +00:00
Antony Dovgal
d305d7a863 fix bug #54682 (tidy null pointer dereference) 2012-02-07 20:49:10 +00:00
Christopher Jones
df02fbae3e Fix OpenSSL version-dependent diff. "Time Stamp signing" is not in openssl 0.9. Skip current test for 0.9. New test for 0.9 approved by Stas 2012-02-07 01:15:13 +00:00
Christopher Jones
0b702cb5be Force allow_url_fopen to fix qa.php.net/reports diffs 2012-02-06 23:52:42 +00:00
Christopher Jones
c4100c81cc Mask different curl message. Now passes on Oracle Linux 5 2012-02-06 23:31:51 +00:00
Christopher Jones
d11f2beb82 Allow alternative curl output shown in several qa.php.net/reports logs 2012-02-06 23:14:47 +00:00
Rasmus Lerdorf
c950030b3f Safer way to call pcre_fullinfo - bug 60986 2012-02-06 18:18:53 +00:00
Rasmus Lerdorf
704c45ec3e Fix for bug 60986 2012-02-06 18:11:56 +00:00
Gustavo André dos Santos Lopes
7dcada1c8c - Fixed possible unsigned int wrap around in html.c. Note that 5.3 has the same
(potential) problem; even though the code is substantially different, the
  variable name and the fashion it was incremented was kept.
2012-02-05 14:57:57 +00:00
Rasmus Lerdorf
6659010dc9 Same thing here. "June 18, 1969 8:49:59 AM " does not contain a timezone, so there
is no way to know whether dst should be applied or not.
2012-02-05 10:35:56 +00:00
Rasmus Lerdorf
c5ec2f77dd Without a timezone you can't know whether it is dst or not in this one 2012-02-05 10:29:34 +00:00
Rasmus Lerdorf
38c3fd63e7 Another openssl test that is dependent on the openssl version. The output has
changed in more recent versions. Synch with newer output and consider changing
the test to only pick out the more stable fields instead of all of them.
2012-02-05 10:08:16 +00:00
Popa Adrian Marius
b2d9e1aa80 fix gcov Warning: ibase_drop_db(): lock time-out on wait transaction object http://gcov.php.net/viewer.php?version=PHP_5_4&func=tests&file=ext%2Fpdo_firebird%2Ftests%2Fbug_53280.phpt 2012-02-05 09:58:50 +00:00
Rasmus Lerdorf
db65a539a1 Need EXPECTF here, of course 2012-02-05 09:52:41 +00:00
Rasmus Lerdorf
d99600ee4d Getting different hashes here. But this test isn't testing the hashes,
it is just making sure we actually get a hash and don't crash.
2012-02-05 09:50:14 +00:00
Rasmus Lerdorf
ee19012eab According to the reports on qa this test is failing the same way for everyone.
See: http://qa.php.net/reports/viewreports.php?version=5.3.10&test=%2Fext%2Fopenssl%2Ftests%2Fbug28382.phpt
I'm not sure if this is due to a change in the openssl library or in the extension, so perhaps the test
itself needs to change, but for now synch it with the new output and watch for failures.
2012-02-05 09:32:20 +00:00
Gustavo André dos Santos Lopes
122e11ef6e - Fixed bug #60965 (Buffer overflow on htmlspecialchars/entities with
$double=false).
- Removed unused variable.
- Given maxlen the usual meaning of *len variables (terminator not included).
- Changed some comments.
2012-02-04 18:12:18 +00:00
Xinchen Hui
d2ca448f07 Fixed bug #60968 (Late static binding doesn't work with ReflectionMethod::invokeArgs()) 2012-02-03 16:27:35 +00:00
Gustavo André dos Santos Lopes
024e1307c6 - Headers: forbid \r and \n also after \0, allow CRLF followed by HT or SP and
forbid \0. See bug #60227.
2012-02-03 13:56:37 +00:00
Adam Harvey
325ca60fa7 Fix bug #60933 (Testing asort with SORT_LOCALE_STRING fails on Mac OS X 10.6) on PHP_5_3 and trunk. 2012-02-03 01:21:24 +00:00
Gustavo André dos Santos Lopes
f906a015bb - Hopefully correct fix for bug #60227.
#No commit for 5.4 for now
2012-02-02 18:24:53 +00:00
Andrey Hristov
7153f7f887 assert 2012-02-02 15:00:42 +00:00
Dmitry Stogov
9c0c756417 Fixed basic HTTP authentication for WSDL sub requests. 2012-02-01 12:16:52 +00:00
Dmitry Stogov
e63f7f5a6c Fixed basic HTTP authentication for WSDL sub requests 2012-02-01 11:26:57 +00:00
Pierre Joye
88b00ff6df - fix #55226, WS 2012-01-31 07:17:05 +00:00
Pierre Joye
601f05f1b8 - fix #55226, fix build 2012-01-31 07:14:36 +00:00
Adam Harvey
4dc8b1ad11 Fix bug #60801 (strpbrk() mishandles NUL byte) on trunk only for now. 2012-01-30 13:29:15 +00:00
Rasmus Lerdorf
dc27324dd9 createCollation() for pdo_sqlite as well
Closes bug #55226
2012-01-29 04:22:23 +00:00
Rasmus Lerdorf
d8b312845c Missed the test 2012-01-29 04:20:50 +00:00
Rasmus Lerdorf
9b55be870c Good patch from Brad Dewar that adds missing createCollation()
method. Fixes bug #60871 and is related to bug #55226
2012-01-29 03:57:29 +00:00
Felipe Pena
acaf9c5227 - Fixed bug #60860 (session.save_handler=user without defined function core dumps) 2012-01-28 01:24:54 +00:00
Rasmus Lerdorf
7a7e14f502 Please test your tests 2012-01-23 06:39:01 +00:00
Gustavo André dos Santos Lopes
f5a4573182 - Further fix for bug #60455 (stream_get_line misbehaves if EOF is not detected
together with the last read).
- Fixed bug #60817 (stream_get_line() reads from stream even when there is
  already sufficient data buffered). stream_get_line() now behaves more like
  fgets(), as is documented.
#withheld commit to 5.4
2012-01-22 20:30:37 +00:00
Nuno Lopes
023555c7c6 revert r319254 (fix bug #54682) since it is not correct
add test that was broken with that patch.
this bug is probably in libtidy itself and not in PHP. I didn't investigate it enough to confirm, though
2012-01-21 11:32:56 +00:00
Pierrick Charron
1bad879f4c Remove memory leak in substr_replace (to commit in 5.4 after code freeze) 2012-01-20 13:20:14 +00:00
Scott MacVicar
96aa2eb234 Fix CVE-2011-3389. Possible attack on CBC mode with TLS 1.0.
See http://www.openssl.org/~bodo/tls-cbc.txt

The biggest reason for this mode being in SSL_OP_ALL was older versions
of IE (2002) talking to servers using OpenSSL.

Can hopefully get this into 5.4.
2012-01-20 05:31:53 +00:00
Ferenc Kovacs
59fd8d21c9 merging the patch from #52078, fixes the test on disk with huge inode size(fileinode() can overflow and return negative values there). will merge this to PHP_5_4 after the commit freeze. 2012-01-19 00:20:04 +00:00
Pierre Joye
db5751c91c - add test for bug #60761 2012-01-18 20:29:13 +00:00
Pierre Joye
27fb1c24b7 - add test for bug #60761 2012-01-18 20:21:40 +00:00
Michael Wallner
9168f1c807 remove XFAIL for bug #47178 2012-01-18 10:16:37 +00:00
Michael Wallner
d6b11dbfdf fix tests I borked 2012-01-17 17:21:32 +00:00
Michael Wallner
2d2aefe414 remove Salsa10/Salsa20, which are actually stream ciphers not hash functions 2012-01-17 16:35:32 +00:00
Michael Wallner
3e9a7c6c3d adapted tiger hash byte print order to those of md5 and sha1
see http://en.wikipedia.org/wiki/Tiger_(cryptography)
    http://www.cs.technion.ac.il/~biham/Reports/Tiger/test-vectors-nessie-format.dat

Closes Bug #60221 Tiger hash output byte order
2012-01-17 15:25:54 +00:00
Xinchen Hui
19a663d02d unnecessay slash 2012-01-17 14:32:01 +00:00
Sebastian Bergmann
ebddf8a975 Revert r322390. 2012-01-17 13:46:31 +00:00
Sebastian Bergmann
e76c1cc03c Implement ReflectionClass::setFinal() and ReflectionMethod::setFinal().
Patch by Jan Dolecek <juzna.cz@gmail.com>.
2012-01-17 12:59:33 +00:00
Dmitry Stogov
032d140fd6 Improved traits implementation. Now to support __CLASS__ constant in traits php doesn't have to copy the complete compiled method, but can reuse the same code. The resolution of __CLASS__ constants in methods defined in traits are delayed till run-time. This approach also made possible to use __CLASS__ constant as default value for traits properties and method arguments. 2012-01-17 08:09:13 +00:00
Boris Lytochkin
583292ab22 Fixed bug #60585 (php build fails with USE flag snmp when IPv6 support is disabled)
Fixed bug #60749 (SNMP module should not strip non-standard SNMP port from hostname)
Fixed ipv6 test skipto if IPv6 support is disabled
2012-01-13 18:34:21 +00:00
Christopher Jones
dd9ce389c2 Fix configuration message typo and alignment (5.4 merge approved by Stas) 2012-01-12 23:23:05 +00:00