#30622 [Opn-Sus]: xsltProcessor-setParameter() cannot set namespace URI

2004-10-31 Thread chregu
 ID:   30622
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ishikawa at arielworks dot com
-Status:   Open
+Status:   Suspended
 Bug Type: XSLT related
 Operating System: Windows XP Pro SP1
 PHP Version:  5.0.2
 New Comment:

Yes, the namespace parameter is not implemented yet...

We know that, but noone found the time to implement it until know


Previous Comments:


[2004-10-30 19:13:36] ishikawa at arielworks dot com

Description:

xsltProcessor-setParameter() ignores its first parameter namespace
URI and set NULL to namespace.

Reproduce code:
---
$xmlStr = '?xml version=1.0 encoding=UTF-8?root/';
$xmlDom = new DomDocument();
$xmlDom-loadXML($xmlStr);

$xslDom = new DomDocument();
$xslDom-load(./testcase.xsl);

$proc = new xsltProcessor();
$proc-importStyleSheet($xslDom);

/* set a parameter WITH namespace */
$proc-setParameter(http://www.php.net/test;, foo, SET);

print $proc-transformToXML($xmlDom);

 testcase.xsl
?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns:test=http://www.php.net/test;
xsl:param name=foo select='EMPTY'/
xsl:param name=test:foo select='EMPTY'/

xsl:template match=/root
xsl:textNamespace NULL: /xsl:text
xsl:value-of select=$foo/
xsl:text, Namespace http://www.php.net/test: /xsl:text
xsl:value-of select=$test:foo/
/xsl:template
/xsl:stylesheet

Expected result:

Namespace NULL: EMPTY, Namespace http://www.php.net/test: SET

Actual result:
--
Namespace NULL: SET, Namespace http://www.php.net/test: EMPTY





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


#30627 [NEW]: A userdata parameter for preg_replace_callback

2004-10-31 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: Irrelevant
PHP version:  Irrelevant
PHP Bug Type: Feature/Change Request
Bug description:  A userdata parameter for preg_replace_callback

Description:

It would be nice if preg_replace_callback had a userdata parameter.

Example:
$string = [thing 1] foo [thing 2];
$things = array( 1 = One thing, 2 = Other thing);

function replace_callback($match, $data) {
return $data[$match[1]];
}

echo preg_replace_callback('/\[thing (\d+)\]/', 'replace_callback',
$string, -1, $data);

Would Output:
One thing foo Other thing


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


#30629 [NEW]: @ doesn't supress notices of undefined vars

2004-10-31 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: n/a
PHP version:  5CVS-2004-10-31 (dev)
PHP Bug Type: Variables related
Bug description:  @ doesn't supress notices of undefined vars

Description:

There is a BC break in the @ operator from PHP 4 to 5.

While PHP 4 doesn't output anything with supplied script (the correct
thing), PHP 5 echoes a notice.

Reproduce code:
---
?

error_reporting(E_ALL);

function a ($var){}

a(@$abc);

?

Expected result:

nothing

Actual result:
--
Notice: Undefined variable: abc

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


#30630 [NEW]: Error message: Call to a member function on a non-object

2004-10-31 Thread boccara at netvision dot net dot il
From: boccara at netvision dot net dot il
Operating system: win 2K / apache 2.0.49
PHP version:  4.3.9
PHP Bug Type: Reproducible crash
Bug description:  Error message: Call to a member function on a non-object

Description:

Hello I have a defined a class that manage a 2 dimensions array (table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop ( always
the same number of times depending to the query), I got an error message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is no
syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of the result 


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

Fatal error: Call to a member function on a non-object in c:\Program
Files\Apache Group\Apache2\htdocs\speedevis\lib\StatRev.inc.php on line
2018


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

#30631 [NEW]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread mailbox at 2fresh dot ru
From: mailbox at 2fresh dot ru
Operating system: FreeBSD 4.9
PHP version:  5.0.2
PHP Bug Type: Compile Warning
Bug description:  /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 
52 to 42

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0): first
defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49 to
48 in /home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of `strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0): first
defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46 to
32 in /home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of `strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of `strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0): first
defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to
42 in /home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?

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


#30630 [Opn]: Error message: Call to a member function on a non-object

2004-10-31 Thread boccara at netvision dot net dot il
 ID:   30630
 User updated by:  boccara at netvision dot net dot il
 Reported By:  boccara at netvision dot net dot il
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: win 2K / apache 2.0.49
 PHP Version:  4.3.9
 New Comment:

Zend Studio Server  3.5.0
 
 Zend Server Center  3.5.0
 
 Zend Engine  1.3.0
 
 PHP  4.3.9
 
 Zend Optimizer  2.5.5
 
 Zend Debugger  3.5.2
 
 Zend Extension Manager  1.0.4 


I also made a test with the Zend Optimiser on OFF and no change
difference , still the fatal error .


Previous Comments:


[2004-10-31 18:22:50] boccara at netvision dot net dot il

Description:

Hello I have a defined a class that manage a 2 dimensions array
(table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop (
always the same number of times depending to the query), I got an error
message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is
no syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of the result 


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

Fatal error: Call to a member function on a non-object in c:\Program
Files\Apache Group\Apache2\htdocs\speedevis\lib\StatRev.inc.php on line
2018






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


#30631 [Opn]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread mailbox at 2fresh dot ru
 ID:   30631
 User updated by:  mailbox at 2fresh dot ru
 Reported By:  mailbox at 2fresh dot ru
 Status:   Open
 Bug Type: Compile Warning
 Operating System: FreeBSD 4.9
 PHP Version:  5.0.2
 New Comment:

hmm..., without --enable-embedded-mysqli

everything is ok.


Previous Comments:


[2004-10-31 19:02:54] mailbox at 2fresh dot ru

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49
to 48 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of
`strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46
to 32 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of
`strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of
`strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52
to 42 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?





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


#30631 [Opn]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread helly
 ID:   30631
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mailbox at 2fresh dot ru
 Status:   Open
 Bug Type: Compile Warning
-Operating System: FreeBSD 4.9
+Operating System: *
 PHP Version:  5.0.2
-Assigned To:  
+Assigned To:  georg
 New Comment:

That's because ext/mysql links to a different version of the mysql
client.


Previous Comments:


[2004-10-31 19:47:20] mailbox at 2fresh dot ru

hmm..., without --enable-embedded-mysqli

everything is ok.



[2004-10-31 19:02:54] mailbox at 2fresh dot ru

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49
to 48 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of
`strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46
to 32 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of
`strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of
`strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52
to 42 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?





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


#30631 [Opn]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread mailbox at 2fresh dot ru
 ID:   30631
 User updated by:  mailbox at 2fresh dot ru
 Reported By:  mailbox at 2fresh dot ru
 Status:   Open
 Bug Type: Compile Warning
 Operating System: *
 PHP Version:  5.0.2
 Assigned To:  georg
 New Comment:

ok. 5.0.2 is not friends with mysql MySQL 4.1.7?


Previous Comments:


[2004-10-31 20:07:38] [EMAIL PROTECTED]

That's because ext/mysql links to a different version of the mysql
client.



[2004-10-31 19:47:20] mailbox at 2fresh dot ru

hmm..., without --enable-embedded-mysqli

everything is ok.



[2004-10-31 19:02:54] mailbox at 2fresh dot ru

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49
to 48 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of
`strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46
to 32 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of
`strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of
`strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52
to 42 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?





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


#30631 [Opn]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread helly
 ID:   30631
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mailbox at 2fresh dot ru
 Status:   Open
 Bug Type: Compile Warning
 Operating System: *
 PHP Version:  5.0.2
 Assigned To:  georg
 New Comment:

No you didn't read what i wrote.

ext/mysql links to the normal mysqlclient lib.

By specifying --with-embedded-mysqli extension mysqli links to mysqld
lib. And those two cannot be linked into one target.

That means you can have ext/mysql, ext/mysqli, ext/pdo_mysql and
ext/pdo_mysqli (once it's ready) as long as you do not use embedded
version of mysql. If you do you can still use ext/mysqli and
ext/pdo_mysqli (once it's ready).


Previous Comments:


[2004-10-31 20:14:20] mailbox at 2fresh dot ru

ok. 5.0.2 is not friends with mysql MySQL 4.1.7?



[2004-10-31 20:07:38] [EMAIL PROTECTED]

That's because ext/mysql links to a different version of the mysql
client.



[2004-10-31 19:47:20] mailbox at 2fresh dot ru

hmm..., without --enable-embedded-mysqli

everything is ok.



[2004-10-31 19:02:54] mailbox at 2fresh dot ru

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49
to 48 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of
`strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46
to 32 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of
`strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of
`strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52
to 42 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?





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


#30631 [Opn-Csd]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread mailbox at 2fresh dot ru
 ID:   30631
 User updated by:  mailbox at 2fresh dot ru
 Reported By:  mailbox at 2fresh dot ru
-Status:   Open
+Status:   Closed
 Bug Type: Compile Warning
 Operating System: *
 PHP Version:  5.0.2
 Assigned To:  georg
 New Comment:

ok! big thnx!


Previous Comments:


[2004-10-31 20:25:19] [EMAIL PROTECTED]

No you didn't read what i wrote.

ext/mysql links to the normal mysqlclient lib.

By specifying --with-embedded-mysqli extension mysqli links to mysqld
lib. And those two cannot be linked into one target.

That means you can have ext/mysql, ext/mysqli, ext/pdo_mysql and
ext/pdo_mysqli (once it's ready) as long as you do not use embedded
version of mysql. If you do you can still use ext/mysqli and
ext/pdo_mysqli (once it's ready).



[2004-10-31 20:14:20] mailbox at 2fresh dot ru

ok. 5.0.2 is not friends with mysql MySQL 4.1.7?



[2004-10-31 20:07:38] [EMAIL PROTECTED]

That's because ext/mysql links to a different version of the mysql
client.



[2004-10-31 19:47:20] mailbox at 2fresh dot ru

hmm..., without --enable-embedded-mysqli

everything is ok.



[2004-10-31 19:02:54] mailbox at 2fresh dot ru

Description:

compile PHP5.0.2 + MySQL 4.1.7-standard


-bash-2.05b$ ./configure --prefix=/home/u12613/usr/local/ --with-zlib
--with-mysql=/home/u12613/usr/local --with-mysql-sock=/home/u12613/tmp
--with-mysqli=/home/u12613/usr/local/bin/mysql_config
--enable-embedded-mysqli


configure ok

make errors:


Reproduce code:
---
...
/home/u12613/usr/local/lib/libmysqlclient.a(strmake.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strmake' changed from 49
to 48 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strnmov':
libmystrings_strings-x86.o(.text+0x1a6): multiple definition of
`strnmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strnmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strnmov' changed from 46
to 32 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strmov':
libmystrings_strings-x86.o(.text+0x1c6): multiple definition of
`strmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strmov.o)(.text+0x0): first
defined here
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o): In
function `strxmov':
libmystrings_strings-x86.o(.text+0x1e1): multiple definition of
`strxmov'
/home/u12613/usr/local/lib/libmysqlclient.a(strxmov.o)(.text+0x0):
first defined here
/usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52
to 42 in
/home/u12613/usr/local/lib/libmysqld.a(libmystrings_strings-x86.o)
*** Error code 1


Actual result:
--
whats problem?





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


#30631 [Csd-Opn]: /usr/libexec/elf/ld: Warning: size of symbol `strxmov' changed from 52 to 42

2004-10-31 Thread helly
 ID:   30631
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mailbox at 2fresh dot ru
-Status:   Closed
+Status:   Open
 Bug Type: Compile Warning
 Operating System: *
 PHP Version:  5.0.2
 Assigned To:  georg
 New Comment:

Reopen: Still we may *want* to be able to link ext/mysql when using
embedded version.


Previous Comments:


[2004-10-31 20:33:51] mailbox at 2fresh dot ru

ok! big thnx!



[2004-10-31 20:25:19] [EMAIL PROTECTED]

No you didn't read what i wrote.

ext/mysql links to the normal mysqlclient lib.

By specifying --with-embedded-mysqli extension mysqli links to mysqld
lib. And those two cannot be linked into one target.

That means you can have ext/mysql, ext/mysqli, ext/pdo_mysql and
ext/pdo_mysqli (once it's ready) as long as you do not use embedded
version of mysql. If you do you can still use ext/mysqli and
ext/pdo_mysqli (once it's ready).



[2004-10-31 20:14:20] mailbox at 2fresh dot ru

ok. 5.0.2 is not friends with mysql MySQL 4.1.7?



[2004-10-31 20:07:38] [EMAIL PROTECTED]

That's because ext/mysql links to a different version of the mysql
client.



[2004-10-31 19:47:20] mailbox at 2fresh dot ru

hmm..., without --enable-embedded-mysqli

everything is ok.



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

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


#30630 [Opn]: Error message: Call to a member function on a non-object

2004-10-31 Thread boccara at netvision dot net dot il
 ID:   30630
 User updated by:  boccara at netvision dot net dot il
 Reported By:  boccara at netvision dot net dot il
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: win 2K / apache 2.0.49
 PHP Version:  4.3.9
 New Comment:

dbfetch us an function created to choose a fetch according to the
database.
in our case it is MSSQL.
this function works already since 4 years.

Function dbFetch ($iResult, $tabColonne) {

  $iNbCol = 0; // Permet de recuperer une erreur ou le nombre de
colonnes
  $tabColonne = array();
  switch (SGBD) {

case ODBC:
$iNbCol = odbc_fetch_into($iResult, $tabColonne);
  break;

case MSQL:
$tabColonne = mysql_fetch_row($iResult);
if($tabColonne) $iNbCol = count($tabColonne);
  break;

case MSSQL:
$tabColonne = mssql_fetch_array($iResult);
if($tabColonne)
{
$iNbCol = count($tabColonne);
}
 break;
  }
  return $iNbCol;
}


Previous Comments:


[2004-10-31 19:04:31] boccara at netvision dot net dot il

Zend Studio Server  3.5.0
 
 Zend Server Center  3.5.0
 
 Zend Engine  1.3.0
 
 PHP  4.3.9
 
 Zend Optimizer  2.5.5
 
 Zend Debugger  3.5.2
 
 Zend Extension Manager  1.0.4 


I also made a test with the Zend Optimiser on OFF and no change
difference , still the fatal error .



[2004-10-31 18:22:50] boccara at netvision dot net dot il

Description:

Hello I have a defined a class that manage a 2 dimensions array
(table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop (
always the same number of times depending to the query), I got an error
message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is
no syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of the result 


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

Fatal error: Call to a member function on a non-object in c:\Program
Files\Apache Group\Apache2\htdocs\speedevis\lib\StatRev.inc.php on line
2018






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


#30630 [Opn]: Error message: Call to a member function on a non-object

2004-10-31 Thread boccara at netvision dot net dot il
 ID:   30630
 User updated by:  boccara at netvision dot net dot il
 Reported By:  boccara at netvision dot net dot il
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: win 2K / apache 2.0.49
 PHP Version:  4.3.9
 New Comment:

the line 2018 in the fatal error is:

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);


Previous Comments:


[2004-10-31 21:20:10] boccara at netvision dot net dot il

dbfetch us an function created to choose a fetch according to the
database.
in our case it is MSSQL.
this function works already since 4 years.

Function dbFetch ($iResult, $tabColonne) {

  $iNbCol = 0; // Permet de recuperer une erreur ou le nombre de
colonnes
  $tabColonne = array();
  switch (SGBD) {

case ODBC:
$iNbCol = odbc_fetch_into($iResult, $tabColonne);
  break;

case MSQL:
$tabColonne = mysql_fetch_row($iResult);
if($tabColonne) $iNbCol = count($tabColonne);
  break;

case MSSQL:
$tabColonne = mssql_fetch_array($iResult);
if($tabColonne)
{
$iNbCol = count($tabColonne);
}
 break;
  }
  return $iNbCol;
}



[2004-10-31 19:04:31] boccara at netvision dot net dot il

Zend Studio Server  3.5.0
 
 Zend Server Center  3.5.0
 
 Zend Engine  1.3.0
 
 PHP  4.3.9
 
 Zend Optimizer  2.5.5
 
 Zend Debugger  3.5.2
 
 Zend Extension Manager  1.0.4 


I also made a test with the Zend Optimiser on OFF and no change
difference , still the fatal error .



[2004-10-31 18:22:50] boccara at netvision dot net dot il

Description:

Hello I have a defined a class that manage a 2 dimensions array
(table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop (
always the same number of times depending to the query), I got an error
message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is
no syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of the result 


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

Fatal error: Call to a member function on a non-object in 

#30634 [NEW]: // Doesn't completely comment out certain lines

2004-10-31 Thread tonglebeak at gmail dot com
From: tonglebeak at gmail dot com
Operating system: Linux
PHP version:  4.3.9
PHP Bug Type: Unknown/Other Function
Bug description:  // Doesn't completely comment out certain lines

Description:

For lines, with I guess certain strings or something in them, the // will
fail to completely comment out a line. Not sure how to exactly describe
it, so just go by the code I give you.

Note: the comment might wrap on this screen, but that's all 1 single line.

Reproduce code:
---
?

//$settings=(stristr($_SERVER['HTTP_USER_AGENT'],'MSIE') ||
stristr($_SERVER['HTTP_USER_AGENT'],'Googlebot')) ? '':'?xml
version=1.0 encoding=utf-8?' .NL. '';

?


Expected result:

Nothing should occur with that line.

Actual result:
--
For some reason, ' .NL. '' ? is outputted.

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


#30634 [Opn-Bgs]: // Doesn't completely comment out certain lines

2004-10-31 Thread helly
 ID:   30634
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tonglebeak at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  4.3.9
 New Comment:

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

.


Previous Comments:


[2004-10-31 21:33:47] tonglebeak at gmail dot com

Description:

For lines, with I guess certain strings or something in them, the //
will fail to completely comment out a line. Not sure how to exactly
describe it, so just go by the code I give you.

Note: the comment might wrap on this screen, but that's all 1 single
line.

Reproduce code:
---
?

//$settings=(stristr($_SERVER['HTTP_USER_AGENT'],'MSIE') ||
stristr($_SERVER['HTTP_USER_AGENT'],'Googlebot')) ? '':'?xml
version=1.0 encoding=utf-8?' .NL. '';

?


Expected result:

Nothing should occur with that line.

Actual result:
--
For some reason, ' .NL. '' ? is outputted.





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


#30630 [Opn]: Error message: Call to a member function on a non-object

2004-10-31 Thread boccara at netvision dot net dot il
 ID:   30630
 User updated by:  boccara at netvision dot net dot il
 Reported By:  boccara at netvision dot net dot il
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: win 2K / apache 2.0.49
 PHP Version:  4.3.9
 New Comment:

function endl()
{
echo br;
}


Previous Comments:


[2004-10-31 21:23:23] boccara at netvision dot net dot il

the line 2018 in the fatal error is:

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);



[2004-10-31 21:20:10] boccara at netvision dot net dot il

dbfetch us an function created to choose a fetch according to the
database.
in our case it is MSSQL.
this function works already since 4 years.

Function dbFetch ($iResult, $tabColonne) {

  $iNbCol = 0; // Permet de recuperer une erreur ou le nombre de
colonnes
  $tabColonne = array();
  switch (SGBD) {

case ODBC:
$iNbCol = odbc_fetch_into($iResult, $tabColonne);
  break;

case MSQL:
$tabColonne = mysql_fetch_row($iResult);
if($tabColonne) $iNbCol = count($tabColonne);
  break;

case MSSQL:
$tabColonne = mssql_fetch_array($iResult);
if($tabColonne)
{
$iNbCol = count($tabColonne);
}
 break;
  }
  return $iNbCol;
}



[2004-10-31 19:04:31] boccara at netvision dot net dot il

Zend Studio Server  3.5.0
 
 Zend Server Center  3.5.0
 
 Zend Engine  1.3.0
 
 PHP  4.3.9
 
 Zend Optimizer  2.5.5
 
 Zend Debugger  3.5.2
 
 Zend Extension Manager  1.0.4 


I also made a test with the Zend Optimiser on OFF and no change
difference , still the fatal error .



[2004-10-31 18:22:50] boccara at netvision dot net dot il

Description:

Hello I have a defined a class that manage a 2 dimensions array
(table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop (
always the same number of times depending to the query), I got an error
message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is
no syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of the result 


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1


#30620 [Opn-Fbk]: I can't get attributes of nodes, when I use XML document with namespace definit

2004-10-31 Thread tony2001
 ID:   30620
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sveta at microbecal dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Scripting Engine problem
 Operating System: Windows XP
 PHP Version:  5CVS-2004-10-29 (dev)
 New Comment:

I can't reproduce it under Linux.
So, yes, I do think we need additional info. 



Previous Comments:


[2004-10-30 23:23:12] sveta at microbecal dot com

Dears!

Look at the screenshot:
http://www.microbecal.com/ftp_load/crazy_bug.gif

Some strings from phpinfo() output:
PHP Version 5.1.0-dev
Build Date  Oct 29 2004 12:14:55
PHP API  20031224  
PHP Extension  20040718  
Zend Extension  220040718  
Debug Build  no  
Thread Safety  enabled

If you are need in additional info, let me know which

Thank you!



[2004-10-30 13:22:26] [EMAIL PROTECTED]

Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php

If you can provide more information, feel free to add it
to this bug and change the status back to Open.

Thank you for your interest in PHP.




[2004-10-30 10:46:09] sveta at microbecal dot com

Description:

Then I try to run php or php-win from command line, scripts work, but
Windows displays system error window.
But if I try to run php-cgi from command line, it works without error
window.
PHP 5.0.0 works without error window too.

Reproduce code:
---
php script.php
php-win script.php

Expected result:

script output

Actual result:
--
script output and Windows system error window





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


#30635 [NEW]: exception handler does not work

2004-10-31 Thread support at malyweb dot cz
From: support at malyweb dot cz
Operating system: winXp
PHP version:  5CVS-2004-10-31 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description:  exception handler does not work

Description:

the code below causes that window critical error dialog appear and no
result is shown
I tried it on 5.0.2 - it did not work so I downloaded this latest version
(5.0.3-dev) and it is still not working.

(I read this one also: http://bugs.php.net/bug.php?id=30230 but actually
do not understand it - the code is not working also)

btw: this works fine
function exceptionHandler($exception){
echo('Uncaught exception: '.$exception-getMessage());
}
set_exception_handler('exceptionHandler');
throw new Exception('oh no ... ;)');exit;

Reproduce code:
---
?php
class core_exception {
public static function exceptionHandler($exception){
echo('Uncaught exception: '.$exception-getMessage());
}
}
$_EXCEPTION = new core_exception();
set_exception_handler(array($_EXCEPTION,'exceptionHandler'));
throw new Exception('oh no ... ;)');exit;
?


Expected result:

Uncaught exception: oh no ... ;)

Actual result:
--
via browser: no result + critical error of apache
via cmdline: no result + critical error of CLI or CGI/FastCGI 

via zde debugger: shows the expected result (build 1482)


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


#30636 [NEW]: Unable to load dynamic library

2004-10-31 Thread php at savignano dot net
From: php at savignano dot net
Operating system: Win XP Pro
PHP version:  5.0.2
PHP Bug Type: *Configuration Issues
Bug description:  Unable to load dynamic library

Description:

PHP continously alerts that it is unable to load several dynamic
libraries. I was unable to fix the problem and ended up commenting out the
libraries in php.ini. Here's why:

The extension_dir was setup correctly. Also, I used FileMon to find out
why PHP could not load the library, but FileMon showed that the library
file was actually found in the right place by PHP! Nevertheless, PHP
alerts me it did not find the libraries?!

The other thing is that only SOME of the libraries are complained about
while others are not. So maybe it is a problem in the libraries?
Unfortunately, I am unable to determine this.

I tried playing with the order in which the libraries are listed in the
php.ini, but this does not seem to make a difference.

This is long-standing problem, as I remember I had the same problems in
previous releases, too. For some reasons, it has never been resolved, but
should be sooner or later!


I decided to make this a new bug report, since there seem to be similiar
ones, but they did not really describe the same problem. Feel free to mark
this a dupe, as long as you fix the bug... ;-)

Reproduce code:
---
I installed the PHP 5.0.2 binary Win32 distribution with its original
directory structure. PHP is used in the CGI-Version from Apache 1.3.29.
The php.ini is located in the PHP directory, i.e. right where php-cgi.exe
is located. There is no php.ini in the windows directory. 

For testing purposes, I just used a simple

?php

 phpinfo();

?

The contents of php.ini is as follows:

[PHP]

;;;
; About php.ini   ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that
order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably
guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from
FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or
M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an
expression
; (e.g. E_ALL  ~E_NOTICE), or a quoted string (foo).
;
; Expressions in the INI file are limited to bitwise operators and
parentheses:
; |bitwise OR
; bitwise AND
; ~bitwise NOT
; !boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after the
equal
; sign, or by using the None keyword:
;
;  foo = ; sets foo to an empty string
;  foo = none; sets foo to an empty string
;  foo = none  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend
extension),
; you may only use these constants *after* the line that loads the
extension.
; 
;
;;;
; About this file ;
;;;
; This is the recommended, PHP 5-style version of the php.ini-dist file. 
It
; sets some non standard settings, that make PHP more efficient, more
secure,
; and encourage cleaner coding.
;
; The price is that with these settings, PHP may be incompatible with
some
; applications, and sometimes, more difficult to develop with.  Using
this
; file is warmly recommended for production sites.  As all of the changes
from
; the standard settings are thoroughly documented, you can go over each
one,
; and decide whether you want to use it or not.
;
; For general information about the php.ini file, please consult the
php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it
features
; different values for several directives, in order to improve
performance, while
; possibly breaking compatibility with the standard out-of-the-box
behavior of
; PHP.  Please make sure you read what's different, and modify your
scripts
; accordingly, if you decide to use this file instead.
;
; - register_globals = Off [Security, Performance]
; Global variables are no longer registered for input data (POST, GET,
cookies,
; environment and other server 

#30635 [Opn]: exception handler does not work

2004-10-31 Thread support at malyweb dot cz
 ID:   30635
 User updated by:  support at malyweb dot cz
 Reported By:  support at malyweb dot cz
 Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: winXp
 PHP Version:  5CVS-2004-10-31 (dev)
 New Comment:

just some more info:
I've just downgraded php back to 5.0.2 - the difference is, that the
code sometimes (irregulary :/) shows the expected result and Fatal
error: Uncaught exception 'Exception' with message 'oh no ... ;)' in
...

I wonder how is that possible - I have tried IE and Mozilla (i've
suspected the cache for a while)

the windowsXP built-in firewall is off


Previous Comments:


[2004-10-31 23:53:10] support at malyweb dot cz

Description:

the code below causes that window critical error dialog appear and no
result is shown
I tried it on 5.0.2 - it did not work so I downloaded this latest
version (5.0.3-dev) and it is still not working.

(I read this one also: http://bugs.php.net/bug.php?id=30230 but
actually do not understand it - the code is not working also)

btw: this works fine
function exceptionHandler($exception){
echo('Uncaught exception: '.$exception-getMessage());
}
set_exception_handler('exceptionHandler');
throw new Exception('oh no ... ;)');exit;

Reproduce code:
---
?php
class core_exception {
public static function exceptionHandler($exception){
echo('Uncaught exception: '.$exception-getMessage());
}
}
$_EXCEPTION = new core_exception();
set_exception_handler(array($_EXCEPTION,'exceptionHandler'));
throw new Exception('oh no ... ;)');exit;
?


Expected result:

Uncaught exception: oh no ... ;)

Actual result:
--
via browser: no result + critical error of apache
via cmdline: no result + critical error of CLI or CGI/FastCGI 

via zde debugger: shows the expected result (build 1482)






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


#30638 [NEW]: localeconv returns wrong LC_NUMERIC settings

2004-10-31 Thread k at ailis dot de
From: k at ailis dot de
Operating system: Linux
PHP version:  5.0.2
PHP Bug Type: *Languages/Translation
Bug description:  localeconv returns wrong LC_NUMERIC settings

Description:

If locale is switched to a european language (like de_DE) then localeconv
returns wrong settings for decimal_point and thousands_sep while other
data (like mon_decimal_point and mon_thousands_sep) is correct.

This bug was introduced by this patch for ext/standard/string.c:

$Id: string.c,v 1.320 2002/10/10 16:29:35 iliaa Exp $

This patch modified setlocale() so it resets the LC_NUMERIC locale to C.
This was a bad enough but there were reasons I agree to.

Here is a patch which corrects this bug by remembering the LC_NUMERIC
locale, setting this remembered locale before calling localeconv_r() and
resetting it to C after the call. In that way localeconv() returns the
correct data and PHP can still stick to LC_NUMERIC=C:

diff -Nur php-src.orig/ext/standard/basic_functions.c
php-src/ext/standard/basic_functions.c
--- php-src.orig/ext/standard/basic_functions.c 2004-10-09
00:19:03.0 +0200
+++ php-src/ext/standard/basic_functions.c  2004-11-01 00:36:48.0
+0100
@@ -1156,6 +1156,7 @@
BG(strtok_string) = NULL;
BG(strtok_zval) = NULL;
BG(locale_string) = NULL;
+   BG(numeric_locale_string) = NULL;
BG(user_compare_func_name) = NULL;
BG(array_walk_func_name) = NULL;
BG(page_uid) = -1;
@@ -1212,7 +1213,8 @@
setlocale(LC_CTYPE, );
}
STR_FREE(BG(locale_string));
-
+STR_FREE(BG(numeric_locale_string));
+
if (FG(stream_wrappers)) {
zend_hash_destroy(FG(stream_wrappers));
efree(FG(stream_wrappers));
diff -Nur php-src.orig/ext/standard/basic_functions.h
php-src/ext/standard/basic_functions.h
--- php-src.orig/ext/standard/basic_functions.h 2004-08-07
17:59:59.0 +0200
+++ php-src/ext/standard/basic_functions.h  2004-11-01 00:30:18.0
+0100
@@ -155,6 +155,7 @@
zval *strtok_zval;
char *strtok_string;
char *locale_string;
+   char *numeric_locale_string;
char *strtok_last;
char strtok_table[256];
ulong strtok_len;
diff -Nur php-src.orig/ext/standard/string.c
php-src/ext/standard/string.c
--- php-src.orig/ext/standard/string.c  2004-10-21 00:44:43.0
+0200
+++ php-src/ext/standard/string.c   2004-11-01 00:36:01.0 +0100
@@ -3799,6 +3799,10 @@

EG(float_separator)[0] = (lc.decimal_point)[0];
 
+/* Remember numeric locale */
+STR_FREE(BG(numeric_locale_string));
+BG(numeric_locale_string) = estrdup(loc);
+
if ((lc.decimal_point)[0] != '.') {
/* set locale back to C */
setlocale(LC_NUMERIC, C); 
@@ -4351,7 +4355,18 @@
{
struct lconv currlocdata;
 
+/* Remember numeric locale */
+if (BG(numeric_locale_string)) {
+setlocale(LC_NUMERIC, BG(numeric_locale_string));
+}
+
+/* Fetch formatting information */
localeconv_r( currlocdata );
+   
+   /* Reset numeric locale to C */
+   if (BG(numeric_locale_string)) {
+   setlocale(LC_NUMERIC, C);
+   }

/* Grab the grouping data out of the array */
len = strlen(currlocdata.grouping);


Reproduce code:
---
?php

setlocale(LC_ALL, 'de_DE');
$lc = localeconv();
printf(decimal_point: %s\n, $lc['decimal_point']);
printf(thousands_sep: %s\n, $lc['thousands_sep']);

?


Expected result:

decimal_point: ,
thousands_sep: .


Actual result:
--
decimal_point: .
thousands_sep: 


-- 
Edit bug report at http://bugs.php.net/?id=30638edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30638r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30638r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30638r=trysnapshot51
Fixed in CVS:http://bugs.php.net/fix.php?id=30638r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=30638r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=30638r=needtrace
Need Reproduce Script:   http://bugs.php.net/fix.php?id=30638r=needscript
Try newer version:   http://bugs.php.net/fix.php?id=30638r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30638r=support
Expected behavior:   http://bugs.php.net/fix.php?id=30638r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=30638r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=30638r=submittedtwice
register_globals:

#30637 [Opn-Fbk]: compile with pear error

2004-10-31 Thread derick
 ID:   30637
 Updated by:   [EMAIL PROTECTED]
 Reported By:  arthur at mir5 dot homeip dot net
-Status:   Open
+Status:   Feedback
 Bug Type: Compile Failure
 Operating System: (Slackware) linux-2.4.25
 PHP Version:  5.0.2
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to Open. Thank you for helping
us make PHP better.


Previous Comments:


[2004-11-01 00:40:34] arthur at mir5 dot homeip dot net

Description:

gcc version 3.2.3
GNU Make 3.80

./configure --with-apxs2=/var/lib/apache2/bin/apxs --disable-ipv6
--with-openssl --with-pgsql
make
...
...
Build complete.

make install
and the error occurs.
No error when i add --without-pear


Reproduce code:
---
make install
Installing PHP SAPI module:   apache2handler
/var/lib/apache2/build/instdso.sh
SH_LIBTOOL='/var/lib/apache2/build/libtool' libphp5.la
/var/lib/apache2/modules
/var/lib/apache2/build/libtool --mode=install cp libphp5.la
/var/lib/apache2/modules/
cp .libs/libphp5.so /var/lib/apache2/modules/libphp5.so
cp .libs/libphp5.lai /var/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/usr/local/php-5.0.2/libs'
chmod 755 /var/lib/apache2/modules/libphp5.so
[activating module `php5' in /var/lib/apache2/conf/httpd.conf]
Installing PHP CLI binary:/usr/local/bin/
Installing PHP CLI man page:  /usr/local/man/man1/
Installing PEAR environment:  /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2


Expected result:

Something is wrong with the make scripts.

Actual result:
--
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2






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


#30637 [NEW]: compile with pear error

2004-10-31 Thread arthur at mir5 dot homeip dot net
From: arthur at mir5 dot homeip dot net
Operating system: (Slackware) linux-2.4.25
PHP version:  5.0.2
PHP Bug Type: Compile Failure
Bug description:  compile with pear error

Description:

gcc version 3.2.3
GNU Make 3.80

./configure --with-apxs2=/var/lib/apache2/bin/apxs --disable-ipv6
--with-openssl --with-pgsql
make
...
...
Build complete.

make install
and the error occurs.
No error when i add --without-pear


Reproduce code:
---
make install
Installing PHP SAPI module:   apache2handler
/var/lib/apache2/build/instdso.sh
SH_LIBTOOL='/var/lib/apache2/build/libtool' libphp5.la
/var/lib/apache2/modules
/var/lib/apache2/build/libtool --mode=install cp libphp5.la
/var/lib/apache2/modules/
cp .libs/libphp5.so /var/lib/apache2/modules/libphp5.so
cp .libs/libphp5.lai /var/lib/apache2/modules/libphp5.la
libtool: install: warning: remember to run `libtool --finish
/usr/local/php-5.0.2/libs'
chmod 755 /var/lib/apache2/modules/libphp5.so
[activating module `php5' in /var/lib/apache2/conf/httpd.conf]
Installing PHP CLI binary:/usr/local/bin/
Installing PHP CLI man page:  /usr/local/man/man1/
Installing PEAR environment:  /usr/local/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2


Expected result:

Something is wrong with the make scripts.

Actual result:
--
make[1]: *** [install-pear-installer] Segmentation fault
make: *** [install-pear] Error 2


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


#30636 [Opn-Bgs]: Unable to load dynamic library

2004-10-31 Thread edink
 ID:   30636
 Updated by:   [EMAIL PROTECTED]
 Reported By:  php at savignano dot net
-Status:   Open
+Status:   Bogus
 Bug Type: *Configuration Issues
 Operating System: Win XP Pro
 PHP Version:  5.0.2
 New Comment:

You probably forgot the part about putting you install dir (c:\php or
whatever) into your system path.


Previous Comments:


[2004-10-31 23:53:58] php at savignano dot net

Description:

PHP continously alerts that it is unable to load several dynamic
libraries. I was unable to fix the problem and ended up commenting out
the libraries in php.ini. Here's why:

The extension_dir was setup correctly. Also, I used FileMon to find out
why PHP could not load the library, but FileMon showed that the library
file was actually found in the right place by PHP! Nevertheless, PHP
alerts me it did not find the libraries?!

The other thing is that only SOME of the libraries are complained about
while others are not. So maybe it is a problem in the libraries?
Unfortunately, I am unable to determine this.

I tried playing with the order in which the libraries are listed in the
php.ini, but this does not seem to make a difference.

This is long-standing problem, as I remember I had the same problems in
previous releases, too. For some reasons, it has never been resolved,
but should be sooner or later!


I decided to make this a new bug report, since there seem to be
similiar ones, but they did not really describe the same problem. Feel
free to mark this a dupe, as long as you fix the bug... ;-)

Reproduce code:
---
I installed the PHP 5.0.2 binary Win32 distribution with its original
directory structure. PHP is used in the CGI-Version from Apache 1.3.29.
The php.ini is located in the PHP directory, i.e. right where
php-cgi.exe is located. There is no php.ini in the windows directory. 

For testing purposes, I just used a simple

?php

 phpinfo();

?

The contents of php.ini is as follows:

[PHP]

;;;
; About php.ini   ;
;;;
; This file controls many aspects of PHP's behavior.  In order for PHP
to
; read it, it must be named 'php.ini'.  PHP looks for it in the
current
; working directory, in the path designated by the environment
variable
; PHPRC, and in the path that was defined in compile time (in that
order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably
guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
;
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from
FOO=bar.
;
; The value can be a string, a number, a PHP constant (e.g. E_ALL or
M_PI), one
; of the INI constants (On, Off, True, False, Yes, No and None) or an
expression
; (e.g. E_ALL  ~E_NOTICE), or a quoted string (foo).
;
; Expressions in the INI file are limited to bitwise operators and
parentheses:
; |bitwise OR
; bitwise AND
; ~bitwise NOT
; !boolean NOT
;
; Boolean flags can be turned on using the values 1, On, True or Yes.
; They can be turned off using the values 0, Off, False or No.
;
; An empty string can be denoted by simply not writing anything after
the equal
; sign, or by using the None keyword:
;
;  foo = ; sets foo to an empty string
;  foo = none; sets foo to an empty string
;  foo = none  ; sets foo to the string 'none'
;
; If you use constants in your value, and these constants belong to a
; dynamically loaded extension (either a PHP extension or a Zend
extension),
; you may only use these constants *after* the line that loads the
extension.
; 
;
;;;
; About this file ;
;;;
; This is the recommended, PHP 5-style version of the php.ini-dist
file.  It
; sets some non standard settings, that make PHP more efficient, more
secure,
; and encourage cleaner coding.
;
; The price is that with these settings, PHP may be incompatible with
some
; applications, and sometimes, more difficult to develop with.  Using
this
; file is warmly recommended for production sites.  As all of the
changes from
; the standard settings are thoroughly documented, you can go over each
one,
; and decide whether you want to use it or not.
;
; For general information about the php.ini file, please consult the
php.ini-dist
; file, included in your PHP distribution.
;
; This file is different from the php.ini-dist file in the fact that it
features
; different values for several directives, in order to improve
performance, while
; possibly breaking compatibility with the standard out-of-the-box

#30412 [Fbk-NoF]: Apache Segmentation Fault (11)

2004-10-31 Thread php-bugs
 ID:   30412
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mail-list at nazarenko dot net
-Status:   Feedback
+Status:   No Feedback
 Bug Type: OCI8 related
 Operating System: SuSE Linux 8.2
 PHP Version:  5.0.2
 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-10-23 11:39:01] [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-10-13 19:12:05] mail-list at nazarenko dot net

Sorry, I meant the bug #30410.



[2004-10-13 19:11:13] mail-list at nazarenko dot net

Please have a look at the bug #30412.
The person who reported it has exactly the same problem.

He confirms my experience -- the segfaults do not happen with 4.3.9 but
are present with 5.0.2



[2004-10-12 20:31:29] mail-list at nazarenko dot net

How can it be explained that I do not get those segfaults with the same
configuration and PHP 4.3.x, but get them with PHP 5.0.x ?



[2004-10-12 17:28:52] [EMAIL PROTECTED]

Looks like another pretty OCI segfault to me.
If it's true - there is nothing I can do with it.
Try to install appropriate patches for your Oracle installation.
Also you may want try it with Apache 1.3.x, there is a possibility that
OCI libs have some problems with thread safety.



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

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


#30501 [Fbk-NoF]: memory leak

2004-10-31 Thread php-bugs
 ID:   30501
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ilia at manual dot ru
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: FreeBSD 5.2.1
 PHP Version:  5.0.2
 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-10-24 14:15:37] [EMAIL PROTECTED]

Try latest 4.3.10 snapshots. 
I can't reproduce it with 4.3.x branch.



[2004-10-24 14:11:50] no at mail dot ru

Had same not only on php5, but on PHP4.3.9 also



[2004-10-21 18:55:07] wedro at gmx dot net

the same here:

linux 2.2.25
PHP 5.0.2 (cli)

FATAL:  emalloc():  Unable to allocate 37 bytes



[2004-10-20 21:41:19] ilia at manual dot ru

Memory limit was 1M for this test



[2004-10-20 20:31:26] ilia at manual dot ru

Description:

unset() does not free memory.

In the example, list() is important.

Reproduce code:
---
for($i=1;$i1000;$i++)
{
list($b['a']) = array (aaa);
unset($b['a'],$b);
}


Actual result:
--
PHP Fatal error:  Allowed memory size of 1048576 bytes exhausted (tried
to alloc
ate 16 bytes) in /tmp/tours2lite.php on line 28

Fatal error: Allowed memory size of 1048576 bytes exhausted (tried to
allocate 1
6 bytes) in /tmp/tours2lite.php on line 28





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


#30630 [Opn-Fbk]: Error message: Call to a member function on a non-object

2004-10-31 Thread derick
 ID:   30630
 Updated by:   [EMAIL PROTECTED]
 Reported By:  boccara at netvision dot net dot il
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: win 2K / apache 2.0.49
 PHP Version:  4.3.9
 New Comment:

Remove all the zend extensions from your configuration, and try again.
Only disabling them is not good enough!


Previous Comments:


[2004-10-31 21:45:26] boccara at netvision dot net dot il

function endl()
{
echo br;
}



[2004-10-31 21:23:23] boccara at netvision dot net dot il

the line 2018 in the fatal error is:

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);



[2004-10-31 21:20:10] boccara at netvision dot net dot il

dbfetch us an function created to choose a fetch according to the
database.
in our case it is MSSQL.
this function works already since 4 years.

Function dbFetch ($iResult, $tabColonne) {

  $iNbCol = 0; // Permet de recuperer une erreur ou le nombre de
colonnes
  $tabColonne = array();
  switch (SGBD) {

case ODBC:
$iNbCol = odbc_fetch_into($iResult, $tabColonne);
  break;

case MSQL:
$tabColonne = mysql_fetch_row($iResult);
if($tabColonne) $iNbCol = count($tabColonne);
  break;

case MSSQL:
$tabColonne = mssql_fetch_array($iResult);
if($tabColonne)
{
$iNbCol = count($tabColonne);
}
 break;
  }
  return $iNbCol;
}



[2004-10-31 19:04:31] boccara at netvision dot net dot il

Zend Studio Server  3.5.0
 
 Zend Server Center  3.5.0
 
 Zend Engine  1.3.0
 
 PHP  4.3.9
 
 Zend Optimizer  2.5.5
 
 Zend Debugger  3.5.2
 
 Zend Extension Manager  1.0.4 


I also made a test with the Zend Optimiser on OFF and no change
difference , still the fatal error .



[2004-10-31 18:22:50] boccara at netvision dot net dot il

Description:

Hello I have a defined a class that manage a 2 dimensions array
(table).
I have created 2 oblect of this class.
These oblect are inside a loop , a fetch from an sql query (MSSQL).
The oblects received data from the query.
Teh problem is that after a certain number of times in the loop (
always the same number of times depending to the query), I got an error
message:
Call to a member function on a non-object

when are called the function of the created object.
This is very strange, the created object seems to be deleted !!

I use Zend Studio, I use the debugger to search the bug, but there is
no syntax bug or anything else !?



Reproduce code:
---
class TotDevisParEditeur
{
var $VecEditeur = array();
var $value = array();

function GetValue($type,$editeur)
{
return  $this-VecEditeur[$editeur][$type];
}

function Display($type,$editeur)
{
echo $this-VecEditeur[$editeur][$type];
endl();
}

function AddDevis($type,$editeur,$numOfdevis)
{
$value[$type] = $this-GetValue($type,$editeur) + $numOfdevis;

$this-VecEditeur[$editeur] = $value;

$this-Display($type,$editeur);
}
}

/

$SousTotal = new TotDevisParEditeur;
$SousTotalCom = array();
$SousTotalCom['gagne'] = new TotDevisParEditeur;
$SousTotalCom['perdu'] = new TotDevisParEditeur;
$SousTotalCom['encours'] = new TotDevisParEditeur;



while (dbFetch($iTableTmp, $Col))
{
/*
in this portion of code there is no redefinition of the object !!
just value are assigned to $RefEditeur, $Gagne,...
*/

$SousTotal-AddDevis('gagne',$RefEditeur,$Gagne);
$SousTotal-AddDevis('perdu',$RefEditeur,$Perdu);
$SousTotal-AddDevis('encours',$RefEditeur,$Encours);

$SousTotalCom['gagne']-AddDevis($Gestionnaire,$RefEditeur,$Gagne);
$SousTotalCom['perdu']-AddDevis($Gestionnaire,$RefEditeur,$Perdu);
$SousTotalCom['encours']-AddDevis($Gestionnaire,$RefEditeur,$Encours);

}



Expected result:

 results .


010215---VR--
0
0
2
6 VR --
0
0
2

010215---CA2--
0
0
1
6 CA2 --
2
0
1

010215---VR--
0
0
1
6 VR --
0
0
3

008896---VR--

instead of the error it should continue 
*

Actual result:
--
last section of 

#30629 [Opn-Bgs]: @ doesn't supress notices of undefined vars

2004-10-31 Thread derick
 ID:   30629
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Bogus
 Bug Type: Variables related
 Operating System: n/a
 PHP Version:  5CVS-2004-10-31 (dev)
 New Comment:

This was never supposed to work, so no bug here.


Previous Comments:


[2004-10-31 17:00:22] [EMAIL PROTECTED]

Description:

There is a BC break in the @ operator from PHP 4 to 5.

While PHP 4 doesn't output anything with supplied script (the correct
thing), PHP 5 echoes a notice.

Reproduce code:
---
?

error_reporting(E_ALL);

function a ($var){}

a(@$abc);

?

Expected result:

nothing

Actual result:
--
Notice: Undefined variable: abc





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


#30621 [Opn-Asn]: Zip file of all pecl extensions on snaps.php.net

2004-10-31 Thread wez
 ID:   30621
 Updated by:   [EMAIL PROTECTED]
 Reported By:  auroraeosrose at hotmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: Feature/Change Request
 Operating System: *
 PHP Version:  Irrelevant
-Assigned To:  
+Assigned To:  edink


Previous Comments:


[2004-10-30 18:29:48] auroraeosrose at hotmail dot com

Description:

I use snaps all the time, I use pecl extensions a lot...it's a real
pain in the butt to have to download each pecl dll seperately.  Any
chance there can be an automatically created zip file with all the pecl
extensions so I only have to do one download?

Thanks :)






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


#30634 [Bgs-Opn]: // Doesn't completely comment out certain lines

2004-10-31 Thread tonglebeak at gmail dot com
 ID:   30634
 User updated by:  tonglebeak at gmail dot com
 Reported By:  tonglebeak at gmail dot com
-Status:   Bogus
+Status:   Open
 Bug Type: Unknown/Other Function
 Operating System: Linux
 PHP Version:  4.3.9
 New Comment:

Apparently, my report wasn't read correctly. Lemme just link you to the
output and the code:

output: http://turkeybot.info/dst.php

code: http://turkeybot.info/blah.txt


Previous Comments:


[2004-10-31 21:41:15] [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

.



[2004-10-31 21:33:47] tonglebeak at gmail dot com

Description:

For lines, with I guess certain strings or something in them, the //
will fail to completely comment out a line. Not sure how to exactly
describe it, so just go by the code I give you.

Note: the comment might wrap on this screen, but that's all 1 single
line.

Reproduce code:
---
?

//$settings=(stristr($_SERVER['HTTP_USER_AGENT'],'MSIE') ||
stristr($_SERVER['HTTP_USER_AGENT'],'Googlebot')) ? '':'?xml
version=1.0 encoding=utf-8?' .NL. '';

?


Expected result:

Nothing should occur with that line.

Actual result:
--
For some reason, ' .NL. '' ? is outputted.





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


#30594 [Opn-Bgs]: Domain socket connections fails

2004-10-31 Thread wez
 ID:   30594
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ville at walveranta dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Sockets related
 Operating System: FreeBSD 4.10-RELEASE-p3
 PHP Version:  5.0.2
 New Comment:

http://docs.php.net/en/transports.html

Use unix:// as a prefix, as has always been documented for fsockopen.


Previous Comments:


[2004-10-28 07:20:21] ville at walveranta dot org

Description:

UNIX domain socket connection to a daemon socket that is certified to
be valid, and to which connection with PHP 4.3.9 can be established
without a problem, fails.

The daemon I was testing this with was Bruce Guenter's vmailmgr
(http://vmailmgr.org/) but the same problem seemes to occur with any
valid domain socket.

PHP 5.0.2 with Apache 1.3.32 produces the error while PHP 4.3.9 with
Apache 1.3.32 works ok (PHP code tested on the same system, with
otherwise [besides the PHP version] identical configuration).

Reproduce code:
---
?php 
$sockfile = '/usr/tmp/.vmailmgrd'; 
$vmailsock = fsockopen ($sockfile, 0, $errno, $errstr, 20); 
if (!$vmailsock) die(Failed to open unix socket file at
'$sockfile'br\n Error: $errno - $errstr); 
? 


Expected result:

no output (i.e. $vmailsock is a valid resource)

Actual result:
--
Warning: fsockopen() [function.fsockopen]: unable to connect to
/usr/tmp/.vmailmgrd:0 (Failed to parse address /usr/tmp/.vmailmgrd)
in /usr/web/site31821/htdocs/testsock.php on line 4 
Failed to open unix socket file at '/usr/tmp/.vmailmgrd' 
Error: 0 - Failed to parse address /usr/tmp/.vmailmgrd





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


#30532 [Com]: strtotime - crossing daylight savings time

2004-10-31 Thread gcon820 at yahooihatespam dot com
 ID:   30532
 Comment by:   gcon820 at yahooihatespam dot com
 Reported By:  rbro at hotmail dot com
 Status:   Open
 Bug Type: Date/time related
 Operating System: Linux
 PHP Version:  4.3.9
 New Comment:

I have experienced this problem with regards to daylight savings time
as well. I print a calendar dynamically using strtotime, and on October
31, 2004 (the day of daylight savings), it printed October, December,
December, January, March, March, May, May, July, July, August, October,
instead of the months of October 2004-October 2005 consecutively. I
printed out the value of print_r(getdate(strtotime(+$offset month,
$start_date))), with $start_date being getdate(mktime())[0], and
$offset being a number between 0 and 11. For each case, the [0] value
printed out was different and correct. All other information in the
getdate() array was incorrect, however.

Hope this helps.

gcon


Previous Comments:


[2004-10-31 02:15:12] jack dot littleton at gmail dot com

I've recently experienced this same problem in the following way:

On Friday, October 29, 2004 I sent strtotime the value ('Monday'),
should have returned the data for Monday, November 1, 2004, but instead
returned Sunday, October 31, 2004.  I have never had a similar problem
with strtotime when the span of the current time to the target time did
NOT cross the daylight savings time boundary.

(Further: this was on Windows XP SP1 using Apache 2 and PHP 4.3.5)



[2004-10-22 22:32:27] rbro at hotmail dot com

Further information: The following script does give the expected
results:

?php
echo date('Y-m-d H:i:s', strtotime('+1 hour',
strtotime('2004-10-31'))).\n;
echo date('Y-m-d H:i:s', strtotime('+2 hours',
strtotime('2004-10-31'))).\n;
echo date('Y-m-d H:i:s', strtotime('+3 hours',
strtotime('2004-10-31'))).\n;
?

of 

2004-10-31 01:00:00
2004-10-31 01:00:00
2004-10-31 02:00:00

So now I believe the issue is that the following 2 statements give
different output though they should have the same output:

?php
echo strtotime('2004-10-31 +2 hours').\n;
echo strtotime('+2 hours', strtotime('2004-10-31')).\n;
?



[2004-10-22 17:33:21] rbro at hotmail dot com

Description:

In the US, Daylight Savings Time ends on October 31, 2004 at 2am where
clocks are then reset back to 1am.  I am in the Eastern time zone.  If
I run the following script where I'm adding 1 hour, 2 hours, and 3
hours to the date 2004-10-31, I'm getting different results from
including EDT in the date or not, when I thought that strtotime()
defaults to the local timezone.

Reproduce code:
---
?php
echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +1 hour')).\n;
echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +2 hours')).\n;
echo date('Y-m-d H:i:s', strtotime('2004-10-31 EDT +3 hours')).\n;

echo \n;

echo date('Y-m-d H:i:s', strtotime('2004-10-31 +1 hour')).\n;
echo date('Y-m-d H:i:s', strtotime('2004-10-31 +2 hours')).\n;
echo date('Y-m-d H:i:s', strtotime('2004-10-31 +3 hours')).\n;
?


Expected result:

2004-10-31 01:00:00
2004-10-31 01:00:00
2004-10-31 02:00:00

2004-10-31 01:00:00
2004-10-31 01:00:00
2004-10-31 02:00:00

Actual result:
--
2004-10-31 01:00:00
2004-10-31 01:00:00
2004-10-31 02:00:00

2004-10-31 01:00:00
2004-10-31 02:00:00
2004-10-31 03:00:00






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


#30634 [Opn-Bgs]: // Doesn't completely comment out certain lines

2004-10-31 Thread helly
 ID:   30634
 Updated by:   [EMAIL PROTECTED]
 Reported By:  tonglebeak at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Unknown/Other Function
-Operating System: Linux
+Operating System: *
-PHP Version:  4.3.9
+PHP Version:  *
 New Comment:

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

Please read the documentation and don't reopen this bug. Fix your code.
Your comment contains '?'


Previous Comments:


[2004-11-01 03:12:07] tonglebeak at gmail dot com

Apparently, my report wasn't read correctly. Lemme just link you to the
output and the code:

output: http://turkeybot.info/dst.php

code: http://turkeybot.info/blah.txt



[2004-10-31 21:41:15] [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

.



[2004-10-31 21:33:47] tonglebeak at gmail dot com

Description:

For lines, with I guess certain strings or something in them, the //
will fail to completely comment out a line. Not sure how to exactly
describe it, so just go by the code I give you.

Note: the comment might wrap on this screen, but that's all 1 single
line.

Reproduce code:
---
?

//$settings=(stristr($_SERVER['HTTP_USER_AGENT'],'MSIE') ||
stristr($_SERVER['HTTP_USER_AGENT'],'Googlebot')) ? '':'?xml
version=1.0 encoding=utf-8?' .NL. '';

?


Expected result:

Nothing should occur with that line.

Actual result:
--
For some reason, ' .NL. '' ? is outputted.





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


#30639 [NEW]: segfault at Zend/zend_alloc.c:241

2004-10-31 Thread robbat2 at gentoo dot org
From: robbat2 at gentoo dot org
Operating system: Gentoo Linux
PHP version:  4.3.9
PHP Bug Type: Reproducible crash
Bug description:  segfault at Zend/zend_alloc.c:241

Description:

During PHP install, the PHP cli binary crashes when doing the PEAR
install:

 Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category
dev-php
Installing PHP CLI binary:   
/var/tmp/portage/php-4.3.9/image//usr/bin/
Installing PHP CLI man page: 
/var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing PEAR environment: 
/var/tmp/portage/php-4.3.9/image//usr/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2


Reproduce code:
---
make INSTALL_ROOT=/var/tmp/portage/php-4.3.9/image/ install
install-modules install-programs

Exact configure line was: ./configure  --prefix=/usr
--host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib
--disable-cgi --enable-cli --with-ndbm=/usr --with-db4=/usr
--with-mcrypt=/usr --with-mhash=/usr --without-interbase --without-ming
--without-swf --without-sybase --with-gdbm=/usr --without-fdftk
--without-java --with-mcal=/usr --without-unixODBC --without-pgsql
--with-snmp=/usr --enable-ucd-snmp-hack --without-gmp --without-mssql
--with-pdflib=/usr --with-gd --enable-gd-native-ttf --with-png=/usr
--with-png-dir=/usr --with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif
--with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr
--with-mysql-sock=/var/run/mysqld/mysqld.sock --with-freetype-dir=/usr
--with-ttf=/usr --with-t1lib=/usr --without-gettext --without-qtdom
--with-pspell=/usr --with-openssl=/usr --with-imap=/usr --without-ldap
--with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr
--without-kerberos --with-pam --disable-memory-limit --enable-ipv6
--without-yaz --disable-debug --with-curlwrappers --with-curl=/usr
--enable-dbx --with-imap-ssl --with-zlib=/usr --with-zlib-dir=/usr
--with-sablot=/usr --enable-xslt --with-xslt-sablot --with-xmlrpc
--enable-wddx --with-xml --enable-mbstring=all --enable-mbregex
--with-bz2=/usr --with-crack=/usr --with-cdb --enable-pcntl
--enable-bcmath --enable-calendar --enable-dbase --enable-filepro
--enable-ftp --with-mime-magic=/usr/share/misc/file/magic.mime
--enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg
--with-iconv --enable-shmop --enable-dio --enable-yp --with-readline=/usr
--with-ncurses=/usr --enable-inline-optimization --enable-track-vars
--enable-trans-sid --enable-versioning
--with-config-file-path=/etc/php/cli-php4

and CFLAGS were only '-g', but I can reproduce this with a very stripped
set of configure flags as well.

php.ini is the stock php.ini-dist.

Expected result:

PHP should install fine.

Actual result:
--
Backtrace from coredump:

#0  0x0824d605 in _efree (ptr=0x0)
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_alloc.c:241
241 CALCULATE_REAL_SIZE_AND_CACHE_INDEX(p-size);
(gdb) bt
#0  0x0824d605 in _efree (ptr=0x0)
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_alloc.c:241
#1  0x082623a8 in zend_hash_destroy (ht=0x850762c)
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c:563
#2  0x08253d62 in shutdown_executor ()
at
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_execute_API.c:186
#3  0x0825ceb5 in zend_deactivate ()
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend.c:667
#4  0x0822d07c in php_request_shutdown (dummy=0x0)
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/main/main.c:996
#5  0x0827dd58 in main (argc=12, argv=0xbfffd5b4)
at /var/tmp/portage/php-4.3.9/work/php-4.3.9/sapi/cli/php_cli.c:873


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

#30640 [NEW]: PHP can't compile with imap that enabled Kerberos by heimdal

2004-10-31 Thread dshen19 at yahoo dot com
From: dshen19 at yahoo dot com
Operating system: Linux -- Gentoo
PHP version:  4.3.9
PHP Bug Type: Compile Failure
Bug description:  PHP can't compile with imap that enabled Kerberos by heimdal

Description:

php's configure can't finish it configuring job and stop prematruely if it
compile with imap library provided by UW-imap c-client-2004a or
c-client-2002a and Kerberos lib from heimdal. 

Reproduce code:
---
./configure --with-imap


Actual result:
--
configure can't finish it configuring job and stop as:

checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

config.log:

configure:41323: gcc -o conftest -g -O2   conftest.c -lc-client   -lcrypt
-lpam -lresolv -lm -ldl -lnsl  15
/tmp/ccoAvyPa.o(.text+0xfa): In function `main':
/var/tmp/php-4.3.9/configure:41317: undefined reference to
`auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
  auth_gssapi_valid();
  return 0;
}



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


#30639 [Opn]: segfault at Zend/zend_alloc.c:241

2004-10-31 Thread robbat2 at gentoo dot org
 ID:   30639
 User updated by:  robbat2 at gentoo dot org
 Reported By:  robbat2 at gentoo dot org
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: Gentoo Linux
 PHP Version:  4.3.9
 New Comment:

Some more output, configured with :
./configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --disable-cgi --enable-cli
--without-ndbm --without-db4 --without-mcrypt --without-mhash
--without-interbase --without-ming --without-swf --without-sybase
--without-gdbm --without-fdftk --without-java --without-mcal
--without-unixODBC --without-pgsql --without-snmp --without-gmp
--without-mssql --without-pdflib --without-gd --disable-gd-native-ttf
--without-png --without-jpeg --disable-exif --without-tiff
--without-mysql --without-freetype-dir --without-ttf --without-t1lib
--without-gettext --without-qtdom --without-pspell --without-openssl
--without-imap --without-ldap --with-dom=/usr --without-dom-xslt
--without-dom-exslt --without-kerberos --without-pam
--disable-memory-limit --disable-ipv6 --without-yaz
--without-curlwrappers --without-curl --disable-dbx --without-imap-ssl
--with-zlib --with-sablot=/usr --disable-xslt --without-xslt-sablot
--without-xmlrpc --disable-wddx --without-xml --disable-mbstring
--disable-mbregex --without-bz2 --without-crack --without-cdb
--disable-pcntl --disable-bcmath --disable-calendar --disable-dbase
--disable-filepro --disable-ftp --without-mime-magic --disable-sockets
--disable-sysvsem --disable-sysvshm --disable-sysvmsg --without-iconv
--disable-shmop --disable-dio --disable-yp --without-readline
--without-ncurses --disable-inline-optimization --enable-versioning
--with-config-file-path=/etc/php/cli-php4 --enable-debug

I get:
 Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category
dev-php
Installing PHP CLI binary:   
/var/tmp/portage/php-4.3.9/image//usr/bin/
Installing PHP CLI man page: 
/var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing PEAR environment: 
/var/tmp/portage/php-4.3.9/image//usr/lib/php/
Could not startup.
[Sun Oct 31 20:05:19 2004]  Script: 
'/var/tmp/portage/php-4.3.9/work/php-4.3.9/pear/install-pear.php'
---
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_ptr_stack.c(77) :
Block 0x081FD808 status:
Beginning:  Overrun (magic=0x081FDDC8, expected=0x7312F8DC)
  End:  Unknown
---
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(547) :
ht=0x081ba8cc is already destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(762) :
ht=0x081bb7a0 is being destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(673) :
ht=0x081ba9e8 is already destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(108) :
Bailed out without a bailout address!
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

binutils:
GNU ld version 2.15.90.0.1.1 20040303

gcc:
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info
--enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
--with-system-zlib --enable-languages=c,c++,f77 --enable-threads=posix
--enable-long-long --disable-checking --disable-libunwind-exceptions
--enable-cstdio=stdio --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --disable-multilib --enable-__cxa_atexit
--enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6)


Previous Comments:


[2004-11-01 03:41:08] robbat2 at gentoo dot org

Description:

During PHP install, the PHP cli binary crashes when doing the PEAR
install:

 Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category
dev-php
Installing PHP CLI binary:   
/var/tmp/portage/php-4.3.9/image//usr/bin/
Installing PHP CLI man page: 
/var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing PEAR environment: 
/var/tmp/portage/php-4.3.9/image//usr/lib/php/
make[1]: *** [install-pear-installer] Segmentation fault (core dumped)
make: *** [install-pear] Error 2


Reproduce code:
---
make INSTALL_ROOT=/var/tmp/portage/php-4.3.9/image/ install
install-modules install-programs

Exact configure line was: ./configure  --prefix=/usr
--host=i686-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share 

#30641 [NEW]: Compile error: error: symbol zend_error is used but not defined

2004-10-31 Thread hakan at lisas dot de
From: hakan at lisas dot de
Operating system: Solaris 9
PHP version:  5CVS-2004-11-01 (dev)
PHP Bug Type: Compile Failure
Bug description:  Compile error: error: symbol zend_error is used but not defined

Description:

Compile of latest HEAD fails with:
/bin/sh /usr/local/php-src/libtool --silent --preserve-dup-deps
--mode=compile gcc  -IZend/ -I/usr/local/php-src/Zend/ -DPHP_ATOM_INC
-I/usr/local/php-src/include -I/usr/local/php-src/main
-I/usr/local/php-src -I/usr/local/php-src/Zend
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/mysql/include/mysql
-I/usr/local/pgsql/include  -D_POSIX_PTHREAD_SEMANTICS
-I/usr/local/php-src/TSRM  -g -O2  -prefer-pic -c
/usr/local/php-src/Zend/zend_execute.c -o Zend/zend_execute.lo
/usr/ccs/bin/as: /var/tmp//ccOlcxja.s: error: symbol zend_error is
used but not defined
/usr/ccs/bin/as: /var/tmp//ccOlcxja.s: internal error:
evaluate_symbol_expression(): op 20?
make: *** [Zend/zend_execute.lo] Error 1


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


#30642 [NEW]: static variables not inherited by other classes when extended

2004-10-31 Thread keith dot ward at gmail dot com
From: keith dot ward at gmail dot com
Operating system: Debian Linux r3 unstable
PHP version:  5CVS-2004-11-01 (dev)
PHP Bug Type: Class/Object related
Bug description:  static variables not inherited by other classes when extended

Description:

When using extend to extend a class . Static variables are not  inherited
.

Reproduce code:
---
class a
{
public static $myvar;
public function __construct()
{
$this-myvar = '1';
echo ' Set myvar to 1 ... ' . \n;
var_dump($this);
}
}

$a =  new a();
class b extends a
{
function __construct()
{
echo 'DUmping from class b' . \n;
var_dump($this);
}
}
$a = new b();
?

Expected result:

 Set myvar to 1 ... 
object(a)#1 (1) {
  [myvar]=
  string(1) 1
}
Dumping from class b
object(b)#2 (1) {
  [myvar]=
  string(1) 1
}


Actual result:
--
 Set myvar to 1 ... 
object(a)#1 (1) {
  [myvar]=
  string(1) 1
}
Dumping from class b
object(b)#2 (0) {
}


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


#30640 [Opn]: PHP can't compile with imap that enabled Kerberos by heimdal

2004-10-31 Thread dshen19 at yahoo dot com
 ID:   30640
 User updated by:  dshen19 at yahoo dot com
 Reported By:  dshen19 at yahoo dot com
 Status:   Open
 Bug Type: Compile Failure
 Operating System: Linux -- Gentoo
 PHP Version:  4.3.9
 New Comment:

I remade the c-client-2004a and put it into /var/tmp/imap 

Reproduce code:
---
./configure --with-imap=/var/tmp/imap --with-kerberos=/usr
--with-imap-ssl=/usr

Actual result:
--
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.


config.log:
configure:41193: checking whether SSL libraries are needed for
c-client
configure:41323: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt
-lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err 15
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
  auth_gssapi_valid();
  return 0;
}

configure:41349: checking whether IMAP works
configure:41382: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt
-lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err 15
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41357 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char mail_newbody();
int main() {
  mail_newbody();
  return 0;
}


Previous Comments:


[2004-11-01 04:07:39] dshen19 at yahoo dot com

Description:

php's configure can't finish it configuring job and stop prematruely if
it compile with imap library provided by UW-imap c-client-2004a or
c-client-2002a and Kerberos lib from heimdal. 

Reproduce code:
---
./configure --with-imap


Actual result:
--
configure can't finish it configuring job and stop as:

checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

config.log:

configure:41323: gcc -o conftest -g -O2   conftest.c -lc-client  
-lcrypt -lpam -lresolv -lm -ldl -lnsl  15
/tmp/ccoAvyPa.o(.text+0xfa): In function `main':
/var/tmp/php-4.3.9/configure:41317: undefined reference to
`auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
  auth_gssapi_valid();
  return 0;
}







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


#30609 [Com]: cURL functions bypass open_basedir

2004-10-31 Thread say at no dot to dot spam
 ID:   30609
 Comment by:   say at no dot to dot spam
 Reported By:  guillaume dot maes at celeonet dot fr
 Status:   Open
 Bug Type: cURL related
 Operating System: Linux
 PHP Version:  4.3.9
 New Comment:

any solution to this? other then disabling curl


Previous Comments:


[2004-10-29 10:47:07] guillaume dot maes at celeonet dot fr

Sorry for the double post. My browser has crashed at this moment of my
submit



[2004-10-29 10:43:45] [EMAIL PROTECTED]

Sorry, this one should be open =)
I do think it should be fixed and no, this is not a cURL problem.



[2004-10-29 10:38:02] [EMAIL PROTECTED]

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.

.



[2004-10-29 10:21:17] guillaume dot maes at celeonet dot fr

Description:

PHP cURL functions bypass open_basedir
protection, so users can navigate through
filesystem.

For example, setting open_basedir in php.ini to
/var/www/html anybody can retrieve /etc/parla
using cURL functions

This vulnerability has been discovered wednesday
:http://www.securitytrap.com/mail/bugtraq/2004/Oct/0287.html





Reproduce code:
---
?php
$ch = curl_init(file:///etc/parla);
$file=curl_exec($ch);
echo $file
? 

Expected result:

The execution of the file /etc/parla is not allowed because the value
of openbase_dir restriction is /var/www/html.

Actual result:
--
The file /etc/parla is executed. 

If /etc/parla contents :

bodyhtml Test of vulnerability /html/body

The execution of this code with cURL functions showns the message.





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


#30643 [NEW]: about php pdo

2004-10-31 Thread sayeeram82 at yahoo dot com
From: sayeeram82 at yahoo dot com
Operating system: windows xp
PHP version:  5.0.2
PHP Bug Type: Unknown/Other Function
Bug description:  about php pdo

Description:

hello,
iam developing certain programs with php(version 5.0.2) which actually
need interface with my database(oracle 8.1.5) which i does with PDO.Iam
using wamp5 php5 apache1.3.31 version 1.3 as my webserver.Here i need to
insert and get some value from database through program. My current
problem is to insert atleast 2 or more rows at a time with bingvariables
but iam getting some bug so please give some idea for it or solve my error
please.

Reproduce code:
---
$stmt = $dbh-prepare(insert into test (name, value) values (:name,
:value)); 
$stmt-bindParam(':name', $name, PDO_PARAM_STR, 64); 
$stmt-bindParam(':value', $value, PDO_PARAM_STR, 64); $name = 'Foo'; 
$value = 'Bar'; 
$stmt-execute() or die(no insert);
// and another 
$name = 'Fu'; 
$value = 'Ba'; 
$stmt-execute() or die(no insert); 
$stmt = null;

Expected result:

i Expect both the foo and fu values to be inserted into my database table
test.

Actual result:
--
but actually it is not inserting anything and i get a microsoft dialogue
report sending error message relating a problem with apache.

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


#30613 [Opn-Csd]: proxy problem in Curl library

2004-10-31 Thread iliaa
 ID:   30613
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sergey_s_m at mail dot ru
-Status:   Open
+Status:   Closed
 Bug Type: cURL related
 Operating System: Suse9.0
 PHP Version:  5.0.1
 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-10-29 17:15:41] sergey_s_m at mail dot ru

Description:

Infinite looping when I tried to get page through proxy  
using curl library and option CURLOPT_FOLLOWLOCATION.  
Without this option all works OK. This bug I saw under 
curl-7.10.5, curl-7.11.2 curl-7.12.2 
  

Reproduce code:
---
$proxy=64.56.118.178:1080;
$addr = http://www.yandex.ru/;;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $addr);
curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_HTTPGET,1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_HEADER, FALSE); 
curl_setopt($ch, CURLOPT_VERBOSE, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 3);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
   $parse = curl_exec($ch);
print(OK);


Expected result:

I've expected printing OK 

Actual result:
--
firstly I sow nothing. 
when I became use curl_setopt($ch, CURLOPT_VERBOSE, TRUE) 
I sow lopping next: 
64.56.118.178:1080 
* About to connect() to 64.56.118.178 port 1080 
*   Trying 64.56.118.178... * connected 
* Connected to 64.56.118.178 (64.56.118.178) port 1080 
 GET http://www.yandex.ru/ HTTP/1.1 
Host: www.yandex.ru 
Pragma: no-cache 
Accept: */* 
 
 HTTP/1.0 302 Found 
 Connection: Close 
 Location: http://no-full-proxy-allowed/ 
* Closing connection #0 
* Issue another request to this URL: 'http://
no-full-proxy-allowed/' 
* About to connect() to 64.56.118.178 port 1080 
*   Trying 64.56.118.178... * connected 
* Connected to 64.56.118.178 (64.56.118.178) port 1080 
 GET http://no-full-proxy-allowed/ HTTP/1.1 
Host: no-full-proxy-allowed 
Pragma: no-cache 
Accept: */* 
Notice: when I use $addr = http://www.yandex.ru;; instead 
$addr = http://www.yandex.ru/;; All works OK! 





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


#30638 [Opn-Asn]: localeconv returns wrong LC_NUMERIC settings

2004-10-31 Thread derick
 ID:   30638
 Updated by:   [EMAIL PROTECTED]
 Reported By:  k at ailis dot de
-Status:   Open
+Status:   Assigned
 Bug Type: *Languages/Translation
 Operating System: Linux
 PHP Version:  5.0.2
-Assigned To:  
+Assigned To:  derick
 New Comment:

I think this patch is  abit too much magic myself. We should reconsider
the setting of LS_NUMERIC to C when we call setlocale(). I'll
investigate.


Previous Comments:


[2004-11-01 01:14:53] k at ailis dot de

Description:

If locale is switched to a european language (like de_DE) then
localeconv returns wrong settings for decimal_point and thousands_sep
while other data (like mon_decimal_point and mon_thousands_sep) is
correct.

This bug was introduced by this patch for ext/standard/string.c:

$Id: string.c,v 1.320 2002/10/10 16:29:35 iliaa Exp $

This patch modified setlocale() so it resets the LC_NUMERIC locale to
C. This was a bad enough but there were reasons I agree to.

Here is a patch which corrects this bug by remembering the LC_NUMERIC
locale, setting this remembered locale before calling localeconv_r()
and resetting it to C after the call. In that way localeconv() returns
the correct data and PHP can still stick to LC_NUMERIC=C:

diff -Nur php-src.orig/ext/standard/basic_functions.c
php-src/ext/standard/basic_functions.c
--- php-src.orig/ext/standard/basic_functions.c 2004-10-09
00:19:03.0 +0200
+++ php-src/ext/standard/basic_functions.c  2004-11-01
00:36:48.0 +0100
@@ -1156,6 +1156,7 @@
BG(strtok_string) = NULL;
BG(strtok_zval) = NULL;
BG(locale_string) = NULL;
+   BG(numeric_locale_string) = NULL;
BG(user_compare_func_name) = NULL;
BG(array_walk_func_name) = NULL;
BG(page_uid) = -1;
@@ -1212,7 +1213,8 @@
setlocale(LC_CTYPE, );
}
STR_FREE(BG(locale_string));
-
+STR_FREE(BG(numeric_locale_string));
+
if (FG(stream_wrappers)) {
zend_hash_destroy(FG(stream_wrappers));
efree(FG(stream_wrappers));
diff -Nur php-src.orig/ext/standard/basic_functions.h
php-src/ext/standard/basic_functions.h
--- php-src.orig/ext/standard/basic_functions.h 2004-08-07
17:59:59.0 +0200
+++ php-src/ext/standard/basic_functions.h  2004-11-01
00:30:18.0 +0100
@@ -155,6 +155,7 @@
zval *strtok_zval;
char *strtok_string;
char *locale_string;
+   char *numeric_locale_string;
char *strtok_last;
char strtok_table[256];
ulong strtok_len;
diff -Nur php-src.orig/ext/standard/string.c
php-src/ext/standard/string.c
--- php-src.orig/ext/standard/string.c  2004-10-21 00:44:43.0
+0200
+++ php-src/ext/standard/string.c   2004-11-01 00:36:01.0 +0100
@@ -3799,6 +3799,10 @@

EG(float_separator)[0] = (lc.decimal_point)[0];
 
+/* Remember numeric locale */
+STR_FREE(BG(numeric_locale_string));
+BG(numeric_locale_string) = estrdup(loc);
+
if ((lc.decimal_point)[0] != '.') {
/* set locale back to C */
setlocale(LC_NUMERIC, C); 
@@ -4351,7 +4355,18 @@
{
struct lconv currlocdata;
 
+/* Remember numeric locale */
+if (BG(numeric_locale_string)) {
+setlocale(LC_NUMERIC, BG(numeric_locale_string));
+}
+
+/* Fetch formatting information */
localeconv_r( currlocdata );
+   
+   /* Reset numeric locale to C */
+   if (BG(numeric_locale_string)) {
+   setlocale(LC_NUMERIC, C);
+   }

/* Grab the grouping data out of the array */
len = strlen(currlocdata.grouping);


Reproduce code:
---
?php

setlocale(LC_ALL, 'de_DE');
$lc = localeconv();
printf(decimal_point: %s\n, $lc['decimal_point']);
printf(thousands_sep: %s\n, $lc['thousands_sep']);

?


Expected result:

decimal_point: ,
thousands_sep: .


Actual result:
--
decimal_point: .
thousands_sep: 






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


#30639 [Opn-Bgs]: segfault at Zend/zend_alloc.c:241

2004-10-31 Thread derick
 ID:   30639
 Updated by:   [EMAIL PROTECTED]
 Reported By:  robbat2 at gentoo dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: Gentoo Linux
 PHP Version:  4.3.9
 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.

Duplicate of #30637


Previous Comments:


[2004-11-01 04:07:38] robbat2 at gentoo dot org

Some more output, configured with :
./configure --prefix=/usr --host=i686-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --disable-cgi --enable-cli
--without-ndbm --without-db4 --without-mcrypt --without-mhash
--without-interbase --without-ming --without-swf --without-sybase
--without-gdbm --without-fdftk --without-java --without-mcal
--without-unixODBC --without-pgsql --without-snmp --without-gmp
--without-mssql --without-pdflib --without-gd --disable-gd-native-ttf
--without-png --without-jpeg --disable-exif --without-tiff
--without-mysql --without-freetype-dir --without-ttf --without-t1lib
--without-gettext --without-qtdom --without-pspell --without-openssl
--without-imap --without-ldap --with-dom=/usr --without-dom-xslt
--without-dom-exslt --without-kerberos --without-pam
--disable-memory-limit --disable-ipv6 --without-yaz
--without-curlwrappers --without-curl --disable-dbx --without-imap-ssl
--with-zlib --with-sablot=/usr --disable-xslt --without-xslt-sablot
--without-xmlrpc --disable-wddx --without-xml --disable-mbstring
--disable-mbregex --without-bz2 --without-crack --without-cdb
--disable-pcntl --disable-bcmath --disable-calendar --disable-dbase
--disable-filepro --disable-ftp --without-mime-magic --disable-sockets
--disable-sysvsem --disable-sysvshm --disable-sysvmsg --without-iconv
--disable-shmop --disable-dio --disable-yp --without-readline
--without-ncurses --disable-inline-optimization --enable-versioning
--with-config-file-path=/etc/php/cli-php4 --enable-debug

I get:
 Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category
dev-php
Installing PHP CLI binary:   
/var/tmp/portage/php-4.3.9/image//usr/bin/
Installing PHP CLI man page: 
/var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing PEAR environment: 
/var/tmp/portage/php-4.3.9/image//usr/lib/php/
Could not startup.
[Sun Oct 31 20:05:19 2004]  Script: 
'/var/tmp/portage/php-4.3.9/work/php-4.3.9/pear/install-pear.php'
---
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_ptr_stack.c(77) :
Block 0x081FD808 status:
Beginning:  Overrun (magic=0x081FDDC8, expected=0x7312F8DC)
  End:  Unknown
---
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(547) :
ht=0x081ba8cc is already destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(762) :
ht=0x081bb7a0 is being destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(673) :
ht=0x081ba9e8 is already destroyed
/var/tmp/portage/php-4.3.9/work/php-4.3.9/Zend/zend_hash.c(108) :
Bailed out without a bailout address!
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2

binutils:
GNU ld version 2.15.90.0.1.1 20040303

gcc:
Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure
--prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.3
--includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info
--enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
--with-system-zlib --enable-languages=c,c++,f77 --enable-threads=posix
--enable-long-long --disable-checking --disable-libunwind-exceptions
--enable-cstdio=stdio --enable-version-specific-runtime-libs
--with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/include/g++-v3
--with-local-prefix=/usr/local --enable-shared --enable-nls
--without-included-gettext --disable-multilib --enable-__cxa_atexit
--enable-clocale=generic
Thread model: posix
gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2,
pie-8.7.6)



[2004-11-01 03:41:08] robbat2 at gentoo dot org

Description:

During PHP install, the PHP cli binary crashes when doing the PEAR
install:

 Install php-4.3.9 into /var/tmp/portage/php-4.3.9/image/ category
dev-php
Installing PHP CLI binary:   
/var/tmp/portage/php-4.3.9/image//usr/bin/
Installing PHP CLI man page: 
/var/tmp/portage/php-4.3.9/image//usr/share/man/man1/
Installing PEAR environment: 

#30640 [Opn-Bgs]: PHP can't compile with imap that enabled Kerberos by heimdal

2004-10-31 Thread derick
 ID:   30640
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dshen19 at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Compile Failure
 Operating System: Linux -- Gentoo
 PHP Version:  4.3.9
 New Comment:

You're just missing libraries on your system, install the correct ones
and it will work fine.


Previous Comments:


[2004-11-01 05:06:35] dshen19 at yahoo dot com

I remade the c-client-2004a and put it into /var/tmp/imap 

Reproduce code:
---
./configure --with-imap=/var/tmp/imap --with-kerberos=/usr
--with-imap-ssl=/usr

Actual result:
--
checking for IMAP support... yes
checking for pam_start in -lpam... (cached) yes
checking for crypt in -lcrypt... (cached) yes
checking whether SSL libraries are needed for c-client... /usr/lib
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.


config.log:
configure:41193: checking whether SSL libraries are needed for
c-client
configure:41323: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt
-lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err 15
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
  auth_gssapi_valid();
  return 0;
}

configure:41349: checking whether IMAP works
configure:41382: gcc -o conftest -g -O2   -Wl,-rpath,/var/tmp/imap/lib
-L/var/tmp/imap/lib conftest.c -lc-client  -lssl -lcrypto  -lcrypt
-lpam -lresolv -lm -ldl -lnsl  -lgssapi_krb5 -lkrb5 -lk5crypto
-lcom_err 15
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld:
cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 41357 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char mail_newbody();
int main() {
  mail_newbody();
  return 0;
}



[2004-11-01 04:07:39] dshen19 at yahoo dot com

Description:

php's configure can't finish it configuring job and stop prematruely if
it compile with imap library provided by UW-imap c-client-2004a or
c-client-2002a and Kerberos lib from heimdal. 

Reproduce code:
---
./configure --with-imap


Actual result:
--
configure can't finish it configuring job and stop as:

checking for IMAP support... yes
checking for pam_start in -lpam... yes
checking for crypt in -lcrypt... yes
checking whether SSL libraries are needed for c-client... no
checking whether IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

config.log:

configure:41323: gcc -o conftest -g -O2   conftest.c -lc-client  
-lcrypt -lpam -lresolv -lm -ldl -lnsl  15
/tmp/ccoAvyPa.o(.text+0xfa): In function `main':
/var/tmp/php-4.3.9/configure:41317: undefined reference to
`auth_gssapi_valid'
collect2: ld returned 1 exit status
configure: failed program was:
#line 41298 configure
#include confdefs.h

void mm_log(void){}
void mm_dlog(void){}
void mm_flags(void){}
void mm_fatal(void){}
void mm_critical(void){}
void mm_nocritical(void){}
void mm_notify(void){}
void mm_login(void){}
void mm_diskerror(void){}
void mm_status(void){}
void mm_lsub(void){}
void mm_list(void){}
void mm_exists(void){}
void mm_searched(void){}
void mm_expunged(void){}
char auth_gssapi_valid();
int main() {
  auth_gssapi_valid();
  return 0;
}







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


#30609 [Opn-WFx]: cURL functions bypass open_basedir

2004-10-31 Thread derick
 ID:   30609
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guillaume dot maes at celeonet dot fr
-Status:   Open
+Status:   Wont fix
 Bug Type: cURL related
 Operating System: Linux
 PHP Version:  4.3.9
 New Comment:

Yes, you need to configure/install curl not to allow access to the
local filesystem. It has a nice configure option for that when you are
installing it.


Previous Comments:


[2004-11-01 05:14:24] say at no dot to dot spam

any solution to this? other then disabling curl



[2004-10-29 10:47:07] guillaume dot maes at celeonet dot fr

Sorry for the double post. My browser has crashed at this moment of my
submit



[2004-10-29 10:43:45] [EMAIL PROTECTED]

Sorry, this one should be open =)
I do think it should be fixed and no, this is not a cURL problem.



[2004-10-29 10:38:02] [EMAIL PROTECTED]

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.

.



[2004-10-29 10:21:17] guillaume dot maes at celeonet dot fr

Description:

PHP cURL functions bypass open_basedir
protection, so users can navigate through
filesystem.

For example, setting open_basedir in php.ini to
/var/www/html anybody can retrieve /etc/parla
using cURL functions

This vulnerability has been discovered wednesday
:http://www.securitytrap.com/mail/bugtraq/2004/Oct/0287.html





Reproduce code:
---
?php
$ch = curl_init(file:///etc/parla);
$file=curl_exec($ch);
echo $file
? 

Expected result:

The execution of the file /etc/parla is not allowed because the value
of openbase_dir restriction is /var/www/html.

Actual result:
--
The file /etc/parla is executed. 

If /etc/parla contents :

bodyhtml Test of vulnerability /html/body

The execution of this code with cURL functions showns the message.





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


#30643 [Opn-Fbk]: about php pdo

2004-10-31 Thread derick
 ID:   30643
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sayeeram82 at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Unknown/Other Function
 Operating System: windows xp
 PHP Version:  5.0.2
 New Comment:

Please try using this CVS snapshot:

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


Previous Comments:


[2004-11-01 05:26:57] sayeeram82 at yahoo dot com

Description:

hello,
iam developing certain programs with php(version 5.0.2) which
actually need interface with my database(oracle 8.1.5) which i does
with PDO.Iam using wamp5 php5 apache1.3.31 version 1.3 as my
webserver.Here i need to insert and get some value from database
through program. My current problem is to insert atleast 2 or more rows
at a time with bingvariables but iam getting some bug so please give
some idea for it or solve my error please.

Reproduce code:
---
$stmt = $dbh-prepare(insert into test (name, value) values (:name,
:value)); 
$stmt-bindParam(':name', $name, PDO_PARAM_STR, 64); 
$stmt-bindParam(':value', $value, PDO_PARAM_STR, 64); $name = 'Foo'; 
$value = 'Bar'; 
$stmt-execute() or die(no insert);
// and another 
$name = 'Fu'; 
$value = 'Ba'; 
$stmt-execute() or die(no insert); 
$stmt = null;

Expected result:

i Expect both the foo and fu values to be inserted into my database
table test.

Actual result:
--
but actually it is not inserting anything and i get a microsoft
dialogue report sending error message relating a problem with apache.





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


#30644 [NEW]: same strlen of mssql filed value

2004-10-31 Thread chenxi at shine dot com dot cn
From: chenxi at shine dot com dot cn
Operating system: LINUX RedHat9
PHP version:  5.0.2
PHP Bug Type: MSSQL related
Bug description:  same strlen of mssql filed value

Description:

Select data from mssql, and get length of the filed value by using
function strlen(), but i got the same output '40', following is field info
and smaple code.



Reproduce code:
---
name utName (char) 40

$dbh = @mssql_connect($tnserver_ipaddr, $tnserver_user,
$tnserver_passwd);
if ($dbh) {
$room_num = GetRoomNum();
mssql_select_db(this);
$sql = SELECT * FROM [dbo].[HotelFolioView] WHERE (RoomNo =
'$room_num');
$ret = mssql_query($sql);   

while ($row = mysql_fetch_array($ret)) {
print strlen($row['name']).'\r\n';
}

mssql_free_result($ret);
}

Expected result:

4
7
12
8

different length

Actual result:
--
40
40
40
40

all same '40', this is length of filed 'name'

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


#30644 [Opn-Bgs]: same strlen of mssql filed value

2004-10-31 Thread derick
 ID:   30644
 Updated by:   [EMAIL PROTECTED]
 Reported By:  chenxi at shine dot com dot cn
-Status:   Open
+Status:   Bogus
 Bug Type: MSSQL related
 Operating System: LINUX RedHat9
 PHP Version:  5.0.2
 New Comment:

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

.


Previous Comments:


[2004-11-01 08:10:39] chenxi at shine dot com dot cn

Description:

Select data from mssql, and get length of the filed value by using
function strlen(), but i got the same output '40', following is field
info and smaple code.



Reproduce code:
---
name utName (char) 40

$dbh = @mssql_connect($tnserver_ipaddr, $tnserver_user,
$tnserver_passwd);
if ($dbh) {
$room_num = GetRoomNum();
mssql_select_db(this);
$sql = SELECT * FROM [dbo].[HotelFolioView] WHERE (RoomNo =
'$room_num');
$ret = mssql_query($sql);   

while ($row = mysql_fetch_array($ret)) {
print strlen($row['name']).'\r\n';
}

mssql_free_result($ret);
}

Expected result:

4
7
12
8

different length

Actual result:
--
40
40
40
40

all same '40', this is length of filed 'name'





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