]> granicus.if.org Git - php/log
php
10 years agoFixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)
Matteo Beccati [Thu, 6 Nov 2014 14:46:49 +0000 (15:46 +0100)]
Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)

10 years agofix dir separator in test
Anatol Belski [Wed, 5 Nov 2014 14:42:45 +0000 (15:42 +0100)]
fix dir separator in test

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Stanislav Malyshev [Mon, 3 Nov 2014 19:43:40 +0000 (11:43 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  update NEWS
  Fix bug #63595 GMP memory management conflicts with other libraries using GMP

10 years agoupdate NEWS
Stanislav Malyshev [Mon, 3 Nov 2014 19:43:15 +0000 (11:43 -0800)]
update NEWS

10 years agoFix bug #63595 GMP memory management conflicts with other libraries using GMP
Remi Collet [Mon, 27 Oct 2014 06:45:34 +0000 (07:45 +0100)]
Fix bug #63595 GMP memory management conflicts with other libraries using GMP

Drop use of php memory allocators as this raise various conflicts
with other extensions and libraries which use libgmp.

No other solution found.
We cannot for ensure correct use of allocator with shared lib.

Some memory can allocated before php init
Some memory can be freed after php shutdown

Known broken run cases
- php + curl + gnutls + gmp
- mod_gnutls + mod_php + gnutls + gmp
- php + freetds + gnutls + gmp
- php + odbc + freetds + gnutls + gmp
- php + php-mapi (zarafa) + gnutls + gmp

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Stanislav Malyshev [Mon, 3 Nov 2014 19:37:43 +0000 (11:37 -0800)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Initialize the offset table - PCRE may sometimes miss offsets
  set default response code to 200
  fix NEWS & version
  NEWS
  Fix bug #68283: fileinfo: out-of-bounds read in elf note headers
  Fix bug #68113 (Heap corruption in exif_thumbnail())
  Fix bug #68089 - do not accept options with embedded \0
  Fixed bug #68044: Integer overflow in unserialize() (32-bits only)
  Fix bug #68027 - fix date parsing in XMLRPC lib

Conflicts:
configure.in
ext/curl/interface.c
main/php_version.h

10 years agoInitialize the offset table - PCRE may sometimes miss offsets
Stanislav Malyshev [Mon, 3 Nov 2014 00:04:00 +0000 (16:04 -0800)]
Initialize the offset table - PCRE may sometimes miss offsets

10 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
George Wang [Mon, 3 Nov 2014 16:43:43 +0000 (11:43 -0500)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

10 years agoset default response code to 200
George Wang [Mon, 3 Nov 2014 16:42:01 +0000 (11:42 -0500)]
set default response code to 200

10 years agoset default response code to 200
George Wang [Mon, 3 Nov 2014 16:42:01 +0000 (11:42 -0500)]
set default response code to 200

10 years agoFixed bug #66584 Segmentation fault on statement deallocation
Matteo Beccati [Sat, 1 Nov 2014 18:11:43 +0000 (19:11 +0100)]
Fixed bug #66584 Segmentation fault on statement deallocation

10 years agofix ZTS build
Anatol Belski [Fri, 31 Oct 2014 18:53:16 +0000 (19:53 +0100)]
fix ZTS build

10 years agoAdded PGSQL_TEST_CONNSTR env var support for ext/pgsql tests
Matteo Beccati [Fri, 31 Oct 2014 17:54:16 +0000 (18:54 +0100)]
Added PGSQL_TEST_CONNSTR env var support for ext/pgsql tests

10 years agoFixed bug #67462 PDO_PGSQL::beginTransaction() wrongly throws exception when not...
Matteo Beccati [Fri, 31 Oct 2014 17:10:01 +0000 (18:10 +0100)]
Fixed bug #67462 PDO_PGSQL::beginTransaction() wrongly throws exception when not in transaction

10 years agodon't try to send in the test results until we restored qa.php.net
Ferenc Kovacs [Thu, 30 Oct 2014 17:12:37 +0000 (18:12 +0100)]
don't try to send in the test results until we restored qa.php.net

10 years agoDon't treat warnings as failures in the junit output
Matteo Beccati [Wed, 29 Oct 2014 13:32:41 +0000 (14:32 +0100)]
Don't treat warnings as failures in the junit output

This matches Travis and the actual return code.

10 years agoFixed test to work with recent libcurl versions
Matteo Beccati [Wed, 29 Oct 2014 10:26:22 +0000 (11:26 +0100)]
Fixed test to work with recent libcurl versions

10 years agoPHP 5.5.20 now
Julien Pauli [Tue, 28 Oct 2014 14:01:53 +0000 (15:01 +0100)]
PHP 5.5.20 now

10 years agoEnsure we have enough input data before parsing date
Remi Collet [Tue, 28 Oct 2014 07:48:22 +0000 (08:48 +0100)]
Ensure we have enough input data before parsing date

This check have be removed in
http://git.php.net/?p=php-src.git;a=commit;h=ba2f87b50667f147c198abd31fc31eb09522f3d7
But the parser really need 17 char.
And the string need to be nul terminated for this check
So avoid reading random byte from memory.

10 years agoFix bug #68095 - invalid read in php_getopt()
Stanislav Malyshev [Tue, 28 Oct 2014 02:04:46 +0000 (19:04 -0700)]
Fix bug #68095 - invalid read in php_getopt()

It's a hacky solution and incomplete, but I don't see other way
without refactoring the whole getopt protocol.

10 years agoNEWS
Remi Collet [Mon, 27 Oct 2014 06:47:18 +0000 (07:47 +0100)]
NEWS

10 years agoFix bug #63595 GMP memory management conflicts with other libraries using GMP
Remi Collet [Mon, 27 Oct 2014 06:45:34 +0000 (07:45 +0100)]
Fix bug #63595 GMP memory management conflicts with other libraries using GMP

Drop use of php memory allocators as this raise various conflicts
with other extensions and libraries which use libgmp.

No other solution found.
We cannot for ensure correct use of allocator with shared lib.

Some memory can allocated before php init
Some memory can be freed after php shutdown

Known broken run cases
- php + curl + gnutls + gmp
- mod_gnutls + mod_php + gnutls + gmp
- php + freetds + gnutls + gmp
- php + odbc + freetds + gnutls + gmp
- php + php-mapi (zarafa) + gnutls + gmp

10 years ago- Updated to version 2014.9 (2014i)
Derick Rethans [Sun, 26 Oct 2014 14:54:07 +0000 (10:54 -0400)]
- Updated to version 2014.9 (2014i)

10 years agoupdated libmagic.patch in 5.5
Anatol Belski [Sat, 25 Oct 2014 10:01:58 +0000 (12:01 +0200)]
updated libmagic.patch in 5.5

10 years agoNEWS
Remi Collet [Sat, 25 Oct 2014 09:29:53 +0000 (11:29 +0200)]
NEWS

10 years agoFix bug #68283: fileinfo: out-of-bounds read in elf note headers
Remi Collet [Wed, 22 Oct 2014 13:37:04 +0000 (15:37 +0200)]
Fix bug #68283: fileinfo: out-of-bounds read in elf note headers

Upstream commit
https://github.com/file/file/commit/39c7ac1106be844a5296d3eb5971946cc09ffda0

CVE -2014-3710

(cherry picked from commit 1803228597e82218a8c105e67975bc50e6f5bf0d)

10 years agofix NEWS & version
Stanislav Malyshev [Wed, 22 Oct 2014 20:16:29 +0000 (13:16 -0700)]
fix NEWS & version

10 years agoNEWS
Remi Collet [Wed, 22 Oct 2014 13:39:49 +0000 (15:39 +0200)]
NEWS

10 years agoFix bug #68283: fileinfo: out-of-bounds read in elf note headers
Remi Collet [Wed, 22 Oct 2014 13:37:04 +0000 (15:37 +0200)]
Fix bug #68283: fileinfo: out-of-bounds read in elf note headers

Upstream commit
https://github.com/file/file/commit/39c7ac1106be844a5296d3eb5971946cc09ffda0

CVE -2014-3710

10 years agoinitialize lineno before calling compile file file in phar
Anatol Belski [Mon, 20 Oct 2014 13:53:32 +0000 (15:53 +0200)]
initialize lineno before calling compile file file in phar

10 years agoNews entry for new curl constants
Rasmus Lerdorf [Fri, 17 Oct 2014 04:36:53 +0000 (21:36 -0700)]
News entry for new curl constants

10 years agoTLS 1.0, 1.1 and 1.2 Curl constants - bug #68247
Rasmus Lerdorf [Fri, 17 Oct 2014 04:25:29 +0000 (21:25 -0700)]
TLS 1.0, 1.1 and 1.2 Curl constants - bug #68247

10 years agocleanup NEWS
Remi Collet [Wed, 15 Oct 2014 17:47:55 +0000 (19:47 +0200)]
cleanup NEWS

10 years agoNEWS
Remi Collet [Wed, 15 Oct 2014 17:16:45 +0000 (19:16 +0200)]
NEWS

10 years agoFixed Bug #65171 imagescale() fails
Remi Collet [Wed, 15 Oct 2014 17:13:25 +0000 (19:13 +0200)]
Fixed Bug #65171 imagescale() fails

Third param (height) is set as optional,
but default value = -1 is incorrect

Compute correct height to preserve ratio.

10 years agoRevert "Bug #41631: Observe socket read timeouts in SSL streams"
Julien Pauli [Wed, 15 Oct 2014 12:38:12 +0000 (14:38 +0200)]
Revert "Bug #41631: Observe socket read timeouts in SSL streams"

This reverts commit 6569db88081562f68a4f79e52cba83482bdf05fc.

Conflicts:
ext/openssl/xp_ssl.c

10 years agoFix return code (merges are hard :( )
Stanislav Malyshev [Tue, 14 Oct 2014 18:42:33 +0000 (11:42 -0700)]
Fix return code (merges are hard :( )

10 years agoFix bug #68113 (Heap corruption in exif_thumbnail())
Stanislav Malyshev [Sun, 28 Sep 2014 23:57:42 +0000 (16:57 -0700)]
Fix bug #68113 (Heap corruption in exif_thumbnail())

10 years agoFix bug #68089 - do not accept options with embedded \0
Stanislav Malyshev [Mon, 29 Sep 2014 00:53:49 +0000 (17:53 -0700)]
Fix bug #68089 - do not accept options with embedded \0

Conflicts:
ext/curl/interface.c

10 years agoFixed bug #68044: Integer overflow in unserialize() (32-bits only)
Stanislav Malyshev [Sun, 28 Sep 2014 21:19:31 +0000 (14:19 -0700)]
Fixed bug #68044: Integer overflow in unserialize() (32-bits only)

10 years agoFix bug #68027 - fix date parsing in XMLRPC lib
Stanislav Malyshev [Mon, 29 Sep 2014 00:33:44 +0000 (17:33 -0700)]
Fix bug #68027 - fix date parsing in XMLRPC lib

10 years agoFixed bug #68128
Tjerk Meesters [Mon, 6 Oct 2014 01:40:39 +0000 (09:40 +0800)]
Fixed bug #68128

Three issues are addressed:

- RecursiveRegexIterator::accept() should accept non-empty arrays without
  applying any regular expression and RegexIterator::accept() should not accept
  an array.
- RegexIterator::accept() should not accept an atom that fails to match
  anything, even when PREG_PATTERN_ORDER is used (which would return an array
  of empty arrays).
- RecursiveRegexIterator::getChildren() should pass all constructor arguments
  to its child iterator instead of just the regular expression.

10 years agoFix bug #68113 (Heap corruption in exif_thumbnail())
Stanislav Malyshev [Sun, 28 Sep 2014 23:57:42 +0000 (16:57 -0700)]
Fix bug #68113 (Heap corruption in exif_thumbnail())

10 years agoFix bug #68089 - do not accept options with embedded \0
Stanislav Malyshev [Mon, 29 Sep 2014 00:53:49 +0000 (17:53 -0700)]
Fix bug #68089 - do not accept options with embedded \0

Conflicts:
ext/curl/interface.c

10 years agoFixed bug #68044: Integer overflow in unserialize() (32-bits only)
Stanislav Malyshev [Sun, 28 Sep 2014 21:19:31 +0000 (14:19 -0700)]
Fixed bug #68044: Integer overflow in unserialize() (32-bits only)

10 years agoFix bug #68027 - fix date parsing in XMLRPC lib
Stanislav Malyshev [Mon, 29 Sep 2014 00:33:44 +0000 (17:33 -0700)]
Fix bug #68027 - fix date parsing in XMLRPC lib

10 years agoupdate NEWS
Ard Biesheuvel [Fri, 10 Oct 2014 09:44:39 +0000 (11:44 +0200)]
update NEWS

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Ard Biesheuvel [Fri, 10 Oct 2014 09:41:10 +0000 (11:41 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoupdate NEWS
Ard Biesheuvel [Fri, 10 Oct 2014 09:40:07 +0000 (11:40 +0200)]
update NEWS

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
10 years agoUpdated NEWS for #68129
Tjerk Meesters [Thu, 9 Oct 2014 00:23:42 +0000 (08:23 +0800)]
Updated NEWS for #68129

10 years agoFixed bug #68129
Tjerk Meesters [Sun, 5 Oct 2014 23:27:05 +0000 (07:27 +0800)]
Fixed bug #68129

Empty usernames and passwords are now treated differently from no username or password

For example, empty password:

    ftp://user:@example.org

Empty username:

    ftp://:password@example.org

Empty username and empty password

    ftp://:@example.org

10 years agoAdded info about ext/opcache
Dmitry Stogov [Wed, 8 Oct 2014 17:48:44 +0000 (21:48 +0400)]
Added info about ext/opcache

10 years agoAdd to NEWS
Keyur Govande [Tue, 7 Oct 2014 21:21:23 +0000 (21:21 +0000)]
Add to NEWS

10 years agoFix for bug #68087 (ODBC not reading DATE columns correctly)
Keyur Govande [Tue, 7 Oct 2014 21:17:36 +0000 (21:17 +0000)]
Fix for bug #68087 (ODBC not reading DATE columns correctly)

Temporary variable indicating column field type ID should be
reset to default for loop iteration (i.e. every column in the
record set. The old buggy code made it persist across all columns
leading to invalid reads from the buffer, if for example a DATE
column was preceded by a VARCHAR column.

10 years agoAdd to NEWS
Keyur Govande [Tue, 7 Oct 2014 21:07:19 +0000 (21:07 +0000)]
Add to NEWS

10 years agoFix for bug #68114 (Build fails on OS X due to undefined symbols)
Keyur Govande [Tue, 7 Oct 2014 20:58:43 +0000 (20:58 +0000)]
Fix for bug #68114 (Build fails on OS X due to undefined symbols)

gcc (i686-apple-darwin10-gcc-4.2.1) on OS X cannot link fixed-width
decimals and fails with undefined symbols errors like ___extendsddf.
If configure used gcc for compiling it would notice and mark the
feature HAVE_DECIMAL_FP_SUPPORT as unsupported.
But configure seems to use cc (i686-apple-darwin10-llvm-gcc-4.2)
instead, which doesn't support fixed-width decimals either, but the
code compiles and links just fine. I suspect it may have something
to do with the llvm backend printed in the version.
Lacking the time to debug this further, the patch fixes the issue by
checking the expected output when fixed-width decimal support is
present and correctly implemented.

10 years agoFix accidental edit in previous commit
Johannes Schlüter [Sat, 4 Oct 2014 18:06:02 +0000 (20:06 +0200)]
Fix accidental edit in previous commit

10 years agoFix arginfo
Johannes Schlüter [Sat, 4 Oct 2014 17:59:21 +0000 (19:59 +0200)]
Fix arginfo

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Derick Rethans [Sat, 4 Oct 2014 14:58:40 +0000 (15:58 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoDateTimeZone::getOffset() now accepts a DateTimeInterface
Florian MARGAINE [Mon, 22 Sep 2014 21:35:29 +0000 (23:35 +0200)]
DateTimeZone::getOffset() now accepts a DateTimeInterface

Fixes #68062

10 years agoMerge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5
George Wang [Fri, 3 Oct 2014 20:43:08 +0000 (16:43 -0400)]
Merge branch 'PHP-5.5' of git.php.net:php-src into PHP-5.5

10 years agoFixed a bug that causes crash when environment variable is access while parsing php.ini
George Wang [Fri, 3 Oct 2014 20:41:32 +0000 (16:41 -0400)]
Fixed a bug that causes crash when environment variable is access while parsing php.ini

10 years agoFixed a bug that causes crash when environment variable is access while parsing php.ini
George Wang [Fri, 3 Oct 2014 20:41:32 +0000 (16:41 -0400)]
Fixed a bug that causes crash when environment variable is access while parsing php.ini

10 years agoFix bug number
Nikita Popov [Fri, 3 Oct 2014 19:41:58 +0000 (21:41 +0200)]
Fix bug number

10 years agoFix bug #68188
Nikita Popov [Fri, 3 Oct 2014 19:24:28 +0000 (21:24 +0200)]
Fix bug #68188

10 years agoNEWS entry for previous commit
Ferenc Kovacs [Fri, 3 Oct 2014 09:38:32 +0000 (11:38 +0200)]
NEWS entry for previous commit

10 years agoadd IPv6 support to php-fpm
Robin Gloster [Fri, 3 Oct 2014 09:35:27 +0000 (11:35 +0200)]
add IPv6 support to php-fpm

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Sara Golemon [Fri, 3 Oct 2014 01:55:14 +0000 (18:55 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Add hash to EXTENSIONS file

10 years agoAdd hash to EXTENSIONS file
Sara Golemon [Fri, 3 Oct 2014 01:54:46 +0000 (18:54 -0700)]
Add hash to EXTENSIONS file

10 years agowe also have xz release tarballs since 5.5
Ferenc Kovacs [Thu, 2 Oct 2014 20:28:19 +0000 (22:28 +0200)]
we also have xz release tarballs since 5.5

10 years ago5.5.19 now
Julien Pauli [Wed, 1 Oct 2014 14:16:05 +0000 (16:16 +0200)]
5.5.19 now

10 years agouse $PHP_LIBDIR instread of "lib" in skel example
Remi Collet [Wed, 1 Oct 2014 07:26:21 +0000 (09:26 +0200)]
use $PHP_LIBDIR instread of "lib" in skel example

10 years agofix test filename
Anatol Belski [Mon, 29 Sep 2014 18:30:18 +0000 (20:30 +0200)]
fix test filename

10 years agoone more test to illustrate transfer of an arbitrary data amount throug pipes
Anatol Belski [Mon, 29 Sep 2014 18:18:33 +0000 (20:18 +0200)]
one more test to illustrate transfer of an arbitrary data amount throug pipes

10 years agofix tests on linux
Anatol Belski [Mon, 29 Sep 2014 16:12:25 +0000 (18:12 +0200)]
fix tests on linux

10 years agobetter test cleanup
Anatol Belski [Mon, 29 Sep 2014 16:11:06 +0000 (18:11 +0200)]
better test cleanup

and even force the XFAIL to fail as it would take too long anyway, even if it passes

10 years agoincrease the polling period to not to break existing behaviours
Anatol Belski [Mon, 29 Sep 2014 15:27:24 +0000 (17:27 +0200)]
increase the polling period to not to break existing behaviours

10 years agoFixed bug #51800 proc_open on Windows hangs forever
Anatol Belski [Mon, 29 Sep 2014 14:24:34 +0000 (16:24 +0200)]
Fixed bug #51800 proc_open on Windows hangs forever

This loop can block for some minutes, theoretically. Practially
however, this is a 99% non issue for a normal use case. This is
required because read() is synchronous. The PHP streams API wants
to fill its internal buffers, therefore it might try to read some
more data than user has demanded. Also, for a case where we want
to read X bytes, but neither enough data nor EOF arrives, read()
will block until it could fill the buffer. If a counterpart station
runs slowly or delivers not all the data at once, read() would
still be waiting. If we quit too early, we possibly could loose
some data from the pipe. Thus it has to emulate the read()
behaviour, but obviously not completely, just to some grade.

Reading big data amount is for sure an issue on any platforms, it
depends on the pipe buffer size, which is controlled by the system.
On Windows, the buffer size seems to be way too small, which causes
buffer congestion and a dead lock. It is essential to read the pipe
descriptors simultaneously and possibly in the same order as the
opposite writes them.

Thus, this will work with smaller buffer data sizes passed through
pipes. As MSDN states, anonymous pipes don't support asynchronous
operations. Neither anonymous pipes do support select() as they are
not SOCKETs but file descriptors. Consequently - bigger data sizes
will need a better solution based on threads. However it is much
more expencive. Maybe a better solution could be exporting a part
of the internal doing as a userspace function which could perform
some kind of lookahead operation on the pipe descriptor.

This is just the first stone, depending on the user feedback we
might go for further improvements in this area.

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Stanislav Malyshev [Sun, 28 Sep 2014 19:25:24 +0000 (12:25 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Set an LDAP error code when failing ldap_bind due to null bytes

10 years agoSet an LDAP error code when failing ldap_bind due to null bytes
Matthew Daley [Sun, 28 Sep 2014 04:49:35 +0000 (17:49 +1300)]
Set an LDAP error code when failing ldap_bind due to null bytes

Some applications check a LDAP link's error code after seeing ldap_bind
fail due to a null byte bind attempt and hence incorrectly receive the
last set error code.

Fix by setting an LDAP error code before returning in this case.

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Johannes Schlüter [Sat, 27 Sep 2014 00:17:52 +0000 (02:17 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoThis test should pass
Johannes Schlüter [Sat, 27 Sep 2014 00:17:26 +0000 (02:17 +0200)]
This test should pass

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Derick Rethans [Fri, 26 Sep 2014 15:27:00 +0000 (16:27 +0100)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years ago- Updated to version 2014.8 (2014h)
Derick Rethans [Fri, 26 Sep 2014 15:26:59 +0000 (16:26 +0100)]
- Updated to version 2014.8 (2014h)

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Stanislav Malyshev [Fri, 26 Sep 2014 08:00:20 +0000 (01:00 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  update NEWS
  Revert xp_ssl.c to the state of 5.4.32 due to regressions

Conflicts:
ext/openssl/xp_ssl.c

10 years agofix date
Stanislav Malyshev [Fri, 26 Sep 2014 07:56:39 +0000 (00:56 -0700)]
fix date

10 years agoupdate NEWS
Stanislav Malyshev [Fri, 26 Sep 2014 07:55:49 +0000 (00:55 -0700)]
update NEWS

10 years agoRevert xp_ssl.c to the state of 5.4.32 due to regressions
Stanislav Malyshev [Fri, 26 Sep 2014 07:44:24 +0000 (00:44 -0700)]
Revert xp_ssl.c to the state of 5.4.32 due to regressions

10 years agoNEWS
Remi Collet [Fri, 26 Sep 2014 07:06:12 +0000 (09:06 +0200)]
NEWS

10 years agoFixed bug #68103 Dupplicate entry in Reflection
Remi Collet [Fri, 26 Sep 2014 06:56:42 +0000 (08:56 +0200)]
Fixed bug #68103 Dupplicate entry in Reflection

$ php -r '$r=new ReflectionExtension("pthreads"); print_r($r->getClassNames());'
Array
(
    [0] => Threaded
    [1] => stackable
    [2] => Thread
    [3] => Worker
    [4] => Mutex
    [5] => Cond
    [6] => Collectable
    [7] => Pool
)

In getClasses() output, it is possible to compare key (ex "stackable")
with $obj->name (ex "Threaded") to detect class alias.

...
    [Threaded] => ReflectionClass Object
        (
            [name] => Threaded
        )
    [stackable] => ReflectionClass Object
        (
            [name] => Threaded
        )
...

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Ard Biesheuvel [Sat, 20 Sep 2014 23:40:02 +0000 (16:40 -0700)]
Merge branch 'PHP-5.4' into PHP-5.5

10 years agoFixed bug #66242 (don't assume char is signed)
Ard Biesheuvel [Sat, 20 Sep 2014 23:32:31 +0000 (16:32 -0700)]
Fixed bug #66242 (don't assume char is signed)

This fixes a bug in libmagic where a cast to 'char' is assumed to result
in sign extension to occur. However, unqualified 'char' is unsigned on
architectures such as ARM, so the cast needs to be to 'signed char'
explicitly.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
10 years agoFixed bug #67633
Nikita Popov [Sat, 20 Sep 2014 19:46:25 +0000 (21:46 +0200)]
Fixed bug #67633

10 years agofix possible array underflow
Anatol Belski [Fri, 19 Sep 2014 18:12:24 +0000 (20:12 +0200)]
fix possible array underflow

there are multiple issues with this code

- php_stream_read() returns an unsigned val, so is >= 0
- if it read less than sizeof(a) bytes, the function operates on garbage
- result->channels is an unsigned val, so >= 0

10 years agoMerge branch 'PHP-5.4' into PHP-5.5
Matteo Beccati [Tue, 16 Sep 2014 08:22:34 +0000 (10:22 +0200)]
Merge branch 'PHP-5.4' into PHP-5.5

* PHP-5.4:
  Fixed freetype test on multiple environments

10 years agoFixed freetype test on multiple environments
Matteo Beccati [Tue, 16 Sep 2014 08:17:25 +0000 (10:17 +0200)]
Fixed freetype test on multiple environments

Some environments, apparently regardless to the freetype version, output 155, while others 156. I guess we can accept both ;)

This reverts commit 592df890276604c790d02be26b1b3c3710b3b888.

10 years agoNEWS
Remi Collet [Mon, 15 Sep 2014 11:31:17 +0000 (13:31 +0200)]
NEWS

10 years agoFixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using...
Remi Collet [Mon, 15 Sep 2014 11:29:55 +0000 (13:29 +0200)]
Fixed bug #65641 PHP-FPM incorrectly defines the SCRIPT_NAME variable when using Apache

ProxyPass is unable to provide correct PATH_INFO
as it is not aware of file path (while SetHandler is).

As we can extract PATH_INFO from PATH_TRANSLATED,
we also need to check if present in SCRIPT_NAME
and remove it.

After applying this patch.
With mod_php
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foor/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

With mod_proxy_fcgi + SetHandler
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foo/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

With mod_proxy_fcgi + ProxyPass
_SERVER["REQUEST_URI"]     /info.php/foo/bar?q=1
_SERVER["SCRIPT_NAME"]     /info.php
_SERVER["PATH_INFO"]       /foo/bar
_SERVER["PHP_SELF"]        /info.php/foo/bar
_SERVER["QUERY_STRING"]    q=1

10 years agoupdated NEWS
Anatol Belski [Mon, 15 Sep 2014 08:27:52 +0000 (10:27 +0200)]
updated NEWS

10 years agoFix NEWS
Remi Collet [Mon, 15 Sep 2014 06:24:10 +0000 (08:24 +0200)]
Fix NEWS
- #65641 mod_proxy-fcgi is not fixed (still open)
- #67606 mod_fastcgi is fixed in ee275e34c8b303945945c650d4bc90dcc2ac0b17