#30070 [Fbk->Opn]: Segmentation fault in SPL::RecursiveDirectoryIterator

2004-09-13 Thread cb at designassembly dot de
 ID:   30070
 User updated by:  cb at designassembly dot de
 Reported By:  cb at designassembly dot de
-Status:   Feedback
+Status:   Open
 Bug Type: Class/Object related
 Operating System: Linux Gentoo
 PHP Version:  5.0.1
 Assigned To:  helly
 New Comment:

Thanks!
I tried latest snapshot and Segmentation fault is gone.


Previous Comments:


[2004-09-13 00:02:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip



[2004-09-12 23:53:01] cb at designassembly dot de

Description:

System:
Linux Kernel 2.6.8.1-mm3 #1 SMP i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
GenuineIntel GNU/Linux

Run this shown code, which crashes php in php_mod or client version


Php config:
 Configure Command =>  './configure' '--prefix=/usr'
'--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/us
r/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-cgi'
'--enable-cli' '--enable-embed' '--enable-debug'
'--with-config-file-path=/
etc/php/cli-php5' '--enable-bcmath' '--with-bz2' '--disable-calendar'
'--without-cpdflib' '--with-curl' '--without-curlwrappers'
'--disable-dbase'
'--disable-dio' '--enable-exif' '--without-fam' '--without-fbsql'
'--without-fdftk' '--disable-filepro' '--disable-ftp' '--with-gettext'
'--without
-gmp' '--without-hwapi' '--without-iconv' '--without-informix'
'--without-ingres' '--without-interbase' '--enable-mbstring'
'--with-mcrypt' '--with
out-mcve' '--disable-memory-limit' '--without-mhash'
'--without-mime-magic' '--without-ming' '--without-mnogosearch'
'--without-msql' '--without-ms
sql' '--with-ncurses' '--without-oci8' '--without-oracle'
'--with-openssl' '--with-openssl-dir=/usr' '--without-ovrimos'
'--disable-pcntl' '--witho
ut-pcre-regx' '--without-pfpro' '--without-pgsql' '--disable-posix'
'--with-pspell' '--without-recode' '--disable-shmop' '--without-snmp'
'--enable
-soap' '--disable-sockets' '--without-sybase' '--without-sybase-ct'
'--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm'
'--with-tidy' '--di
sable-tokenizer' '--disable-wddx' '--with-xsl' '--without-xmlrpc'
'--disable-yp' '--with-zlib' '--without-cdb' '--with-db4'
'--without-dbm' '--with
out-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm'
'--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-t1lib=/usr'
'--enable-gd
-jis-conf' '--enable-gd-native-ttf' '--with-png-dir=/usr'
'--with-tiff-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap'
'--with-imap-ssl' '-
-with-ldap' '--with-ldap-sasl' '--with-mysql'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mm'
'--without-msession' '--without-sqlite
' '--enable-dba' '--with-readline' '--without-libedit'


Reproduce code:
---


Expected result:

fnmatch should raise error: "object input not possible for second
argument" and php should exit, but this shouldn't cause a segfault. A
explicit string type cast for $file  works without a problem. 

Actual result:
--
backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x082a2f04 in zend_object_store_get_object ()
(gdb) bt
#0  0x082a2f04 in zend_object_store_get_object ()
#1  0x081b797d in zif_spl_RecursiveDirectoryIterator_hasChildren ()
#2  0x0861c0a4 in ?? ()
#3  0x085515a0 in ini_scanner_globals ()
#4  0x0010 in ?? ()
#5  0x08273488 in _emalloc ()
#6  0xbfffb9b8 in ?? ()






-- 
Edit this bug report at http://bugs.php.net/?id=30070&edit=1


#30070 [Opn->Csd]: Segmentation fault in SPL::RecursiveDirectoryIterator

2004-09-13 Thread derick
 ID:   30070
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cb at designassembly dot de
-Status:   Open
+Status:   Closed
 Bug Type: Class/Object related
 Operating System: Linux Gentoo
 PHP Version:  5.0.1
 Assigned To:  helly
 New Comment:

closing then


Previous Comments:


[2004-09-13 10:36:19] cb at designassembly dot de

Thanks!
I tried latest snapshot and Segmentation fault is gone.



[2004-09-13 00:02:25] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip



[2004-09-12 23:53:01] cb at designassembly dot de

Description:

System:
Linux Kernel 2.6.8.1-mm3 #1 SMP i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
GenuineIntel GNU/Linux

Run this shown code, which crashes php in php_mod or client version


Php config:
 Configure Command =>  './configure' '--prefix=/usr'
'--host=i686-pc-linux-gnu' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--datadir=/us
r/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-cgi'
'--enable-cli' '--enable-embed' '--enable-debug'
'--with-config-file-path=/
etc/php/cli-php5' '--enable-bcmath' '--with-bz2' '--disable-calendar'
'--without-cpdflib' '--with-curl' '--without-curlwrappers'
'--disable-dbase'
'--disable-dio' '--enable-exif' '--without-fam' '--without-fbsql'
'--without-fdftk' '--disable-filepro' '--disable-ftp' '--with-gettext'
'--without
-gmp' '--without-hwapi' '--without-iconv' '--without-informix'
'--without-ingres' '--without-interbase' '--enable-mbstring'
'--with-mcrypt' '--with
out-mcve' '--disable-memory-limit' '--without-mhash'
'--without-mime-magic' '--without-ming' '--without-mnogosearch'
'--without-msql' '--without-ms
sql' '--with-ncurses' '--without-oci8' '--without-oracle'
'--with-openssl' '--with-openssl-dir=/usr' '--without-ovrimos'
'--disable-pcntl' '--witho
ut-pcre-regx' '--without-pfpro' '--without-pgsql' '--disable-posix'
'--with-pspell' '--without-recode' '--disable-shmop' '--without-snmp'
'--enable
-soap' '--disable-sockets' '--without-sybase' '--without-sybase-ct'
'--disable-sysvmsg' '--disable-sysvsem' '--disable-sysvshm'
'--with-tidy' '--di
sable-tokenizer' '--disable-wddx' '--with-xsl' '--without-xmlrpc'
'--disable-yp' '--with-zlib' '--without-cdb' '--with-db4'
'--without-dbm' '--with
out-flatfile' '--with-gdbm' '--without-inifile' '--without-qdbm'
'--with-jpeg-dir=/usr' '--with-freetype-dir=/usr' '--with-t1lib=/usr'
'--enable-gd
-jis-conf' '--enable-gd-native-ttf' '--with-png-dir=/usr'
'--with-tiff-dir=/usr' '--without-xpm-dir' '--with-gd' '--with-imap'
'--with-imap-ssl' '-
-with-ldap' '--with-ldap-sasl' '--with-mysql'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--without-mm'
'--without-msession' '--without-sqlite
' '--enable-dba' '--with-readline' '--without-libedit'


Reproduce code:
---


Expected result:

fnmatch should raise error: "object input not possible for second
argument" and php should exit, but this shouldn't cause a segfault. A
explicit string type cast for $file  works without a problem. 

Actual result:
--
backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x082a2f04 in zend_object_store_get_object ()
(gdb) bt
#0  0x082a2f04 in zend_object_store_get_object ()
#1  0x081b797d in zif_spl_RecursiveDirectoryIterator_hasChildren ()
#2  0x0861c0a4 in ?? ()
#3  0x085515a0 in ini_scanner_globals ()
#4  0x0010 in ?? ()
#5  0x08273488 in _emalloc ()
#6  0xbfffb9b8 in ?? ()






-- 
Edit this bug report at http://bugs.php.net/?id=30070&edit=1


#27290 [Opn->Csd]: warning msg on missing function argument should mention file/line of caller too

2004-09-13 Thread stas
 ID:  27290
 Updated by:  [EMAIL PROTECTED]
 Reported By: [EMAIL PROTECTED]
-Status:  Open
+Status:  Closed
 Bug Type:Feature/Change Request
 PHP Version: 5CVS-2004-02-17 (dev)
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:


[2004-09-06 14:22:58] [EMAIL PROTECTED]

Small patch (against HEAD) for ZE2 to fix the problem:
http://tony2001.phpclub.net/dev/tmp/bug27290.diff




[2004-09-06 08:46:18] [EMAIL PROTECTED]

Derick, while this would be the general way to solve this
i still believe that the "Missing argument" message should
tell the caller position by default, else the message us 
not really helpfull at all. 

This case is similar to "headers already sent" IMHO
and deserves an error message that helps to solve
the problem *without* additional error handling tweaks



[2004-09-06 08:10:18] [EMAIL PROTECTED]

Override your error handling function with set_error_handler() and use
debug_print_backtrace(), or install Xdebug which automatically does the
printing of backtraces for you (http://xdebug.org)



[2004-09-03 19:09:47] sean at acidreign dot net

over the last few days, I've had to tack down dozens of errors, with
out knowing the file/line they actually occur in.
reporting the line of the function declaration rather then the line of
the offending expression is completely useless. It makes tracking bugs
extremely difficult, because it has to be done on a trial and error
basis, looking for and testing every place a function is called.



[2004-02-17 11:11:08] [EMAIL PROTECTED]

Description:

usually the location of the caller what you really want to know here,
especially if you are trying to track this down from not-so-recent
messages in your error_log ...

Reproduce code:
---


Expected result:

Warning: Missing argument 1 for foo() in foo.php on line 2, called in
foo.php on line 4

Actual result:
--
Warning: Missing argument 1 for foo() in - on line 2





-- 
Edit this bug report at http://bugs.php.net/?id=27290&edit=1


#29801 [Com]: Using readfile() to send large files causes PHP to hang

2004-09-13 Thread thomas at mbox371 dot swipnet dot se
 ID:   29801
 Comment by:   thomas at mbox371 dot swipnet dot se
 Reported By:  WPinegar at healthtech dot net
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Windows Server 2003
 PHP Version:  5.0.1
 New Comment:

the problem exists in php 4.3.8 as well.


Previous Comments:


[2004-08-24 20:14:31] thomas at mbox371 dot swipnet dot se

latest apache2, Windows 2000 server,  php 5.0.0/5.0.1/5.0.2-cvs.. same
problem with all these configurations. When streaming files > 5mb thru
php there is timeouts. Also, it seems not to work to stream these files
over a slower connections (0.5mbit) at all (stops after a few seconds)
when it works better on a 100mbit lan.



[2004-08-23 19:47:40] WPinegar at healthtech dot net

Description:

Attempting to use readfile() to send large (over 250MB) binary objects
causes PHP 5.0.1 to hang or the web server to send a 302 error. 
Reverting back to PHP 4.3.8 resolves the issue.

Using fopen() and fpassthru() only makes the issue worse.

We are using IIS 6 and the PHP ISAPI script engine.

Reproduce code:
---
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-Disposition: attachment;
filename=".basename($filename).";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize($filename));

readfile("$filename"); 
exit(); 


Expected result:

PHP 5 has an issue with sending large binary files.  This should be
resolved.






-- 
Edit this bug report at http://bugs.php.net/?id=29801&edit=1


#30072 [NEW]: Cannot run Microsoft Access program

2004-09-13 Thread canosin at hotmail dot com
From: canosin at hotmail dot com
Operating system: Windows 2000 Terminal Server
PHP version:  4.3.7
PHP Bug Type: IIS related
Bug description:  Cannot run Microsoft Access program

Description:

After having problems runing exec(), system() and shell_exec() commands i
resolved them, but now when i open a Access program (ej. recib2k.mdb) the
web server cannot close it and stay open like a process. Anyway the
recib2k.mdb that i open, doesnt do anything, only stay open. When i run
the web page (imprimir.php) it does well. I mean, i only want to create a
pdf file and i prepared an Access file which opens, prints a pdf file and
closes. Easy.

When I run it on the server (cmd.exe) runs well, but when trying to exec
it does nothing, only stay waiting.

What can i dooo?

 Sorry my english --

Reproduce code:
---


The program opens but it doesent do nothing.

Expected result:

Create well the pdf (it does wellfrom the server).

Actual result:
--
A new Internet Explorer window opens and stay waiting for the server but
the progress bar never ends!

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


#27601 [Bgs]: Make problem PHP4.3.4 Oracle 9.2 AIX 5.2

2004-09-13 Thread tony2001
 ID:   27601
 Updated by:   [EMAIL PROTECTED]
 Reported By:  francois dot collardot at seco dot admin dot ch
 Status:   Bogus
 Bug Type: Compile Failure
 Operating System: AIX 5.2
 PHP Version:  4.3.4
 New Comment:

Please, try latest snapshot of PHP5.1.x.
I commited related config.m4 yesterday and now it should determine
automagically what libs to use under 64-bit OS.


Previous Comments:


[2004-09-13 04:34:29] aaronwmorris at gmail dot com

Your problem is that Oracle 9.2 on AIX is 64bit.  Therefore, all the
libs in $ORACLE_HOME/lib/ are 64 bit.  The 32bit libs are in
$ORACLE_HOME/lib32/.  You need to change all instances of
$ORACLE_HOME/lib to $ORACLE_HOME/lib32 in the Makefile.



[2004-03-15 07:37:01] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

google, bugs.php.net search, etc. (not PHP bug)




[2004-03-15 05:33:56] francois dot collardot at seco dot admin dot ch

Description:

Hi

I have Problem with installation of PHP-4.3.4 with Oracle 9.2 client
Apache 1.3.29 on AIX 5.2 Server

./configure --with-oci8=$ORACLE_HOME
--with-apache=/usr/local/apache_1.3.29

work fine


but make doesnt work 


ld: 0711-317 ERROR: Undefined symbol: .OCIEnvInit
ld: 0711-317 ERROR: Undefined symbol: .OCIHandleAlloc
ld: 0711-317 ERROR: Undefined symbol: .OCIInitialize
ld: 0711-317 ERROR: Undefined symbol: .OCIHandleFree
ld: 0711-317 ERROR: Undefined symbol: .OCITransRollback
ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorFree
ld: 0711-317 ERROR: Undefined symbol: .OCIErrorGet
ld: 0711-317 ERROR: Undefined symbol: .OCIServerVersion
ld: 0711-317 ERROR: Undefined symbol: .OCIDescriptorAlloc
ld: 0711-317 ERROR: Undefined symbol: .OCIAttrSet
ld: 0711-317 ERROR: Undefined symbol: .OCIStmtPrepare
ld: 0711-317 ERROR: Undefined symbol: .OCIAttrGet
ld: 0711-317 ERROR: Undefined symbol: .OCIStmtExecute
ld: 0711-317 ERROR: Undefined symbol: .OCIParamGet
ld: 0711-317 ERROR: Undefined symbol: .OCIDefineByPos
ld: 0711-317 ERROR: Undefined symbol: .OCIStmtFetch
ld: 0711-317 ERROR: Undefined symbol: .OCIStmtSetPieceInfo
ld: 0711-317 ERROR: Undefined symbol: .OCILobFileOpen
ld: 0711-317 ERROR: Undefined symbol: .OCILobGetLength
ld: 0711-317 ERROR: Undefined symbol: .OCILobRead
ld: 0711-317 ERROR: Undefined symbol: .OCILobFileClose
ld: 0711-317 ERROR: Undefined symbol: .OCISessionBegin
ld: 0711-317 ERROR: Undefined symbol: .OCISessionEnd
ld: 0711-317 ERROR: Undefined symbol: .OCIServerAttach
ld: 0711-317 ERROR: Undefined symbol: .OCIServerDetach
ld: 0711-317 ERROR: Undefined symbol: .OCIBindByName
ld: 0711-317 ERROR: Undefined symbol: .OCIBindDynamic
ld: 0711-317 ERROR: Undefined symbol: .OCIBindObject
ld: 0711-317 ERROR: Undefined symbol: .OCILobWrite
ld: 0711-317 ERROR: Undefined symbol: .OCITransCommit
ld: 0711-317 ERROR: Undefined symbol: .OCIPasswordChange
ld: 0711-317 ERROR: Undefined symbol: .OCIObjectFree
ld: 0711-317 ERROR: Undefined symbol: .OCICollAppend
ld: 0711-317 ERROR: Undefined symbol: .OCIDateFromText
ld: 0711-317 ERROR: Undefined symbol: .OCIStringAssignText
ld: 0711-317 ERROR: Undefined symbol: .OCINumberFromReal
ld: 0711-317 ERROR: Undefined symbol: .OCICollGetElem
ld: 0711-317 ERROR: Undefined symbol: .OCIDateToText
ld: 0711-317 ERROR: Undefined symbol: .OCIStringPtr
ld: 0711-317 ERROR: Undefined symbol: .OCINumberToReal
ld: 0711-317 ERROR: Undefined symbol: .OCICollAssign
ld: 0711-317 ERROR: Undefined symbol: .OCICollAssignElem
ld: 0711-317 ERROR: Undefined symbol: .OCICollSize
ld: 0711-317 ERROR: Undefined symbol: .OCICollMax
ld: 0711-317 ERROR: Undefined symbol: .OCICollTrim
ld: 0711-317 ERROR: Undefined symbol: .OCITypeByName
ld: 0711-317 ERROR: Undefined symbol: .OCIDescribeAny
ld: 0711-317 ERROR: Undefined symbol: .OCITypeByRef
ld: 0711-317 ERROR: Undefined symbol: .OCIObjectNew
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status
make: 1254-004 The error code from the last command is 1.

thanks for any help

Francois






-- 
Edit this bug report at http://bugs.php.net/?id=27601&edit=1


#30073 [NEW]: Exception handling not work for selectable procedures

2004-09-13 Thread almad at dracidoupe dot cz
From: almad at dracidoupe dot cz
Operating system: Gentoo Linux
PHP version:  5.0.1
PHP Bug Type: InterBase related
Bug description:  Exception handling not work for selectable procedures

Description:

When calling executable procedure, php works good, that means that
ibase_query returns FALSE and IBase_Errmsg() contains code and text of
exception returned by stored procedure. 

However, when calling selectable procedure ("select a, b from
procedure_name"), ibase_query returns TRUE and exception is returned as
unhandlingable php warning when calling ibase_fetch_row/assoc/object. 

Reproduce code:
---
$s = ibase_query ("select var from procedure_name");
If(!$s){
echo "FireBird returned error: ".IBase_Errmsg();
}
Else{
while($d=ibase_fetch_row($s)){
echo $d[0];
}
}

Expected result:

FireBird returned error: Some exception returned by procedure_name

Actual result:
--
Warning: ibase_fetch_assoc() [function.ibase-fetch-assoc]: exception 1
Some exception returned by procedure_name in /var/.../script.php on line
xx

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


#30066 [Asn->Bgs]: PDF Extension Build Failure

2004-09-13 Thread rjs
 ID:   30066
 Updated by:   [EMAIL PROTECTED]
 Reported By:  psubrama at chn dot cognizant dot com
-Status:   Assigned
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Windows2000
 PHP Version:  4.3.8
 Assigned To:  rjs
 New Comment:

Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

This is the same problem as in Bug #29297

The pdf wrapper in PHP 4.3.x is not compatible with PDFlib 6. Please
try the PECL package for pdflib, this has the new wrappercode that
works with PDFlib 6 too and it can be used with PHP 4.3.x.


Previous Comments:


[2004-09-12 14:54:24] psubrama at chn dot cognizant dot com

Description:

While trying to compile php_pdf extension module, my build fails with
the following message :


I am using version 6.0.0p1 of PDFLite. I have not built jpeg library of
PDFLite, but don't see how that will help, b'cos that's a static
library(jpeg.lib) that is neither included(linked) by pdflib.lib or by
php_pdf.dll.
Do I need to modify workspace file of either project ?
Have another issue to mention...the php_pdf workspace tries to include
libtiff.lib and ligpng.lib though the libraries created by the PDF
builds are named tiff.lib and png.lib respectively. Am I looking at the
wrong libs ?

Expected result:

I was expecting to have a successful php_pdf.dll created

Actual result:
--
Linking...
LIBCMT.lib(dosmap.obj) : error LNK2005: __errno already defined in
MSVCRT.lib(MSVCRT.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: _exit already defined in
MSVCRT.lib(MSVCRT.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(dosmap.obj) : warning LNK4006: __errno already defined in
MSVCRT.lib(MSVCRT.dll); second definition ignored
   Creating library Release_TS/php_pdf.lib and object
Release_TS/php_pdf.exp
LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other
libs; use /NODEFAULTLIB:library
pdf.obj : error LNK2001: unresolved external symbol _PDF_open_fp
pdflib.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateDecompress
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateDecompress
pdflib.lib(tif_ojpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_std_error
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_std_error
pdflib.lib(tif_jpeg.obj) : error LNK2001: unresolved external symbol
_pdf_jpeg_CreateCompress
..\..\Release_TS/php_pdf.dll : fatal error LNK1120: 18 unresolved
externals
Error executing link.exe.






-- 
Edit this bug report at http://bugs.php.net/?id=30066&edit=1


#30051 [Fbk->Csd]: connecting to MySQL with wrong data cannot be checked with mysqli_connect()

2004-09-13 Thread Nico dot Laus dot 2001 at gmx dot de
 ID:   30051
 User updated by:  Nico dot Laus dot 2001 at gmx dot de
 Reported By:  Nico dot Laus dot 2001 at gmx dot de
-Status:   Feedback
+Status:   Closed
 Bug Type: MySQLi related
 Operating System: Linux 2.6.8.1
 PHP Version:  5.0.1
 New Comment:

ok, I checked with cvs and your example worked, but not my 
script 
-> then I discovered, that there could have been another 
successfull connect and this may be the reason for not 
reporting the failed connection (although I do not really 
understand how this can happen, because the connection 
check does take place directly after connecting) 
I rewrote my script and now it works - so I consider this 
"bug" as closed 
-> thanks for your help


Previous Comments:


[2004-09-11 14:23:50] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip

this script works fine for me: 
 
connect("localhost", "root", "", "test"); 
   if (!mysqli_connect_errno()) { 
  printf("%s\n", $mysqli->server_info); 
  $mysqli->close(); 
   } 
?> 
 
Output: 
Connect failed: Access denied for user 
'nonexistentuser'@'localhost' (using password: YES) 
5.0.2-alpha-debug-log 
 
 
 



[2004-09-10 16:13:14] Nico dot Laus dot 2001 at gmx dot de

Description:

given the example below from the mysqli documentation, I 
tried to connect to my MySQL server with wrong data to 
see, what happens, if the connection really fails. 
 
unfortunately the constructor does trigger a WARNING 
itself and does not return FALSE, as documented. The 
mysqli_connect_errno() does only return 0 and even the 
$mysqli->errno variable does not have any value. So I 
cannot find out, if the connect really has failed or not. 
 
I'm using MySQL 4.1.4 

Reproduce code:
---
$mysqli = new mysqli("localhost", "my_user", "my_password", "world");
 
 /* check connection */ 
 if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
 }

Expected result:

Connect failed:  

Actual result:
--
 





-- 
Edit this bug report at http://bugs.php.net/?id=30051&edit=1


#30074 [NEW]: apparent symbol table error with extract($blah, EXTR_REFS)

2004-09-13 Thread owen dot beresford at murphx dot com
From: owen dot beresford at murphx dot com
Operating system: linux
PHP version:  5.0.1
PHP Bug Type: Variables related
Bug description:  apparent symbol table error with extract($blah, EXTR_REFS)

Description:

PHP 5.0.1 (cli) (built: Aug 16 2004 23:07:06),
linux, rh7.3, kernel2.4, libc-2.2.5
The extract function seems incomplete/ broken.

I have a code base which uses arguments arrays, like perl.
Inorder to alter varaibles inside the parameter array in a convient
fashion, I extract the variables at the top of the methods.  

Some of the boundary cases don't perform correctly.   I have NOT
experienced this under other releases of php, so assume the problem is
induced by the new zend engine.

I am assuming that php 5.0.1 includes prevous fixes for errors reported
against php 4.3.8 and php 5.0.0 (there are closed cases with similar
problems). 

This is a small simple case, there are other failures, but this would
exceed the twenty line limit.  will post an URL with full senario
The described output ommited some of the english statements for brevity.
I have not tested this under other operating systems, but this is not a
platform dependant function (well it shouldn't be), and I don't have any
to hand.

in the interests of thoroughness:
Configure Command =>  './configure' '--prefix=/usr'
'--with-config-file-path=/etc' '--enable-cli' '--disable-cgi'
'--without-pear' '--enable-force-cgi-redirect' '--with-exec-dir=/usr/bin'
'--with-mysql' '--with-curl=/usr/local/lib' '--with-zlib'
'--enable-sockets' '--with-openssl' '--enable-pcntl' '--enable-libxml'
'--enable-shared'


Reproduce code:
---
function x($args) {
$count  =extract($args, EXTR_REFS);
echo("inside function x()\n$count items\n");
$count+=10;
echo("altered count to $count\n");
var_dump(array($a, $b));
}

echo("before function x() (second is a null)\n");
$a=array('a'=>1, 'b'=>NULL);
var_dump($a);
x($a);

echo("before function x() (second is undefined variable)\n");
$d=array('a'=>1, 'b'=>NULL);
$e=array('a'=>1, 'b'=>$d['d']);
var_dump($e);
x($e);


Expected result:

array(2) {
  ["a"]=>
  int(1)
  ["b"]=>
  NULL
}

array(2) {
  ["a"]=>
  int(1)
  ["b"]=>
  NULL
}


Actual result:
--
array(2) {
  [0]=>
  int(1)
  [1]=>
  NULL
}

array(2) {
  [0]=>
  int(1)
  [1]=>
  int(12)
}


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


#30075 [NEW]: Cannot redeclare function/class

2004-09-13 Thread kj at legalizer dot dk
From: kj at legalizer dot dk
Operating system: WinXP
PHP version:  5CVS-2004-09-13 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description:  Cannot redeclare function/class

Description:

After installing PHP 5.0.1 (and latest CVS) I get "Cannot redeclare
 (previously declared in )" errors at
random.

Then after a few seconds a window pops up with a dllhost.exe error. Saying
somthing like "Memory could not be read". And my IIS chrashes.

All this do not happen every time i load the page only sometimes.

This did not happen in PHP 5.0.0.

Im running PHP as ISAPI. 

Actual result:
--
Fatal error: Cannot redeclare db_connect() (previously declared in
D:\HTDocs\BEC\includes\database.inc.php:8) in
D:\HTDocs\BEC\includes\database.inc.php on line 10

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


#30075 [Opn]: Cannot redeclare function/class

2004-09-13 Thread kj at legalizer dot dk
 ID:   30075
 User updated by:  kj at legalizer dot dk
 Reported By:  kj at legalizer dot dk
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: WinXP
 PHP Version:  5CVS-2004-09-13 (dev)
 New Comment:

It looks like I dont get the error if I turn off ISAPI caching.


Previous Comments:


[2004-09-13 16:29:09] kj at legalizer dot dk

Description:

After installing PHP 5.0.1 (and latest CVS) I get "Cannot redeclare
 (previously declared in )" errors at
random.

Then after a few seconds a window pops up with a dllhost.exe error.
Saying somthing like "Memory could not be read". And my IIS chrashes.

All this do not happen every time i load the page only sometimes.

This did not happen in PHP 5.0.0.

Im running PHP as ISAPI. 

Actual result:
--
Fatal error: Cannot redeclare db_connect() (previously declared in
D:\HTDocs\BEC\includes\database.inc.php:8) in
D:\HTDocs\BEC\includes\database.inc.php on line 10





-- 
Edit this bug report at http://bugs.php.net/?id=30075&edit=1


#28934 [Com]: call_user_func_array() and Exceptions

2004-09-13 Thread phpbugs at d51 dot biz
 ID:   28934
 Comment by:   phpbugs at d51 dot biz
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: Linux
 PHP Version:  5.0.0RC3
 New Comment:

--- NOTE ---
This was added to bug #29617 as I didn't realize it had been marked a
duplicate.  I'm reposting it here in hopes that it gets picked up.
--- 

I've been running up against this blasted bug for some time in my test
scripts - can't test for Exceptions without hard coding it.  Anyhow, I
just peeked under the hood and think I've got it squashed.

file: ./ext/standand/basic_functions.c line 1984 - 1985 reads:

if (call_user_function_ex(EG(function_table), NULL, *func,
&retval_ptr,
count, func_params, 0, NULL TSRMLS_CC) == SUCCESS && retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);

The cause of the bug seems to be the "&& retval_ptr" as an exception
doesn't appear to return the same.  It works when you adjust it to work
like call_user_func() where it can succeed  even if retval_ptr doesn't
exist and/or is false.

Modified ./ext/standand/basic_functions.c line 1984 - 1985 replaced to
1984 - 1984:

if (call_user_function_ex(EG(function_table), NULL, *func,
&retval_ptr,
count, func_params, 0, NULL TSRMLS_CC) == SUCCESS ) {
if (retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);
}

I compiled it and ran the test that Benjamin posted on the 16th of
Augest.  I did get the correct output (11, 17, & 23).

The modified file is available from:
http://www.domain51productions.com/php/basic_functions.c

In the latest 5.0.X CVS, these lines have moved to 1991 - 1992.

Note: If there's another way to handle submitting a patch, just let me
know.

-Travis


Previous Comments:


[2004-08-18 21:34:14] phpbugs at d51 dot biz

I ran the following to see if the exception was being thrown.  It is
thrown and caught:

Reproduce code:
---
getMessage();
}

// Expected output: bar
?>

Actual result:
--
Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call foo() in /path/to/test.php on line 16
bar


Extended Info:
--
I also attempted catching an exception with call_user_func() - it
worked as expected producing only "bar".  I also produced an identical
outcome when I used a non-empty array as the second argument.

This is most definitely an issue with call_user_func_array().  The
following code produces a similar error:


Reproduce code:
---
getMessage();
}

// Expected Output: assert
?>

Actual results:
---
Warning: assert() [function.assert]: Assertion failed in
/path/to/test.php on line 7

Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call foo() in /path/to/test.php on line 20
assert


More Info:
--
Bug #29617 seems to be a duplicate of this report.



[2004-08-01 23:17:58] JustinHagstrom at yahoo dot com

This also happens when an exception is thrown in any callback
function.
It is present in the final release of PHP 5 and the snapshots from Aug
01, 2004.



[2004-06-27 23:21:47] [EMAIL PROTECTED]

Description:

When a function called by call_user_func_array() throws an exception,
an error appears: "Warning: call_user_func_array()
[function.call-user-func-array]: Unable to call babba() in
/data/webdev/classes/Tree/demo.php on line 19"

Reproduce code:
---


Expected result:

Nothing

Actual result:
--
Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call babba() in /data/webdev/classes/Tree/demo.php on line 43





-- 
Edit this bug report at http://bugs.php.net/?id=28934&edit=1


#28934 [Com]: call_user_func_array() and Exceptions

2004-09-13 Thread fch at hexanet dot fr
 ID:   28934
 Comment by:   fch at hexanet dot fr
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: Linux
 PHP Version:  5.0.0RC3
 New Comment:

Same problem with php 5.0.1.
Exception generated by call_user_func_array() was not catched, a
warning error was generated instead.


Previous Comments:


[2004-09-13 16:50:18] phpbugs at d51 dot biz

--- NOTE ---
This was added to bug #29617 as I didn't realize it had been marked a
duplicate.  I'm reposting it here in hopes that it gets picked up.
--- 

I've been running up against this blasted bug for some time in my test
scripts - can't test for Exceptions without hard coding it.  Anyhow, I
just peeked under the hood and think I've got it squashed.

file: ./ext/standand/basic_functions.c line 1984 - 1985 reads:

if (call_user_function_ex(EG(function_table), NULL, *func,
&retval_ptr,
count, func_params, 0, NULL TSRMLS_CC) == SUCCESS && retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);

The cause of the bug seems to be the "&& retval_ptr" as an exception
doesn't appear to return the same.  It works when you adjust it to work
like call_user_func() where it can succeed  even if retval_ptr doesn't
exist and/or is false.

Modified ./ext/standand/basic_functions.c line 1984 - 1985 replaced to
1984 - 1984:

if (call_user_function_ex(EG(function_table), NULL, *func,
&retval_ptr,
count, func_params, 0, NULL TSRMLS_CC) == SUCCESS ) {
if (retval_ptr) {
COPY_PZVAL_TO_ZVAL(*return_value, retval_ptr);
}

I compiled it and ran the test that Benjamin posted on the 16th of
Augest.  I did get the correct output (11, 17, & 23).

The modified file is available from:
http://www.domain51productions.com/php/basic_functions.c

In the latest 5.0.X CVS, these lines have moved to 1991 - 1992.

Note: If there's another way to handle submitting a patch, just let me
know.

-Travis



[2004-08-18 21:34:14] phpbugs at d51 dot biz

I ran the following to see if the exception was being thrown.  It is
thrown and caught:

Reproduce code:
---
getMessage();
}

// Expected output: bar
?>

Actual result:
--
Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call foo() in /path/to/test.php on line 16
bar


Extended Info:
--
I also attempted catching an exception with call_user_func() - it
worked as expected producing only "bar".  I also produced an identical
outcome when I used a non-empty array as the second argument.

This is most definitely an issue with call_user_func_array().  The
following code produces a similar error:


Reproduce code:
---
getMessage();
}

// Expected Output: assert
?>

Actual results:
---
Warning: assert() [function.assert]: Assertion failed in
/path/to/test.php on line 7

Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call foo() in /path/to/test.php on line 20
assert


More Info:
--
Bug #29617 seems to be a duplicate of this report.



[2004-08-01 23:17:58] JustinHagstrom at yahoo dot com

This also happens when an exception is thrown in any callback
function.
It is present in the final release of PHP 5 and the snapshots from Aug
01, 2004.



[2004-06-27 23:21:47] [EMAIL PROTECTED]

Description:

When a function called by call_user_func_array() throws an exception,
an error appears: "Warning: call_user_func_array()
[function.call-user-func-array]: Unable to call babba() in
/data/webdev/classes/Tree/demo.php on line 19"

Reproduce code:
---


Expected result:

Nothing

Actual result:
--
Warning: call_user_func_array() [function.call-user-func-array]: Unable
to call babba() in /data/webdev/classes/Tree/demo.php on line 43





-- 
Edit this bug report at http://bugs.php.net/?id=28934&edit=1


#29297 [Asn->Csd]: PDFLib 6 make error

2004-09-13 Thread rjs
 ID:   29297
 Updated by:   [EMAIL PROTECTED]
 Reported By:  v_santhanam at ettimadai dot amrita dot edu
-Status:   Assigned
+Status:   Closed
 Bug Type: Compile Failure
 Operating System: Redhat Enterprise Linux AS 3
 PHP Version:  4.3.8
 Assigned To:  rjs
 New Comment:

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.

Removed the extension in ext/pdf as it is available from PECL.


Previous Comments:


[2004-09-03 11:34:48] [EMAIL PROTECTED]

I think the changes in the PECL version which was a repo copy of
ext/pdflib should have the PHP 4 changes MFH so that php 4.3.9 compiles
cleanly with pdflib 6 support.



[2004-09-03 08:39:23] [EMAIL PROTECTED]

If it's not supported then configure should check for it. Assigning to
the maintainer.



[2004-07-22 16:53:56] [EMAIL PROTECTED]

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

The pdf wrapper in PHP 4.3.x is not compatible with PDFlib 6. Please
try the PECL package for pdflib, this has the new wrappercode that
works with PDFlib 6 too and it can be used with PHP 4.3.



[2004-07-21 13:51:14] v_santhanam at ettimadai dot amrita dot edu

Description:

Dear Friends,
 I am trying to compile php-4.3.8 with pdflib 6(latest version).
But i am not able to make with the following error :
--

ext/pdf/pdf.lo(.text+0x5fd): In function `zif_pdf_open':
/usr/local/src/php-4.3.8/ext/pdf/pdf.c:472: undefined reference to
`PDF_open_fp'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

--

My php configure command is :

---

./configure  --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr
--with-pdflib=/usr/local



Please kindly help me.
Thanks in advance
With Regards
Santhanam






-- 
Edit this bug report at http://bugs.php.net/?id=29297&edit=1


#30076 [NEW]: PHP fails to copy an array of objects when using assignment

2004-09-13 Thread daphp at mcbf dot net
From: daphp at mcbf dot net
Operating system: Linux Debian unstable 2.6.8.1
PHP version:  4CVS-2004-09-13 (stable)
PHP Bug Type: Arrays related
Bug description:  PHP fails to copy an array of objects when using assignment

Description:

When copying an array of objects using the assignment operator '=' in some
circumstances not a copy but a reference  is created.
I discovered this when I used a function that had a reference to an object
in the array passed modified the object and all over sudden the source of
the copy got modified as well.
However, it seems this is not the only way to trigger this behavior, as
you can see in the URL provided with the code. It also happens when you
use a member function of the object after it got copied.
Please contact me if you need any more information.

Reproduce code:
---
freq++;
}

/** init */
$urls[0][] = new urlfreq();
$urls[0][] = new urlfreq();

$urls[1][] = new urlfreq();
$urls[1][] = new urlfreq();

print("** Incorrect output, using upd() \n");
$std[0][0] = $urls[0][0];
upd($std[0][0]);
$std[0][1] = $urls[0][1];
upd($std[0][1]);

$std[1] = $std[0];
upd($std[1][0]);

print($std[0][0]->freq." < ".$std[1][0]->freq."\n");
unset($std);

print("** Correct output, using urlfreq::freq++ \n");
$std[0][0] = $urls[0][0];
$std[0][0]->freq++;
$std[0][1] = $urls[0][1];
$std[0][1]->freq++;

$std[1] = $std[0];
$std[1][0]->freq++;
print($std[0][0]->freq." < ".$std[1][0]->freq."\n");
// more examples can be found at
http://sun.mcbf.net/~squisher/phpbug.phps
?>


Expected result:

** Incorrect output, using upd() 
1 < 2
** Correct output, using urlfreq::freq++ 
1 < 2


Actual result:
--
** Incorrect output, using upd() 
2 < 2
** Correct output, using urlfreq::freq++ 
1 < 2


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


#30076 [Opn]: PHP fails to copy an array of objects when using the assignment operator

2004-09-13 Thread daphp at mcbf dot net
 ID:   30076
 User updated by:  daphp at mcbf dot net
-Summary:  PHP fails to copy an array of objects when using
   assignment
 Reported By:  daphp at mcbf dot net
 Status:   Open
 Bug Type: Arrays related
 Operating System: Linux Debian unstable 2.6.8.1
 PHP Version:  4CVS-2004-09-13 (stable)
 New Comment:

Fixed bad english in the summary.


Previous Comments:


[2004-09-13 17:58:44] daphp at mcbf dot net

Description:

When copying an array of objects using the assignment operator '=' in
some circumstances not a copy but a reference  is created.
I discovered this when I used a function that had a reference to an
object in the array passed modified the object and all over sudden the
source of the copy got modified as well.
However, it seems this is not the only way to trigger this behavior, as
you can see in the URL provided with the code. It also happens when you
use a member function of the object after it got copied.
Please contact me if you need any more information.

Reproduce code:
---
freq++;
}

/** init */
$urls[0][] = new urlfreq();
$urls[0][] = new urlfreq();

$urls[1][] = new urlfreq();
$urls[1][] = new urlfreq();

print("** Incorrect output, using upd() \n");
$std[0][0] = $urls[0][0];
upd($std[0][0]);
$std[0][1] = $urls[0][1];
upd($std[0][1]);

$std[1] = $std[0];
upd($std[1][0]);

print($std[0][0]->freq." < ".$std[1][0]->freq."\n");
unset($std);

print("** Correct output, using urlfreq::freq++ \n");
$std[0][0] = $urls[0][0];
$std[0][0]->freq++;
$std[0][1] = $urls[0][1];
$std[0][1]->freq++;

$std[1] = $std[0];
$std[1][0]->freq++;
print($std[0][0]->freq." < ".$std[1][0]->freq."\n");
// more examples can be found at
http://sun.mcbf.net/~squisher/phpbug.phps
?>


Expected result:

** Incorrect output, using upd() 
1 < 2
** Correct output, using urlfreq::freq++ 
1 < 2


Actual result:
--
** Incorrect output, using upd() 
2 < 2
** Correct output, using urlfreq::freq++ 
1 < 2






-- 
Edit this bug report at http://bugs.php.net/?id=30076&edit=1


#29860 [Com]: Cannot compile with mysql and mysqli extensions

2004-09-13 Thread nathansquires at pacbell dot net
 ID:   29860
 Comment by:   nathansquires at pacbell dot net
 Reported By:  rjanson at msn dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Redhat 9
 PHP Version:  5.0.1
 New Comment:

I had the same linking problem with php 5.0.1 and mysql 4.1.4a-gamma. I
was able to compile with mysql and mysqli by rebuilding mysql with
shared libraries (i.e. don't use --without-shared or
--*flags=--all-static). If you only have static mysql libraries, trying
to build php with mysql and mysqli will cause this error.


Previous Comments:


[2004-09-08 08:18:54] rjanson at msn dot com

I should have mentioned before that I have tried the configuration you
suggest as well. In between each failed 'make' I have done a 'make
clean' to be sure I am not using any leftover configuration options. No
matter what path I use for mysql and mysqli, if the configuration
passes, the make fails.

I've seen this issue mentioned in various places, but never a
resolution.



[2004-09-07 07:52:34] [EMAIL PROTECTED]

When using the mysqli extension together with the mysql extension
you have to use the same libraries and include files. mysqli
extension requires the location of mysql_config file, mysql
extension requires the path of your mysql installation.

If you installed MySQL 4.1 for example with prefix /usr/local/mysql-4.1
your configure settings should be
--with-mysql=/usr/local/mysql-4.1
--with-mysqli=/usr/local/mysql-4.1/bin/mysql_config





[2004-09-04 19:28:16] pbriggs at clinitech dot net

Same thing is happening to me using RedHat Enterprise 3.  Unless I can
get both mysql and mysqli to live with each other, I can't port my apps
over to mysqli.



[2004-08-27 08:08:46] rjanson at msn dot com

Description:

I cannot compile php 5.0.1 (nor 5.0.0) with mysql and mysqli
extensions. I can compile with either/or. At this point I need both. I
am using mysql 4.1.3

Configure runs with no issues.

Reproduce code:
---
My configure options: 
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com
--enable-inline-optimization --with-exec-dir=/usr/bin --with-layout=GNU
--enable-magic-quotes --with-pear=/usr/share/pear
--with-mysql=/usr/bin/mysql_config --with-mysqli=/usr/bin/mysqli_config
--enable-versioning --with-apxs2=/usr/sbin/apxs --enable-sockets
--with-zlib-dir=/usr/local --with-gd --with-ldap --without-sqlite

Expected result:

I expect PHP to compile with no errors, and to support both Mysql and
Mysqli extensions.

Actual result:
--
I get several lines similar to the following:

: multiple definition of `net_realloc'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x100): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): In function
`net_clear':
: multiple definition of `net_clear'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): In function
`net_flush':
: multiple definition of `net_flush'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): In function
`net_real_write':
: multiple definition of `net_real_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): In function
`my_net_write':
: multiple definition of `my_net_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): In function
`net_write_command':
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): In function
`my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): first defined
here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1





-- 
Edit this bug report at http://bugs.php.net/?id=29860&edit=1


#29453 [NoF->Opn]: IMAP support breaks .so

2004-09-13 Thread [EMAIL PROTECTED]
 ID:   29453
 User updated by:  [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   No Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Gentoo Linux  x86_64 (Opteron)
 PHP Version:  5.0.0
 New Comment:

libtool-1.5.2-r5
automake-1.8.5-r1
autoconf-2.59-r4

FYI:
I haven't had problems with other software yet and as it's a gentoo
system nearly everything get's compiled from scratch.

My portage tree doesn't even offer autoconf-2.13 anymore btw.
I am on amd64 and so not that free in choosing older software
versions.

Meanwhile I compiled the IMAP support as Dynamic Extension and it works
now.

My config.nice for ext/imap looks like this:

CC='gcc' \
CXX='g++' \
'./configure' \
'--with-imap=/usr/lib/' \
'--with-imap-ssl' \
"$@"


BUT:
If I only do a ./configure I get:
checking whether SSL libraries are needed for c-client... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

The config.log now show:
configure:4529: checking whether build with IMAP works
configure:4572: gcc -o conftest -g -O2   conftest.c  -lc-client -lcrypt
-lpam   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../libc-client.a(osdep.o)(.text+0x8b69):
In function `ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
about 30 lines undefined references-

So without knowing much about linking I can only guess what's happening
here...

greetings

Daniel Khan


Previous Comments:


[2004-09-12 01:00:10] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2004-09-04 18:32:42] [EMAIL PROTECTED]

What version of libtool do you use?
--
The following combinations are known to work:
autoconf 2.13, automake 1.4 and libtool 1.4.3
autoconf 2.13, automake 1.5 and libtool 1.4.3
--
(c) http://www.php.net/anoncvs.php




[2004-07-30 01:52:15] [EMAIL PROTECTED]

Description:

Hello,

I know that this has been an issue some times bevore and I really
looked into each and every bugreport which mentions it.
I am not able to compile php-5.0.0 with imap support on my Gentoo
boxes.

If I don't add imap support it works without problems.

It doesn't make a difference if I add ssl support or not.

So if you know emerge:

USE='ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

USE='-ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

Both fail.

I even tried different versions of libtool.

Maybe someone can help me out.

Thank you.


-- 
Daniel Khan


Reproduce code:
---
./configure  --prefix=/usr --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-apxs2=/usr/sbin/apxs2
--with-config-file-path=/etc/php/apache2-php5 --without-pear
--disable-bcmath --with-bz2 --disable-calendar --without-cpdflib
--disable-ctype --with-curl --without-curlwrappers --disable-dbase
--disable-dio --enable-exif --without-fam --without-fbsql
--without-fdftk --disable-filepro --enable-ftp --with-gettext
--without-gmp --without-hwapi --without-iconv --without-informix
--without-ingres --without-interbase --enable-mbstring --with-mcrypt
--without-mcve --disable-memory-limit --without-mhash
--without-mime-magic --with-ming --without-mnogosearch --without-msql
--without-mssql --with-ncurses --without-oci8 --without-oracle
--with-openssl --without-ovrimos --enable-pcntl --without-pfpro
--without-pgsql --with-pspell --without-recode --disable-shmop
--without-snmp --enable-soap --enable-sockets --disable-spl
--without-sybase --without-sybase-ct --enable-sysvmsg --enable-sysvsem
--enable-sysvshm --with-tidy --enable-wddx --with-xsl --without-xmlrpc
--disable-yp --with-zlib --without-cdb --with-db4 --without-dbm
--without-flatfile --with-gdbm --without-inifile --without-qdbm
--enable-dbx --with-freetype-dir --with-t1lib --enable-gd-jis-conf
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr
--with-tiff-dir=/usr --without-xpm-dir --with-gd --with-imap
--with-imap-ssl --with-ldap --with-ldap-sasl --with-unixODBC
--without-adabas --without-birdstep --without-dbmaker --without-empress
--without-esoob --with-ibm-db2 --without-iodbc --without-sapdb
--without-solid --with-mysql --without-mm --without-msession
--enable-sqlite-utf8 --enable-dba --with-readline --without-libedit


Expected result:

A libphp5.so.

Actual result:
--
*** Warning: linker path does not have real file for library
-lc-client.

#30072 [Opn->Bgs]: Cannot run Microsoft Access program

2004-09-13 Thread derick
 ID:   30072
 Updated by:   [EMAIL PROTECTED]
 Reported By:  canosin at hotmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: IIS related
 Operating System: Windows 2000 Terminal Server
 PHP Version:  4.3.7
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:


[2004-09-13 13:48:00] canosin at hotmail dot com

Description:

After having problems runing exec(), system() and shell_exec() commands
i resolved them, but now when i open a Access program (ej. recib2k.mdb)
the web server cannot close it and stay open like a process. Anyway the
recib2k.mdb that i open, doesnt do anything, only stay open. When i run
the web page (imprimir.php) it does well. I mean, i only want to create
a pdf file and i prepared an Access file which opens, prints a pdf file
and closes. Easy.

When I run it on the server (cmd.exe) runs well, but when trying to
exec it does nothing, only stay waiting.

What can i dooo?

 Sorry my english --

Reproduce code:
---


The program opens but it doesent do nothing.

Expected result:

Create well the pdf (it does wellfrom the server).

Actual result:
--
A new Internet Explorer window opens and stay waiting for the server
but the progress bar never ends!





-- 
Edit this bug report at http://bugs.php.net/?id=30072&edit=1


#29860 [Opn]: Cannot compile with mysql and mysqli extensions

2004-09-13 Thread rjanson at msn dot com
 ID:   29860
 User updated by:  rjanson at msn dot com
 Reported By:  rjanson at msn dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Redhat 9
 PHP Version:  5.0.1
 New Comment:

I installed mysql via the RPMs provided on the MySQL site.

I unsinstalled the MySQL-shared-compat-4.1.4-0 rpm and tried building
agin with the same result.

These are the RPMs I have installed currently:

MySQL-devel-4.1.4-0
MySQL-client-4.1.4-0
MySQL-Max-4.1.4-0
MySQL-bench-4.1.3-1
MySQL-server-4.1.4-0
MySQL-shared-4.1.4-0

Is it possible something with the RPMs is causing the failure?


Previous Comments:


[2004-09-13 19:38:30] nathansquires at pacbell dot net

I had the same linking problem with php 5.0.1 and mysql 4.1.4a-gamma. I
was able to compile with mysql and mysqli by rebuilding mysql with
shared libraries (i.e. don't use --without-shared or
--*flags=--all-static). If you only have static mysql libraries, trying
to build php with mysql and mysqli will cause this error.



[2004-09-08 08:18:54] rjanson at msn dot com

I should have mentioned before that I have tried the configuration you
suggest as well. In between each failed 'make' I have done a 'make
clean' to be sure I am not using any leftover configuration options. No
matter what path I use for mysql and mysqli, if the configuration
passes, the make fails.

I've seen this issue mentioned in various places, but never a
resolution.



[2004-09-07 07:52:34] [EMAIL PROTECTED]

When using the mysqli extension together with the mysql extension
you have to use the same libraries and include files. mysqli
extension requires the location of mysql_config file, mysql
extension requires the path of your mysql installation.

If you installed MySQL 4.1 for example with prefix /usr/local/mysql-4.1
your configure settings should be
--with-mysql=/usr/local/mysql-4.1
--with-mysqli=/usr/local/mysql-4.1/bin/mysql_config





[2004-09-04 19:28:16] pbriggs at clinitech dot net

Same thing is happening to me using RedHat Enterprise 3.  Unless I can
get both mysql and mysqli to live with each other, I can't port my apps
over to mysqli.



[2004-08-27 08:08:46] rjanson at msn dot com

Description:

I cannot compile php 5.0.1 (nor 5.0.0) with mysql and mysqli
extensions. I can compile with either/or. At this point I need both. I
am using mysql 4.1.3

Configure runs with no issues.

Reproduce code:
---
My configure options: 
./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com
--enable-inline-optimization --with-exec-dir=/usr/bin --with-layout=GNU
--enable-magic-quotes --with-pear=/usr/share/pear
--with-mysql=/usr/bin/mysql_config --with-mysqli=/usr/bin/mysqli_config
--enable-versioning --with-apxs2=/usr/sbin/apxs --enable-sockets
--with-zlib-dir=/usr/local --with-gd --with-ldap --without-sqlite

Expected result:

I expect PHP to compile with no errors, and to support both Mysql and
Mysqli extensions.

Actual result:
--
I get several lines similar to the following:

: multiple definition of `net_realloc'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x100): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): In function
`net_clear':
: multiple definition of `net_clear'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x180): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): In function
`net_flush':
: multiple definition of `net_flush'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x1f0): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): In function
`net_real_write':
: multiple definition of `net_real_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x580): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): In function
`my_net_write':
: multiple definition of `my_net_write'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x240): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): In function
`net_write_command':
: multiple definition of `net_write_command'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x320): first defined
here
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): In function
`my_net_read':
: multiple definition of `my_net_read'
/usr/lib/mysql/libmysqlclient.a(net.o)(.text+0x9c0): first defined
here
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1



#29342 [Com]: strtotime(null) does not return -1

2004-09-13 Thread jonathant at digbang dot com
 ID:   29342
 Comment by:   jonathant at digbang dot com
 Reported By:  php dot net at gurugeek dot com
 Status:   Closed
 Bug Type: Date/time related
 Operating System: RHEL 3.0
 PHP Version:  5.0.0
 New Comment:

error report:
Now (php 5.0.1) when you send null as a parameter to strtotime() it
returns an error instead of -1


Previous Comments:


[2004-08-24 21:22:15] kevin at brucecreative dot com

Is there a bug with strtotime in 5.0.1? strtotime("+11 
minutes") doesn't work, when it worked fine in 4.x



[2004-07-28 03:45:02] [EMAIL PROTECTED]

This bug has been fixed in CVS.

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/.
 
Thank you for the report, and for helping us make PHP better.





[2004-07-22 23:09:57] php dot net at gurugeek dot com

Description:

Executing strtotime(null) returns midnight of the current day. The same
happens with strtotime(false).

[EMAIL PROTECTED] libexec]$ php -r 'echo strtotime(null) . "\n";'
1090479600
[EMAIL PROTECTED] libexec]$ php -r 'echo date("r", strtotime(null)) .
"\n";'
Thu, 22 Jul 2004 00:00:00 -0700


Reproduce code:
---
echo strtotime(null);
echo strtotime("");

Expected result:

-1

Actual result:
--
Midnight of the current day:
Thu, 22 Jul 2004 00:00:00 -0700






-- 
Edit this bug report at http://bugs.php.net/?id=29342&edit=1


#30078 [NEW]: Configure failure with Oracle Instant Client 10 RPM

2004-09-13 Thread george dot lagos at alcatel dot com
From: george dot lagos at alcatel dot com
Operating system: Linux 2.4 (RH8)
PHP version:  4CVS-2004-09-13 (stable)
PHP Bug Type: OCI8 related
Bug description:  Configure failure with Oracle Instant Client 10 RPM

Description:

I tried to compile PHP 4.3.8 CVS php4-STABLE-200409132030 with the Oracle
Instant Client 10 libraries. I keep getting the same error - cannot find
-lclntsch . 

I am using the 10i Instant Client rpm. 

I have entered full path in ld.so.conf as well as exported $ORACLE_HOME
and $LD_LIBRARY_PATH. 
I even tried linking the to the Oracle version 8 library filenames.

Here is debug.log
CONFIGURE:   './configure' '--with-oci8=/usr/lib/oracle/10.1.0.2/client'
'--with-apxs=/usr/local/apache/bin/apxs'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:-I$(top_builddir)/Zend
LDFLAGS: -Wl,-rpath,/usr/lib/oracle/10.1.0.2/client/lib
-L/usr/lib/oracle/10.1.0.2/client/lib
LIBS:   -lresolv -lm -ldl -lnsl  -lclntsh
DLIBS:
SAPI:   apache
PHP_RPATHS:  /usr/lib/oracle/10.1.0.2/client/lib
uname -a:   Linux mcw-003 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586
i586 i386 GNU/Linux

gcc -o conftest -g -O2   -Wl,-rpath,/usr/lib/oracle/10.1.0.2/client/lib
-L/usr/lib/oracle/10.1.0.2/client/lib conftest.c -lresolv -lm -ldl -lnsl 
-
lclntsh 1>&5
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status

I am starting to think that the RPM is missing files. Is that possible?


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


#29816 [Fbk->NoF]: use shmop_open 3 times make apache2 error

2004-09-13 Thread php-bugs
 ID:   29816
 Updated by:   [EMAIL PROTECTED]
 Reported By:  cedric_cefc2002 at yahoo dot com dot tw
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: win2000
 PHP Version:  5.0.1
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2004-08-24 16:06:00] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.

And please, don't forget to provide the text of your "error".



[2004-08-24 16:01:07] cedric_cefc2002 at yahoo dot com dot tw

Description:

".$d."";
 $a['time']=filectime($name);
 $a['key']=$c;
 $cache[$name]=$a;
 print_r($cache);

 //echo $cache[$name]['time'];
 //echo filectime($name);
 //$cache
 $d=serialize($cache);
 // echo "".$d."";
 $i=strlen($d);
 $shm_id = shmop_open(0xff3,"c",0644,$i);
 $shm_bytes_written = shmop_write($shm_id, $d,0); 
 shmop_close($shm_id);
 
 clearstatcache();
?>






-- 
Edit this bug report at http://bugs.php.net/?id=29816&edit=1


#27266 [Fbk->NoF]: modifying php.ini crashes apache 1.3.29

2004-09-13 Thread php-bugs
 ID:   27266
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jimmybrock at yahoo dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: windows 2000
 PHP Version:  5.0.0b4 (beta4)
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2004-09-06 20:27:03] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip





[2004-09-06 20:26:40] [EMAIL PROTECTED]

Not reproduceable for me



[2004-03-30 21:16:09] ammarali at yahoo dot com

Howdy,

I got this several times with version php-5.0.0RC1-Win32. I didn't
compile my own as it's a testing environment. Anyway, the apache I'm
running is 1.3.27.

I noticed a crash that sounds a lot like Jimmy describes. However, I
saw it with other variables too. For example, when I appended a new
path at the end of PEAR's path, it crashed every time.

Works:
;* Added by go-pear
include_path=".;C:\PHP\pear"
;*

Crashes:
;* Added by go-pear
include_path=".;C:\PHP\pear;C:\www"
;*

Hope it helps, and is actually relevant.



[2004-02-15 16:03:06] [EMAIL PROTECTED]

This most likely happens with PHP 4 too. (didn't test)




[2004-02-15 16:02:31] [EMAIL PROTECTED]

Assigned to Marcus per his request.




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/27266

-- 
Edit this bug report at http://bugs.php.net/?id=27266&edit=1


#29997 [Fbk->NoF]: Apache segfaults in php_imap when IMP attempts to log in

2004-09-13 Thread php-bugs
 ID:   29997
 Updated by:   [EMAIL PROTECTED]
 Reported By:  warwick at thusa dot co dot za
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Reproducible crash
 Operating System: Slackware 10.0
 PHP Version:  4.3.8
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2004-09-06 15:21:46] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with ,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.





[2004-09-06 13:54:19] warwick at thusa dot co dot za

I have just tested with Apache 1.3.31, and PHP 4.3.8, UW IMAP 2004a
(nossl) and still no luck.  Still the following in
/var/log/apache/error_log:

[Mon Sep  6 13:49:05 2004] [notice] child pid 19257 exit signal
Segmentation fault (11)
[Mon Sep  6 13:49:05 2004] [notice] child pid 19252 exit signal
Segmentation fault (11)
[Mon Sep  6 13:49:06 2004] [notice] child pid 19254 exit signal
Segmentation fault (11)



[2004-09-06 11:58:08] warwick at thusa dot co dot za

Description:

We use IMAP Authenticated Horde via IMP, therefore we need to recompile
the stock Slackware PHP and include imap, ldap, gd and other support.

PHP configure string follows:
'./configure' '--prefix=/usr' '--with-apxs2=/usr/sbin/apxs'
'--enable-discard-path' '--with-config-file-path=/etc/apache2'
'--with-openssl' '--enable-bcmath' '--with-bz2' '--with-gettext'
'--enable-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm'
'--with-mcrypt' '--with-imap=/usr/src/imap-2002d' '--with-mhash'
'--enable-dbase' '--enable-ftp' '--with-gd' '--with-jpeg' '--with-png'
'--with-gmp' '--with-mysql' '--with-pgsql' '--with-xml' '--with-mm'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--enable-shared' '--enable-debug' '--with-zlib' '--with-dom'
'--with-dom-xslt' '--with-pgsql' '--with-mcal=/usr'

Apache version is 2.0.50, configured prefork:
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D HTTPD_ROOT="/usr"
 -D SUEXEC_BIN="/usr/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
 -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf"

PEAR state (pear list):
Installed packages:
===
PackageVersion State
Archive_Tar1.1 stable
Console_Getopt 1.2 stable
DB 1.6.2   stable
HTTP   1.2.2   stable
Log1.8.5   stable
Mail   1.1.3   stable
Net_SMTP   1.2.3   stable
Net_Socket 1.0.1   stable
PEAR   1.3.2   stable
XML_Parser 1.0.1   stable
XML_RPC1.1.0   stable


php.ini diff from php.ini-dist:
[EMAIL PROTECTED]:/etc/apache2# diff php.ini php.ini-dist
411c411
< include_path = ".:/usr/lib/php"
---
> ;include_path = ".:/php/includes"
428c428,429
< extension_dir = "./usr/lib/php"
---
> ; extension_dir = "./"
> extension_dir = "/usr/lib/php/extensions/"
532a534,536
> ;
> ; Load the MySQL extension by default.  Comment this out if you don't
use MySQL.
> extension=mysql.so
533a538,540
> ; Load the gettext extension by default.  Comment this out if you
don't have the
> ; gettext shared library installed.
> extension=gettext.so


System Information:

Linux gateway 2.4.26
Courier imapd 3.0.7
OpenLDAP 2.1.29
GCC 3.3.4 i486-slackware-linux

Reproduce code:
---
IMP Login (http://www.horde.org/imp) - IMP is configured to
authenticate against IMAP (courier).

e.g. IMP causes this problem in imp/mailbox.php:

$overview = imap_fetch_overview($imp['stream'], implode(',', $msgs),
FT_UID);

Expected result:

Expect successful login, but apache child process segfaults and the
three lines like the following show in /var/log/apache/error_log:

[Mon Sep 06 11:49:43 2004] [notice] child pid 19707 exit signal
Segmentation fault (11)
[Mon Sep 06 11:49:44 2004] [notice] child pid 19709 exit signal
Segmentation fault (11)
[Mon Sep 06 11:49:44 2004] [notice] child pid 19708 exit

#28808 [Fbk->NoF]: convert_uudecode() crashes CGI version

2004-09-13 Thread php-bugs
 ID:   28808
 Updated by:   [EMAIL PROTECTED]
 Reported By:  gphemsley at users dot sourceforge dot net
-Status:   Feedback
+Status:   No Feedback
 Bug Type: CGI related
 Operating System: Windows XP Professional SP1
 PHP Version:  5.0.0RC3
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2004-09-06 14:37:06] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.0-win32-latest.zip





[2004-06-16 18:10:32] gphemsley at users dot sourceforge dot net

I was hoping there were attachments here, but I can't find any. Here
are the three files mentioned above:
http://www.music-hq.net/~gphemsley/PHP/3nCryPt.enc
http://www.music-hq.net/~gphemsley/PHP/uudecode_appcompat.txt
http://www.music-hq.net/~gphemsley/PHP/uudecode_php-cgi.exe.mdmp



[2004-06-16 18:06:27] gphemsley at users dot sourceforge dot net

Description:

convert_uudecode() crashes the CGI version of PHP 5.0.0RC3, seemingly
trying to parse its contents as PHP code.

Reproduce code:
---
\n";

foreach( file( $_REQUEST['file'] ) as $line )
{
print htmlentities( convert_uudecode( $line ) );
}

print "\n";
}

?>


Expected result:

A decoded version of the file that I provided it.

Actual result:
--
It spits out these lines and then dies (causing the Windows Error
Reporting window to pop up):
PHP Notice:  Undefined variable:  /a♀╪↕* in
D:\Program Files\Apache Group\Apache
\htdocs\uudecode.php5 on line 13
PHP Notice:  Undefined variable:  /a♀╪↕* in
D:\Program Files\Apache Group\Apache
\htdocs\uudecode.php5 on line 13

The error reporting data included this:
szAppName : php-cgi.exe szAppVer : 5.0.0.0 szModName :
ntdll.dll 
szModVer : 5.1.2600.1217 offset : 00033aed 

And 2 files.





-- 
Edit this bug report at http://bugs.php.net/?id=28808&edit=1


#29144 [Fbk->NoF]: PHP is not executed/not handling files

2004-09-13 Thread php-bugs
 ID:   29144
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at soapi dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Apache2 related
 Operating System: RedHat Enterprise Linux 3.0
 PHP Version:  5.0.0
 New Comment:

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".


Previous Comments:


[2004-09-06 18:59:34] [EMAIL PROTECTED]

So install Apache1



[2004-09-06 09:27:03] jesse at eonstreet dot com

I don't know about apache1 because my server is apache2.  

The verson I am trying is 5.0.1



[2004-09-06 04:21:17] [EMAIL PROTECTED]

Does it work with Apache1 for you?



[2004-09-06 03:53:47] jesse at eonstreet dot com

I have the same problem. Everything is fine except when I change the
http.conf from libphp4 to libphp5.  I too believe this is a bug and has
something to do with a the way the libphp5.so is tell apache2 how to
handle the files.

I tried compiling "--with-apxs2" only but that did not work.
Neither "--with-apxs2=/usr/sbin/apxs --with-apxs2filter=/usr/sbin/apxs"



[2004-07-14 15:05:29] php at soapi dot com

I fail to see how this is not a bug. I subscribe to all the relevant
PHP newsgroups, and there has been nothing there to help. (The fact
that the newsgroups suffer from so much spam probably has a lot to do
with it.)

I believe this is a bug for the simple reason that PHP4 works perfectly
with the same settings, and PHP5 is not handling php scripts. That to me
says some bug in how PHP5 is telling Apache what it can handle.

If there is anything that should be done in addition to the standard
steps of installation, that should be clearly marked out in the
documentation. However, there is nothing to suggest that anything else
is needed.

Finally, please note that I *have* used the support system, and the
mailing list/newsgroups, and spent many hours searching and testing
before posting this report. I still believe this is a bug.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29144

-- 
Edit this bug report at http://bugs.php.net/?id=29144&edit=1


#30079 [NEW]: error unkow

2004-09-13 Thread lixmanh at yahoo dot es
From: lixmanh at yahoo dot es
Operating system: WinXP
PHP version:  5.0.1
PHP Bug Type: *General Issues
Bug description:  error unkow

Description:

 

Expected result:

connect to a data base of Mysql created by MySQLAdmin

named test

Actual result:
--
Fatal error: Call to undefined function mysql_connect() in
D:\Sitios\PHP\inicio.php on line 3


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


#29805 [Opn]: HTTP Authentication Issues

2004-09-13 Thread michaelw at webcentral dot com dot au
 ID:   29805
 User updated by:  michaelw at webcentral dot com dot au
 Reported By:  michaelw at webcentral dot com dot au
 Status:   Open
 Bug Type: iPlanet related
 Operating System: Solaris 9
 PHP Version:  4.3.8
 New Comment:

Hi,

Just wondering if you've found time to look at this ?

Regards,
Michael Ward.


Previous Comments:


[2004-08-30 01:19:31] michaelw at webcentral dot com dot au

Any progress with this ?



[2004-08-25 11:10:22] michaelw at webcentral dot com dot au

Currently, it is the ONLY AuthTrans directive.



[2004-08-25 11:05:24] [EMAIL PROTECTED]

The PHP AuthTrans must be the first AuthTrans directive. I can take a
look at this the next days.



[2004-08-25 00:45:31] michaelw at webcentral dot com dot au

>From obj.conf


AuthTrans fn=php4_auth_trans





[2004-08-24 23:51:33] [EMAIL PROTECTED]

Have you installed the fake authenticator "php4_ as written in the
docs?

"To use PHP Authentication on a single directory, add the following:

AuthTrans fn=php4_auth_trans
"

The problem is: iPlanet SunONE does not send the password to PHP so it
is not a problem of PHP. With the code from the docs you tell SunONE to
pass the authentication data to the "fake" function "php4_auth_trans"
that only says "auth done" and no other AuthTrans directives from
obj.conf get executed. This switches of all other authentication in the
server (Java, .htaccess,...) but lets PHP get the data. By limiting this
to a directory you can leave the SunONE authentication for other
directories intact.
 




The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/29805

-- 
Edit this bug report at http://bugs.php.net/?id=29805&edit=1


#30080 [NEW]: Passing array or non array of objects

2004-09-13 Thread portfolio at gmx dot co dot uk
From: portfolio at gmx dot co dot uk
Operating system: XP
PHP version:  5.0.1
PHP Bug Type: Reproducible crash
Bug description:  Passing array or non array of objects

Description:

When I pass an array of objects without first initializing them with a
variable, I get either a crash or error (Depends on whether if its
array).



Reproduce code:
---
class A { 
function A($arrayobj) { 
while(list($key, $value) = each($arrayobj)) { 
echo $value->spit(); 
} 
} 
} 

class B { 
function spit() { 
return 'This is class B' . "\n"; 
} 
} 

class C { 
function spit() { 
return 'This is class C' . "\n"; 
} 
} 

new A( array( new B(), new C())); 

Expected result:

I got this error:

This is class B 
Fatal error: Call to a member function spit() on a non-object in

If I do:

$b = new B; $c = new C; 
new A( array($b, $c)); 

It works but very long winded.

Another bug here causes Apache to crash:

class A 
{ 
function A($value) { 
   echo $value->spit(); 
} 
} 

class B { 
function spit() { 
return 'This is class B' . "\n"; 
} 
} 

new A( new B());


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


#30079 [Opn->Bgs]: error unkow

2004-09-13 Thread derick
 ID:   30079
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lixmanh at yahoo dot es
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: WinXP
 PHP Version:  5.0.1
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.


Previous Comments:


[2004-09-14 02:09:16] lixmanh at yahoo dot es

Description:

 

Expected result:

connect to a data base of Mysql created by MySQLAdmin

named test

Actual result:
--
Fatal error: Call to undefined function mysql_connect() in
D:\Sitios\PHP\inicio.php on line 3






-- 
Edit this bug report at http://bugs.php.net/?id=30079&edit=1


#30078 [Opn->Bgs]: Configure failure with Oracle Instant Client 10 RPM

2004-09-13 Thread derick
 ID:   30078
 Updated by:   [EMAIL PROTECTED]
 Reported By:  george dot lagos at alcatel dot com
-Status:   Open
+Status:   Bogus
 Bug Type: OCI8 related
 Operating System: Linux 2.4 (RH8)
 PHP Version:  4CVS-2004-09-13 (stable)
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

You just don't have all the necessary libraries. Not a bug -> bogus.


Previous Comments:


[2004-09-13 23:45:34] george dot lagos at alcatel dot com

Description:

I tried to compile PHP 4.3.8 CVS php4-STABLE-200409132030 with the
Oracle Instant Client 10 libraries. I keep getting the same error -
cannot find -lclntsch . 

I am using the 10i Instant Client rpm. 

I have entered full path in ld.so.conf as well as exported $ORACLE_HOME
and $LD_LIBRARY_PATH. 
I even tried linking the to the Oracle version 8 library filenames.

Here is debug.log
CONFIGURE:   './configure'
'--with-oci8=/usr/lib/oracle/10.1.0.2/client'
'--with-apxs=/usr/local/apache/bin/apxs'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:
CXX:
CXXFLAGS:
INCLUDES:-I$(top_builddir)/Zend
LDFLAGS: -Wl,-rpath,/usr/lib/oracle/10.1.0.2/client/lib
-L/usr/lib/oracle/10.1.0.2/client/lib
LIBS:   -lresolv -lm -ldl -lnsl  -lclntsh
DLIBS:
SAPI:   apache
PHP_RPATHS:  /usr/lib/oracle/10.1.0.2/client/lib
uname -a:   Linux mcw-003 2.4.18-14 #1 Wed Sep 4 11:57:57 EDT 2002 i586
i586 i386 GNU/Linux

gcc -o conftest -g -O2   -Wl,-rpath,/usr/lib/oracle/10.1.0.2/client/lib
-L/usr/lib/oracle/10.1.0.2/client/lib conftest.c -lresolv -lm -ldl -lnsl
 -
lclntsh 1>&5
/usr/bin/ld: cannot find -lclntsh
collect2: ld returned 1 exit status

I am starting to think that the RPM is missing files. Is that possible?






-- 
Edit this bug report at http://bugs.php.net/?id=30078&edit=1


#29453 [Opn->Bgs]: IMAP support breaks .so

2004-09-13 Thread derick
 ID:   29453
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Gentoo Linux  x86_64 (Opteron)
 PHP Version:  5.0.0
 New Comment:

I'd say blame the Gentoo people for not offering solid programs. No bug
here -> bogus.


Previous Comments:


[2004-09-13 20:05:08] [EMAIL PROTECTED]

libtool-1.5.2-r5
automake-1.8.5-r1
autoconf-2.59-r4

FYI:
I haven't had problems with other software yet and as it's a gentoo
system nearly everything get's compiled from scratch.

My portage tree doesn't even offer autoconf-2.13 anymore btw.
I am on amd64 and so not that free in choosing older software
versions.

Meanwhile I compiled the IMAP support as Dynamic Extension and it works
now.

My config.nice for ext/imap looks like this:

CC='gcc' \
CXX='g++' \
'./configure' \
'--with-imap=/usr/lib/' \
'--with-imap-ssl' \
"$@"


BUT:
If I only do a ./configure I get:
checking whether SSL libraries are needed for c-client... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

The config.log now show:
configure:4529: checking whether build with IMAP works
configure:4572: gcc -o conftest -g -O2   conftest.c  -lc-client -lcrypt
-lpam   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../libc-client.a(osdep.o)(.text+0x8b69):
In function `ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
about 30 lines undefined references-

So without knowing much about linking I can only guess what's happening
here...

greetings

Daniel Khan



[2004-09-12 01:00:10] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".



[2004-09-04 18:32:42] [EMAIL PROTECTED]

What version of libtool do you use?
--
The following combinations are known to work:
autoconf 2.13, automake 1.4 and libtool 1.4.3
autoconf 2.13, automake 1.5 and libtool 1.4.3
--
(c) http://www.php.net/anoncvs.php




[2004-07-30 01:52:15] [EMAIL PROTECTED]

Description:

Hello,

I know that this has been an issue some times bevore and I really
looked into each and every bugreport which mentions it.
I am not able to compile php-5.0.0 with imap support on my Gentoo
boxes.

If I don't add imap support it works without problems.

It doesn't make a difference if I add ssl support or not.

So if you know emerge:

USE='ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

USE='-ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

Both fail.

I even tried different versions of libtool.

Maybe someone can help me out.

Thank you.


-- 
Daniel Khan


Reproduce code:
---
./configure  --prefix=/usr --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-apxs2=/usr/sbin/apxs2
--with-config-file-path=/etc/php/apache2-php5 --without-pear
--disable-bcmath --with-bz2 --disable-calendar --without-cpdflib
--disable-ctype --with-curl --without-curlwrappers --disable-dbase
--disable-dio --enable-exif --without-fam --without-fbsql
--without-fdftk --disable-filepro --enable-ftp --with-gettext
--without-gmp --without-hwapi --without-iconv --without-informix
--without-ingres --without-interbase --enable-mbstring --with-mcrypt
--without-mcve --disable-memory-limit --without-mhash
--without-mime-magic --with-ming --without-mnogosearch --without-msql
--without-mssql --with-ncurses --without-oci8 --without-oracle
--with-openssl --without-ovrimos --enable-pcntl --without-pfpro
--without-pgsql --with-pspell --without-recode --disable-shmop
--without-snmp --enable-soap --enable-sockets --disable-spl
--without-sybase --without-sybase-ct --enable-sysvmsg --enable-sysvsem
--enable-sysvshm --with-tidy --enable-wddx --with-xsl --without-xmlrpc
--disable-yp --with-zlib --without-cdb --with-db4 --without-dbm
--without-flatfile --with-gdbm --without-inifile --without-qdbm
--enable-dbx --with-freetype-dir --with-t1lib --enable-gd-jis-conf
--enable-gd-native-ttf --with-jpeg-dir=/usr --with-png-dir=/usr
--with-tiff-dir=/usr --without-xpm-dir --with-gd --with-imap
--with-imap-ssl --with-ldap --with-ldap-sasl --with-unixODBC
--without-adabas --without-birdstep --without-dbmaker --without-empress
--without-esoob --with-ibm-db2 --without-iodbc --without-sapdb
--without-solid --with-mysql --without-mm --without-msession
--enable-sqlite-utf8 --en