#25744 [Csd->Opn]: --with-sybase option is failing with "php_sybase_db.c:147:`tsrm_ls' undeclared"

2003-10-03 Thread christian_m_caron at hotmail dot com
 ID:   25744
 User updated by:  christian_m_caron at hotmail dot com
 Reported By:  christian_m_caron at hotmail dot com
-Status:   Closed
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Solaris 8
 PHP Version:  4.3.3
 New Comment:

Downloaded latest CVS source (php4-STABLE-200310031530.tar.bz2)

Got:

/bin/sh /export/home/local/src/php/php4-STABLE-200310031530/libtool
--silent --p
reserve-dup-deps --mode=compile
/export/home/local/src/php/php4-STABLE-200310031
530/meta_ccld  -Iext/sybase/
-I/export/home/local/src/php/php4-STABLE-2003100315
30/ext/sybase/ -DPHP_ATOM_INC
-I/export/home/local/src/php/php4-STABLE-200310031
530/include -I/export/home/local/src/php/php4-STABLE-200310031530/main
-I/export
/home/local/src/php/php4-STABLE-200310031530 -I/iplanet/plugins/include
-I/expor
t/home/local/src/php/php4-STABLE-200310031530/Zend
-I/usr/local/mysql/include/my
sql -I/usr/oracle/rdbms/demo -I/usr/oracle/network/public
-I/usr/local/freetds/i
nclude
-I/export/home/local/src/php/php4-STABLE-200310031530/ext/xml/expat 
-D_P
OSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/export/home/lo
cal/src/php/php4-STABLE-200310031530/TSRM  -g -O2 -pthreads -DZTS 
-prefer-pic -
c
/export/home/local/src/php/php4-STABLE-200310031530/ext/sybase/php_sybase_db.c
 -o ext/sybase/php_sybase_db.lo
/export/home/local/src/php/php4-STABLE-200310031530/ext/sybase/php_sybase_db.c:
In function `php_sybase_get_column_content':
/export/home/local/src/php/php4-STABLE-200310031530/ext/sybase/php_sybase_db.c:7
51: `tsrm_ls' undeclared (first use in this function)
/export/home/local/src/php/php4-STABLE-200310031530/ext/sybase/php_sybase_db.c:7
51: (Each undeclared identifier is reported only once
/export/home/local/src/php/php4-STABLE-200310031530/ext/sybase/php_sybase_db.c:7
51: for each function it appears in.)
make: *** [ext/sybase/php_sybase_db.lo] Error 1

As I was writing this, a new snapshot has been released, so I did try
it (php4-STABLE-200310031730.tar.bz2):

/bin/sh /export/home/local/src/php/php4-STABLE-200310031730/libtool
--silent --p
reserve-dup-deps --mode=compile
/export/home/local/src/php/php4-STABLE-200310031
730/meta_ccld  -Iext/sybase/
-I/export/home/local/src/php/php4-STABLE-2003100317
30/ext/sybase/ -DPHP_ATOM_INC
-I/export/home/local/src/php/php4-STABLE-200310031
730/include -I/export/home/local/src/php/php4-STABLE-200310031730/main
-I/export
/home/local/src/php/php4-STABLE-200310031730 -I/iplanet/plugins/include
-I/expor
t/home/local/src/php/php4-STABLE-200310031730/Zend
-I/usr/local/mysql/include/my
sql -I/usr/oracle/rdbms/demo -I/usr/oracle/network/public
-I/usr/local/freetds/i
nclude
-I/export/home/local/src/php/php4-STABLE-200310031730/ext/xml/expat 
-D_P
OSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT
-I/export/home/lo
cal/src/php/php4-STABLE-200310031730/TSRM  -g -O2 -pthreads -DZTS 
-prefer-pic -
c
/export/home/local/src/php/php4-STABLE-200310031730/ext/sybase/php_sybase_db.c
 -o ext/sybase/php_sybase_db.lo
/export/home/local/src/php/php4-STABLE-200310031730/ext/sybase/php_sybase_db.c:
In function `php_sybase_get_column_content':
/export/home/local/src/php/php4-STABLE-200310031730/ext/sybase/php_sybase_db.c:7
51: `tsrm_ls' undeclared (first use in this function)
/export/home/local/src/php/php4-STABLE-200310031730/ext/sybase/php_sybase_db.c:7
51: (Each undeclared identifier is reported only once
/export/home/local/src/php/php4-STABLE-200310031730/ext/sybase/php_sybase_db.c:7
51: for each function it appears in.)
make: *** [ext/sybase/php_sybase_db.lo] Error 1


Previous Comments:


[2003-10-03 09:01:06] [EMAIL PROTECTED]

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.





[2003-10-03 08:50:17] christian_m_caron at hotmail dot com

Description:

It did work in 4.3.2 on another server (Solaris 2.6). We tried to
install 4.3.3 and it failed.

We had to add "void ***tsrm_ls;" at the beginning of
"php-4.3.3/ext/sybase/php_sybase_db.c" for the compile to work
properly.

Reproduce code:
---
CC=gcc ./configure 
--prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc 
--with-nsapi=/iplanet 
--enable-libgcc 
--enable-dbase 
--with-xml 
--with-sybase=/usr/local/freetds 
--with-oci8=/usr/oracle 
--with-oracle=/usr/oracle 
--with-mysql=/usr/local/mysql

make

Expected

#25744 [NEW]: --with-sybase option is failing with "php_sybase_db.c:147:`tsrm_ls' undeclared"

2003-10-03 Thread christian_m_caron at hotmail dot com
From: christian_m_caron at hotmail dot com
Operating system: Solaris 8
PHP version:  4.3.3
PHP Bug Type: Compile Failure
Bug description:  --with-sybase option is failing with "php_sybase_db.c:147:`tsrm_ls' 
undeclared"

Description:

It did work in 4.3.2 on another server (Solaris 2.6). We tried to install
4.3.3 and it failed.

We had to add "void ***tsrm_ls;" at the beginning of
"php-4.3.3/ext/sybase/php_sybase_db.c" for the compile to work properly.

Reproduce code:
---
CC=gcc ./configure 
--prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc 
--with-nsapi=/iplanet 
--enable-libgcc 
--enable-dbase 
--with-xml 
--with-sybase=/usr/local/freetds 
--with-oci8=/usr/oracle 
--with-oracle=/usr/oracle 
--with-mysql=/usr/local/mysql

make

Expected result:

Build complete.

Actual result:
--
/bin/sh /export/home/local/src/php/php-4.3.3/libtool --silent
--preserve-dup-dep
s --mode=compile /export/home/local/src/php/php-4.3.3/meta_ccld 
-Iext/sybase/ -
I/export/home/local/src/php/php-4.3.3/ext/sybase/ -DPHP_ATOM_INC
-I/export/home/
local/src/php/php-4.3.3/include
-I/export/home/local/src/php/php-4.3.3/main -I/e
xport/home/local/src/php/php-4.3.3 -I/iplanet/plugins/include
-I/export/home/loc
al/src/php/php-4.3.3/Zend -I/usr/local/mysql/include/mysql
-I/usr/oracle/rdbms/d
emo -I/usr/oracle/network/public -I/usr/local/freetds/include
-I/export/home/loc
al/src/php/php-4.3.3/ext/xml/expat  -D_POSIX_PTHREAD_SEMANTICS
-D_POSIX_PTHREAD_
SEMANTICS -D_REENTRANT -I/export/home/local/src/php/php-4.3.3/TSRM  -g -O2
-pthr
eads -DZTS  -prefer-pic -c
/export/home/local/src/php/php-4.3.3/ext/sybase/php_s
ybase_db.c -o ext/sybase/php_sybase_db.lo
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c: In
function `ph
p_sybase_error_handler':
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c:147:
`tsrm_ls' u
ndeclared (first use in this function)
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c:147: (Each
undec
lared identifier is reported only once
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c:147: for
each fu
nction it appears in.)
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c: In
function `ph
p_sybase_message_handler':
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c:158:
`tsrm_ls' u
ndeclared (first use in this function)
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c: In
function `ph
p_sybase_get_column_content':
/export/home/local/src/php/php-4.3.3/ext/sybase/php_sybase_db.c:749:
`tsrm_ls' u
ndeclared (first use in this function)
make: *** [ext/sybase/php_sybase_db.lo] Error 1

-- 
Edit bug report at http://bugs.php.net/?id=25744&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=25744&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=25744&r=trysnapshot5
Fixed in CVS:   http://bugs.php.net/fix.php?id=25744&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=25744&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25744&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=25744&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=25744&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=25744&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=25744&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=25744&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=25744&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25744&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=25744&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=25744&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=25744&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25744&r=float


#24234 [NEW]: a recursive function doesn't return an expected string

2003-06-17 Thread christian_m_caron at hotmail dot com
From: christian_m_caron at hotmail dot com
Operating system: FreeBSD 4.8
PHP version:  4.3.2
PHP Bug Type: Unknown/Other Function
Bug description:  a recursive function doesn't return an expected string

Description:

The recursive function looks in an array for a certain text. When it finds
it, it returns the text. The problem is that it never returns it (but if I
put a print statement instead of a return, it will print it).

Reproduce code:
---
$arr = array('0'=>array('0'=>'zero-zero','1'=>'zero-un'),
'1'=>array('0'=>'un-zero','1'=>'un-un'));

print search_array('zero-un', $arr);

function search_array ($page, $item) {
 if (is_array($item)) {
  foreach ($item as $k => $v) {
   if (is_array($v)) {
search_array($page, $v);
   }
   elseif ($v == $page) {
return $v;
   }
  }
 } else {
  return "Not an array!";
 }
}

Expected result:

zero-un

Actual result:
--
Nothing!

-- 
Edit bug report at http://bugs.php.net/?id=24234&edit=1
-- 
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24234&r=trysnapshot
Fixed in CVS:   http://bugs.php.net/fix.php?id=24234&r=fixedcvs
Fixed in release:   http://bugs.php.net/fix.php?id=24234&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24234&r=needtrace
Try newer version:  http://bugs.php.net/fix.php?id=24234&r=oldversion
Not developer issue:http://bugs.php.net/fix.php?id=24234&r=support
Expected behavior:  http://bugs.php.net/fix.php?id=24234&r=notwrong
Not enough info:http://bugs.php.net/fix.php?id=24234&r=notenoughinfo
Submitted twice:http://bugs.php.net/fix.php?id=24234&r=submittedtwice
register_globals:   http://bugs.php.net/fix.php?id=24234&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24234&r=php3
Daylight Savings:   http://bugs.php.net/fix.php?id=24234&r=dst
IIS Stability:  http://bugs.php.net/fix.php?id=24234&r=isapi
Install GNU Sed:http://bugs.php.net/fix.php?id=24234&r=gnused