# PHP testsuite failures in Linux/ppc64

- Thread: https://externals.io/message/41086
- Original archive: https://news-web.php.net/php.internals/41086
- Started by Thiago Jung Bauermann on 2008-10-15T18:36:22+00:00
- Messages: 3
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #41086 — Thiago Jung Bauermann — 2008-10-15T18:36:22+00:00

URL: https://externals.io/message/41086#41086

Hi,

I've been comparing testsuite results with PHP compiled in 32 bits vs
PHP compiled in 64 bits in Linux on powerpc.

I see some tests which fail in ppc64 but don't fail in ppc32. I'd like
to ask your opinion regarding their severity. By severity I mean how
likely it is that the failures will affect the average webapp.

I have my opinion (see below), but I have to admit I don't have much
experience with PHP, so I turn to this list for advice.

Here are the failures I'm referring to:

Zend/tests/int_overflow_64bit.phpt
- integer doesn't overflow:
  Should go to -9223372036854775808 (most negative 64-bit integer), but
  stays at 9223372036854775807 (most positive 64-bit integer)

ext/gmp/tests/021.phpt
- gmp_gcd (greatest common divisor) returns one of it's arguments when 
  the other is zero (only in one case). It should return 0.

ext/gmp/tests/026.phpt
- gmp_cmp is returning -1 when comparing a very big number to zero.
  Should return -2.

ext/pdo_sqlite/tests/bug_34630.phpt
- returns `NULL` for value associated with :blob

ext/pdo_sqlite/tests/bug_39398.phpt
- returns `NULL` for value associated with :boolean

ext/pdo_sqlite/tests/bug_39656.phpt
- not sure, apparently select query returns nothing?

ext/sqlite/tests/pdo/bug_34630.phpt
- returns weird string for value associated with :blob

ext/standard/tests/array/array_slice_variation6.phpt
- returns empty slice in one case

In my opinion, the gmp and sqlite failures are not important for the
case I have in mind (common webapp). GMP is (AFAIK) geared towards
scientific computing, and for sqlite, I believe a webapp would use a
server like MySQL or PostgreSQL instead.

This leaves me with the integer overflow failure and the array slice
failure, but they seem to be very specific, and wouldn't normaly bite
the PHP developer.

Do you agree?
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center

---

## #41256 — Antony Dovgal — 2008-10-18T18:24:16+00:00

URL: https://externals.io/message/41086#41256 · In reply to: #41086

> This leaves me with the integer overflow failure and the array slice
> failure, but they seem to be very specific, and wouldn't normaly bite
> the PHP developer.

Right. 
That said, we would still appreciate if you figure out the reasons 
of these test failures.

-- 
Wbr, 
Antony Dovgal

---

## #41983 — Thiago Jung Bauermann — 2008-11-17T22:02:59+00:00

URL: https://externals.io/message/41086#41983 · In reply to: #41256

El sáb, 18-10-2008 a las 22:24 +0400, Antony Dovgal escribió:
> 
> > […]
> 
> Right. 
> That said, we would still appreciate if you figure out the reasons 
> of these test failures.

Thank you very much for your opinion! I agree, will put this on my TODO
list.

(Sorry for the late response, BTW).
-- 
[]'s
Thiago Jung Bauermann
IBM Linux Technology Center
