Anatol Belski
2f9e928af8
fix leaking streams and memory mapped files
...
(cherry picked from commit f1ff23095b )
2016-12-17 00:12:19 +01:00
Anatol Belski
8bc3f179ce
make timing check more forgiving in these tests
...
Particularly on slower VMs, the sporadic fails can still happen.
The timing is kept in an uncritical range, but allows the tests
pass there. Mayby, it'd make sense to introduce a new group for
this kind of tests, so tests requiring exact time measurement
can be avoided on unsuitable environments.
2016-12-15 12:20:37 +01:00
Matteo Beccati
7c696fa886
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Skip tests when secure_file_priv dir not writable
2016-12-15 09:31:54 +01:00
Matteo Beccati
0c9324ea9b
Skip tests when secure_file_priv dir not writable
2016-12-15 09:31:00 +01:00
Anatol Belski
5136048064
extend skip section
...
The day light offset is calculated based on the system TZ, so with
an unsuitable one there's no way to workaround the false positives.
2016-12-14 19:53:55 +01:00
Anatol Belski
d663296e3b
cleanup temporary data
2016-12-14 12:33:13 +01:00
Nikita Popov
4b2cc62e26
More fixes for bug #73089
...
Insert a lot more DEREFs. Some may not be necessary, but better
safe than sorry. I'm thinking the soap_hash_str_find_deref function
should become part of the zend_hash API -- we need this in many
places.
2016-12-13 17:56:38 +01:00
Andrey Hristov
13fc1b92ca
Add a bit more test cases (edge cases) to the BIT test case
2016-12-12 21:52:36 +02:00
Andrey Hristov
a881ea7d86
Add a test case to test fetching of multiple rows with bit values.
2016-12-12 21:28:33 +02:00
Andrey Hristov
e15c418c4c
Fix off by 1 problem.
...
The problem was manifestated only with BIT columns and only when more than
one row was fetched. The problem was coming from the fact that in pre-7.0
times mysqlnd was using a no-copy optimization. This optimization kept the
strings (and also the BIT mask equivalents as strings) in the packet and the
zval referred to them. 7.0+ zvals cannot use no-copy and always copy. Because
of this the allocated memory for the packet was reduced by 1 by the person who
ported the driver, but the starting address of the bit area wasn't reduced.
Because of this the bit_area started at wrong address and the length decoded
wrong.
2016-12-12 21:11:02 +02:00
Anatol Belski
7a8774ade4
better way to get ACP
2016-12-12 01:54:22 +01:00
Anatol Belski
3473b519c0
fix datatype for zpp, yet a followup on bug #73679
2016-12-12 01:26:06 +01:00
Anatol Belski
1d80fb2cdb
Fixed bug #73679 DOTNET read access violation using invalid codepage
2016-12-11 17:06:55 +01:00
Anatol Belski
66ad7918b8
fix uninitialized member
2016-12-08 17:15:06 +01:00
Anatol Belski
ff6565462e
git clean section
2016-12-08 03:24:18 +01:00
Dorin Marcoci
13ffa88e1f
Fixed bug #72931 PDO_FIREBIRD with Firebird 3.0 not work on returning statement
2016-12-07 21:06:11 +01:00
Anatol Belski
c89306ac52
fix leak, take 2
2016-12-06 16:12:39 +01:00
Anatol Belski
9b1430140a
fix leak, take on 7.x
2016-12-06 14:42:59 +01:00
Anatol Belski
b04d60626d
fix leak, take on 5.6
2016-12-06 14:34:27 +01:00
Stanislav Malyshev
183b4d78aa
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
This still leaks memory, I don't have enough knowledge in WDDX code to fix them :(
2016-12-05 22:33:33 -08:00
Stanislav Malyshev
d7ce944cf1
This still leaks memory, I don't have enough knowledge in WDDX code to fix them :(
2016-12-05 22:32:59 -08:00
Stanislav Malyshev
1d59ed7524
Fix bug #73645 - int/size_t confusion
2016-12-05 22:16:00 -08:00
Stanislav Malyshev
6292fe84d3
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix bug #73631 - Invalid read when wddx decodes empty boolean element
2016-12-05 21:58:55 -08:00
Stanislav Malyshev
266ecb6d0a
Fix bug #73631 - Invalid read when wddx decodes empty boolean element
2016-12-05 21:40:55 -08:00
Anatol Belski
eddca73ad2
fix test
...
This test depends on connection flags modifable from teh env,
that can affect the exact function called.
2016-12-04 22:42:39 +01:00
Anatol Belski
1eb3f01c68
fix test
...
On Windows, either doubled backslashes or forward slashes are supported
on the server side.
2016-12-04 22:27:17 +01:00
Anatol Belski
69fbc751ff
fix ident
2016-12-04 20:59:12 +01:00
Anatol Belski
8e209d0435
fix test
2016-12-04 17:28:43 +01:00
Anatol Belski
10a2ceef3b
enforce the test ini usage for the child process
2016-12-04 14:01:40 +01:00
Anatol Belski
2252d4e59d
fork tests
2016-12-01 14:52:18 +01:00
Dmitry Stogov
7f22e3c879
Fixed bad merge
2016-12-01 16:21:57 +03:00
Dmitry Stogov
b7b7dd8cea
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Workaround for GCC-4.9.2 bug
oops, changed in wrong place
2016-12-01 15:50:05 +03:00
Anatol Belski
043d8e2fe1
improve skipif
2016-12-01 13:32:10 +01:00
Dmitry Stogov
003346c450
Simpler overflow check
2016-12-01 10:30:02 +03:00
Nuno Lopes
d5a2af6d1c
Merge branch 'PHP-7.0' of https://git.php.net/push/php-src into PHP-7.0
2016-11-30 14:41:26 -05:00
Dmitry Stogov
9a9ad56af0
Fixed bug #73586 (php_user_filter::$stream is not set to the stream the filter is working on).
2016-11-28 12:54:47 +03:00
Stanislav Malyshev
c8778eb293
oops, changed in wrong place
2016-11-27 16:11:41 -08:00
Stanislav Malyshev
f1a9851c3e
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #68447 : grapheme_extract take an extra trailing character
2016-11-27 15:36:29 -08:00
Stanislav Malyshev
8856b3a63c
Merge branch 'pull-request/1974' into PHP-5.6
...
* pull-request/1974:
Fix #68447 : grapheme_extract take an extra trailing character
2016-11-27 15:34:58 -08:00
Stanislav Malyshev
1cb58ead70
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix #73549 : Use after free when stream is passed to imagepng
2016-11-27 14:53:27 -08:00
Christoph M. Becker
5049ef2f1c
Fix #73549 : Use after free when stream is passed to imagepng
...
If a stream is passed to imagepng() or other image output functions,
opposed to a filename, we must not close this stream.
2016-11-27 14:51:02 -08:00
Matteo Beccati
54c04befc2
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Fix occasionaly failing test
2016-11-27 10:20:38 +01:00
Matteo Beccati
2a80758fd5
Fix occasionaly failing test
2016-11-27 10:20:13 +01:00
Stanislav Malyshev
bc85678df3
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:49:48 -08:00
Stanislav Malyshev
58cdd03d92
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:48:40 -08:00
Stanislav Malyshev
5ee02b207d
Add more mbfl string size checks (bug #73505 )
2016-11-26 14:47:58 -08:00
Christoph M. Becker
003727d851
Fix #73612 : preg_*() may leak memory
...
We have to make sure that collectible zvals end up in the GC root
buffer, to avoid memory leaks.
2016-11-26 15:34:27 +01:00
Stanislav Malyshev
8be94d46f8
Fix more size_t/int implicit conversions
...
Now the conversions are explicit and do checks. Not sure it's
the best way but at least we can see them now in the open.
2016-11-25 15:31:50 -08:00
Stanislav Malyshev
bcc913fa8b
Fix int/size_t confusion in isValidPharFilename (bug #73580 )
2016-11-25 15:31:50 -08:00
Christoph M. Becker
bc979aee6d
Merge branch 'PHP-5.6' into PHP-7.0
2016-11-25 23:16:18 +01:00