|  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
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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-20 23:58 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: thekid
 [2010-06-28 15:39 UTC]
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:

and rebuilt ./configure.

After adding:


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]
I'll add this CFLAGS="${CFLAGS} -g -DSYB_LP64 to the "x64" decision branch, see here:

(around line 42)
 [2010-07-07 11:47 UTC]
Automatic comment from SVN on behalf of thekid
Log: - Added -DSYB_LP64 to CFLAGS on 64 bit platforms
# See
# "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]
-Status: Assigned +Status: Closed
 [2010-07-07 12:17 UTC]
...and merged to PHP_5_2 and PHP_5_3 branches.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 11:01:34 2024 UTC