php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #50827 retcode != CS_END_RESULTS in exec_cmd()
Submitted: 2010-01-23 03:22 UTC Modified: 2010-07-07 12:17 UTC
From: mul at rentapacs dot de Assigned: thekid (profile)
Status: Closed Package: Sybase-ct (ctlib) related
PHP Version: 5.2.12 OS: SLES11 x86_64
Private report: No CVE-ID: None
 [2010-01-23 03:22 UTC] mul at rentapacs dot de
Description:
------------
Hi there,

last working PHP version for me on SLES11 x86_64 (ASE-15.0.3 xe) is  php5.2-200807031030 (5.2.7-dev). Have tried 5.2.9 and now 5.2.12 but without success. Did some debugging and found out that retcode (-205) no longer equals CS_END_RESULTS (-205) in exec_cmd(). A type cast (int)retcode works as a fix in this location (l. 974), but then it bails out somewhere else.

There isn't much difference in sybase_ct beween these versions, so I suspect that the problem lies somewhere else.

Any hints are greatly appreciated!

TIA ... Michael


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-20 23:58 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: thekid
 [2010-06-28 15:39 UTC] thekid@php.net
This looks like int / CS_INT messup (probably 64 bit library, 32 bit header files). Did you compile all PPH versions yourself on the same systems with the same setup?
 [2010-06-30 14:37 UTC] mul at rentapacs dot de
Thanks for taking care of this!

Yes, all PHP versions were compiled on x86_64 from vanilla downloads. In the end I did patch ext/sybase_ct/config.m4 according to:

http://bugs.php.net/bug.php?id=45357

and rebuilt ./configure.

After adding:

+ CFLAGS="${CFLAGS} -g -DSYB_LP64"

to ext/sybase_ct/config.m4, PHP-5.2.12 finally compiled OK.

Please let me know, if I can be of any further help.
 [2010-07-07 09:23 UTC] thekid@php.net
I'll add this CFLAGS="${CFLAGS} -g -DSYB_LP64 to the "x64" decision branch, see here:

http://svn.php.net/viewvc/php/php-src/trunk/ext/sybase_ct/config.m4?revision=300853&view=markup

(around line 42)
 [2010-07-07 11:47 UTC] thekid@php.net
Automatic comment from SVN on behalf of thekid
Revision: http://svn.php.net/viewvc/?view=revision&revision=301035
Log: - Added -DSYB_LP64 to CFLAGS on 64 bit platforms
# See http://cpansearch.perl.org/src/MEWP/DBD-Sybase-1.08/Makefile.PL:
#
# "If we are building for a 64 bit platform that also supports 32 bit
# (i.e. Solaris 8, HP-UX11, etc) then we need to make some adjustments
# [...] Tru64/DEC OSF does NOT use the SYB_LP64 define as it is ALWAYS
# in 64 bit mode."
#
# Fixes bug #50827
 [2010-07-07 12:14 UTC] thekid@php.net
-Status: Assigned +Status: Closed
 [2010-07-07 12:17 UTC] thekid@php.net
...and merged to PHP_5_2 and PHP_5_3 branches.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 06:01:30 2024 UTC