#32069 [Opn->Bgs]: Fails when compiling violite.c

2005-02-27 Thread sniper
 ID:   32069
 Updated by:   [EMAIL PROTECTED]
 Reported By:  leonardo1_rw at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: MySQL related
 Operating System: linux red hat 7
 PHP Version:  4.3.10
 New Comment:

http://gcc.gnu.org/gcc-2.96.html



Previous Comments:


[2005-02-25 20:35:10] leonardo1_rw at yahoo dot com

sorry...
[EMAIL PROTECTED] local]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 2731 (Red Hat Linux 7.1 2.96-81)



[2005-02-24 23:54:20] [EMAIL PROTECTED]

`gcc -v` please.



[2005-02-24 23:11:43] leonardo1_rw at yahoo dot com

[EMAIL PROTECTED] leo]$ make -v
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
Built for i386-redhat-linux-gnu



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

What gcc version are you using..?




[2005-02-23 19:01:20] leonardo1_rw at yahoo dot com

In file included from
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:12,
 from
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:17:
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: `struct
in_addr'
declared inside parameter list
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: its
scope is only
 this definition or declaration, which is probably not what you want.
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning:
parameter has inc
omplete type
In file included from
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:17:
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:94: warning: `struct
in_addr'
 declared inside parameter list
In file included from
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:19:
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning: `struct
in_addr'
declared inside parameter list
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: warning:
parameter has inc
omplete type
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: conflicting types
for `my_
inet_ntoa'
/usr/local/php-4.3.10/ext/mysql/libmysql/my_net.h:23: previous
declaration of `m
y_inet_ntoa'
In file included from /usr/include/netinet/ip.h:25,
 from
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:33:
/usr/include/netinet/in.h:133: warning: redefinition of `u_int'
/usr/include/sys/types.h:35: warning: `u_int' previously declared here
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c: In function
`vio_peer_addr':
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:390: type of formal
parameter
 1 is incomplete
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c: At top level:
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.c:398: conflicting
types for `v
io_in_addr'
/usr/local/php-4.3.10/ext/mysql/libmysql/violite.h:94: previous
declaration of `
vio_in_addr'
make: *** [ext/mysql/libmysql/violite.lo] Error 1



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

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



#32119 [Fbk->Opn]: Unable to load dynamic library

2005-02-27 Thread basheer98 at yahoo dot com
 ID:   32119
 User updated by:  basheer98 at yahoo dot com
 Reported By:  basheer98 at yahoo dot com
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Windows 2000
 PHP Version:  5.0.3
 New Comment:

Please check out this complete error msg..

Fatal error:  Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oracle.dll' - The specified module could not be
found.
 in Unknown on line 0

my extension path 
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll

And using Microsoft IIS web server with ORACLE SERVER

I have copy the php5ts.dll to windows/system32 directory.

Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.

awating for your early reponse.


Previous Comments:


[2005-02-26 23:27:13] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.


What's the exact error message?
What webserver do you use?
What server API do you use?
Did you installed Oracle Client libraries?



[2005-02-26 08:49:02] basheer98 at yahoo dot com

Description:

I have install PHP 5.0.3. and running Oracle 8.1.7 and install IIS. I
have tested the ODBC connection for SQL Server its working fine, but
when i am trying to connect to ORacleits giving me error ubale to load
dynamic library.

I have download the php_*dll from PHP 4






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


#32119 [Opn]: Unable to load dynamic library

2005-02-27 Thread basheer98 at yahoo dot com
 ID:   32119
 User updated by:  basheer98 at yahoo dot com
 Reported By:  basheer98 at yahoo dot com
 Status:   Open
 Bug Type: OCI8 related
 Operating System: Windows 2000
 PHP Version:  5.0.3
 New Comment:

Please check out this complete error msg..

Fatal error:  Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oci8.dll' - The specified module could not be
found.
 in Unknown on line 0

my extension path 
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll

And using Microsoft IIS web server with ORACLE SERVER

I have copy the php5ts.dll to windows/system32 directory.

Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.

awating for your early reponse.


Previous Comments:


[2005-02-27 10:22:32] basheer98 at yahoo dot com

Please check out this complete error msg..

Fatal error:  Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oracle.dll' - The specified module could not be
found.
 in Unknown on line 0

my extension path 
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll

And using Microsoft IIS web server with ORACLE SERVER

I have copy the php5ts.dll to windows/system32 directory.

Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.

awating for your early reponse.



[2005-02-26 23:27:13] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.


What's the exact error message?
What webserver do you use?
What server API do you use?
Did you installed Oracle Client libraries?



[2005-02-26 08:49:02] basheer98 at yahoo dot com

Description:

I have install PHP 5.0.3. and running Oracle 8.1.7 and install IIS. I
have tested the ODBC connection for SQL Server its working fine, but
when i am trying to connect to ORacleits giving me error ubale to load
dynamic library.

I have download the php_*dll from PHP 4






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


#32123 [Opn->Fbk]: Not Work

2005-02-27 Thread derick
 ID:   32123
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fLAre_Dra_X at yahoo dot com
-Status:   Open
+Status:   Feedback
 Bug Type: COM related
 Operating System: Windows XP SP 2
 PHP Version:  5.0.1
 New Comment:

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


Previous Comments:


[2005-02-27 08:03:14] fLAre_Dra_X at yahoo dot com

Description:

I've try to use some advantage of PHP in connection to OLE or COM
object. I follow some script doing that but found some error like
bellow.

My system specs are :
AMD Athlon XP 1800+
RAM 512 MB
HD Seagate 40 GB
OS Windows XP SP 2
WebServer IIS 5.1 integrated with MS.Net Framework 1.1.4322 and PHP
5.0.0RC1-win32 CGI Mode

Other kind like access MySQL, normal PHP script it's work normally,
only for COM procedure it doesn't work ???

Reproduce code:
---
Visible = 1;
  $word->Documents->Add();
  $word->Selections->TypeText("Pemrograman PHP 5 ...");
  $word->Documents[1]->SaveAs("C:\\inetpub\\wwwroot\\test.doc");
  $word->Quit();
  $word = null;

  $buka = new COM("InternetExplorer.Application");
  $buka->Visible = true;
  $buka->Navigate("http://localhost/test.doc";);
?>

Expected result:

I've expected that COM Object of Ms.Word will be created and save a
documents, then server open new IE window then get Ms.Word OLE inside
it.

Actual result:
--
It bought me error :
Error : Class "com" not found error on line 
I've think that my PHP doesn't have COM class for creating COM Object.





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


#32111 [Opn->Fbk]: Cookies separated by colon, not semicolon

2005-02-27 Thread sniper
 ID:   32111
 Updated by:   [EMAIL PROTECTED]
 Reported By:  daniel dot marcus at gmail dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Session related
 Operating System: windows 2000 server
 PHP Version:  4.3.10
 New Comment:

Can you please provide the full headers the client (the phone in this
case) sends?



Previous Comments:


[2005-02-25 16:49:21] daniel dot marcus at gmail dot com

Description:

The browser (nokia 3200 and others) sends the cookies in the form:
name="value",name2="value2"
instead of:
name="value";name2="value2"

In the first example above PHP will get only one cookie:
"name" with it's value set to: "value,name2=value2". So all the others
cookies are lost.

How can i fix this on php for windows?

session.save_handler = files
session.save_path ="C:\AppServ\php\session"
session.use_cookies = 1
session.use_only_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
session.cache_expire = 180
session.use_trans_sid = 0







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


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

2005-02-27 Thread tony2001
 ID:   32119
 Updated by:   [EMAIL PROTECTED]
 Reported By:  basheer98 at yahoo dot com
-Status:   Open
+Status:   Bogus
 Bug Type: OCI8 related
 Operating System: Windows 2000
 PHP Version:  5.0.3
 New Comment:

You need to install Oracle Client libraries, that come with Oracle
installation.
php_oracle.dll & php_oci8.dll are different modules, don't mess them.


Previous Comments:


[2005-02-27 10:23:53] basheer98 at yahoo dot com

Please check out this complete error msg..

Fatal error:  Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oci8.dll' - The specified module could not be
found.
 in Unknown on line 0

my extension path 
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll

And using Microsoft IIS web server with ORACLE SERVER

I have copy the php5ts.dll to windows/system32 directory.

Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.

awating for your early reponse.



[2005-02-27 10:22:32] basheer98 at yahoo dot com

Please check out this complete error msg..

Fatal error:  Call to undefined function ocilogon() in
c:\Inetpub\wwwroot\MYWEB\ora_test.php on line 4
PHP Warning:  PHP Startup: Unable to load dynamic library
'C:\PHP\extensions\php_oracle.dll' - The specified module could not be
found.
 in Unknown on line 0

my extension path 
extension_dir = ".;C:\PHP\extensions"
extension=php_oci8.dll

And using Microsoft IIS web server with ORACLE SERVER

I have copy the php5ts.dll to windows/system32 directory.

Is there any thing more i have to configure please let me know in one
article i came to know that we have to copy the ora.dll from oracle
home to IIS home exactly where i have to paste this ora.dll file.

awating for your early reponse.



[2005-02-26 23:27:13] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.


What's the exact error message?
What webserver do you use?
What server API do you use?
Did you installed Oracle Client libraries?



[2005-02-26 08:49:02] basheer98 at yahoo dot com

Description:

I have install PHP 5.0.3. and running Oracle 8.1.7 and install IIS. I
have tested the ODBC connection for SQL Server its working fine, but
when i am trying to connect to ORacleits giving me error ubale to load
dynamic library.

I have download the php_*dll from PHP 4






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


#32124 [NEW]: echo sometimes strips double-quotes from tags

2005-02-27 Thread daniel dot kauffman at rocksolidsolutions dot org
From: daniel dot kauffman at rocksolidsolutions dot org
Operating system: WIN98
PHP version:  4CVS-2005-02-27 (stable)
PHP Bug Type: Output Control
Bug description:  echo sometimes strips double-quotes from tags

Description:

Echo sometimes strips double-quotes from tags.

It seems impossible to echo the following string literal:

 

Tested on localhost with:

 PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
 PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98

Tested remotely with:

 PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28

Reproduce code:
---
# Echo strips double-quotes from these strings... (unexpected behaviour)

echo '';
echo "";


# But does not strip double-quotes from these strings... (exepected
behaviour)

echo '< " >';
echo "< \" >";

echo '';
echo "";


# Character references are output as character references, not as literal
characters... (expected behaviour)

echo '< " >';
echo '< " >';

Expected result:

< " >< " >< " >< " >

Actual result:
--
< " >< " >< " >< " >

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


#32124 [Opn]: echo sometimes strips double-quotes from tags

2005-02-27 Thread daniel dot kauffman at rocksolidsolutions dot org
 ID:   32124
 User updated by:  daniel dot kauffman at rocksolidsolutions dot org
 Reported By:  daniel dot kauffman at rocksolidsolutions dot org
 Status:   Open
 Bug Type: Output Control
 Operating System: WIN98
 PHP Version:  4CVS-2005-02-27 (stable)
 New Comment:

PHP is running as Apache module in each case.


Previous Comments:


[2005-02-27 11:19:06] daniel dot kauffman at rocksolidsolutions dot org

Description:

Echo sometimes strips double-quotes from tags.

It seems impossible to echo the following string literal:

 

Tested on localhost with:

 PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
 PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98

Tested remotely with:

 PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28

Reproduce code:
---
# Echo strips double-quotes from these strings... (unexpected
behaviour)

echo '';
echo "";


# But does not strip double-quotes from these strings... (exepected
behaviour)

echo '< " >';
echo "< \" >";

echo '';
echo "";


# Character references are output as character references, not as
literal characters... (expected behaviour)

echo '< " >';
echo '< " >';

Expected result:

< " >< " >< " >< " >

Actual result:
--
< " >< " >< " >< " >





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


#32126 [NEW]: Apache crashes when calling a function declared in a "case" and with global var

2005-02-27 Thread ennixo at free dot fr
From: ennixo at free dot fr
Operating system: Windows XP
PHP version:  5.0.2
PHP Bug Type: Reproducible crash
Bug description:  Apache crashes when calling a function declared in a "case" 
and with global var

Description:

Apache crashes when calling a php function declared in a case statement
and with a global variable.

Reproduce code:
---
$a = 1;
switch ($a)
{
case 1:
function test ()
{
global $plop;
echo "test $plop";
}
$plop = "(bis)";
test();
break;
}

Expected result:

"test (bis)"

Actual result:
--
apache crashes.

just move the function outside the switch and it will work.

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


#32124 [Opn->Bgs]: echo sometimes strips double-quotes from tags

2005-02-27 Thread tony2001
 ID:   32124
 Updated by:   [EMAIL PROTECTED]
 Reported By:  daniel dot kauffman at rocksolidsolutions dot org
-Status:   Open
+Status:   Bogus
 Bug Type: Output Control
 Operating System: *
 PHP Version:  4CVS-2005-02-27 (stable)
 New Comment:

Use "View source" and see the expected results.
That's your browser's problem.


Previous Comments:


[2005-02-27 11:27:01] daniel dot kauffman at rocksolidsolutions dot org

PHP is running as Apache module in each case.



[2005-02-27 11:19:06] daniel dot kauffman at rocksolidsolutions dot org

Description:

Echo sometimes strips double-quotes from tags.

It seems impossible to echo the following string literal:

 

Tested on localhost with:

 PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
 PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98

Tested remotely with:

 PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28

Reproduce code:
---
# Echo strips double-quotes from these strings... (unexpected
behaviour)

echo '';
echo "";


# But does not strip double-quotes from these strings... (exepected
behaviour)

echo '< " >';
echo "< \" >";

echo '';
echo "";


# Character references are output as character references, not as
literal characters... (expected behaviour)

echo '< " >';
echo '< " >';

Expected result:

< " >< " >< " >< " >

Actual result:
--
< " >< " >< " >< " >





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


#32126 [Opn->Bgs]: Apache crashes when calling a function declared in a "case" and with global var

2005-02-27 Thread tony2001
 ID:   32126
 Updated by:   [EMAIL PROTECTED]
 Reported By:  ennixo at free dot fr
-Status:   Open
+Status:   Bogus
 Bug Type: Reproducible crash
 Operating System: Windows XP
 PHP Version:  5.0.2
 New Comment:

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

Thank you for your interest in PHP.

See #29944.


Previous Comments:


[2005-02-27 12:11:24] ennixo at free dot fr

Description:

Apache crashes when calling a php function declared in a case statement
and with a global variable.

Reproduce code:
---
$a = 1;
switch ($a)
{
case 1:
function test ()
{
global $plop;
echo "test $plop";
}
$plop = "(bis)";
test();
break;
}

Expected result:

"test (bis)"

Actual result:
--
apache crashes.

just move the function outside the switch and it will work.





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


#32121 [Opn->Fbk]: Form fields with names like fname[1] are not accessible

2005-02-27 Thread tony2001
 ID:   32121
 Updated by:   [EMAIL PROTECTED]
 Reported By:  jbeall at heraldic dot us
-Status:   Open
+Status:   Feedback
 Bug Type: Arrays related
 Operating System: Linux
 PHP Version:  5.0.3
 New Comment:







Works fine here, debug your code.


Previous Comments:


[2005-02-26 23:58:10] jbeall at heraldic dot us

Mozilla autofilled some of the fields when I submitted this bug and so
it had a completely unrelated/unhelpful summary.  Hopefully it should
be corrected now, sorry for the confusion...



[2005-02-26 20:47:52] jbeall at heraldic dot us

Description:

If you give a form input a name that should be a numerically indexed
array, such as



It is not possible to directly access the variable via $_GET, $_POST,
or $_REQUEST.

Dumping the entire contents of the request using e.g. print_r reveals
that the form data is submitted, but it cannot be accessed via e.g.
$_POST['fname']['1'] or $_POST['fname'][1]

Presumably this happens because the PHP engine is doing type juggling. 
When a request variable is submitted and looks like an array, the PHP
puts it in an array and indexes the value at the string value '1'. 
However, when you try to access $_POST['fname']['1'] it sees that '1'
could be an integer, converts to an integer transparently to the
developer, and of course there is nothing stored at $_POST['fname'][1].
 The data was stored at $_POST['fname']['1'].

For whatever reason, embedding the variable in a string appears to
solve the problem.  E.g., "{$_POST['test'][1]}" works

Reproduce code:
---
echo ""; // So we can use \n for formatting
echo <<



EOT;

echo '('.gettype($test[1]).') value='.$test[1]."\n";
echo '('.gettype($test[1]).') value='.$test['1']."\n";
echo "But it works if we embed in a string --->
{$_REQUEST['test'][1]}\n";
var_dump($_REQUEST['test']);

// Put a string variable in the textbox and submit.
// If using GET method, URL might look like 
// bugTest.php?test%5B1%5D=any+string+here

Expected result:

(string) value=any string here
(string) value=any string here
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)

Actual result:
--
(NULL) value=
(NULL) value=
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)





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


#32109 [Opn->Fbk]: POST data is empty

2005-02-27 Thread derick
 ID:   32109
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: windows
 PHP Version:  5CVS-2005-02-25 (dev)
 New Comment:

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

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

Thank you for your interest in PHP.



Previous Comments:


[2005-02-25 14:17:59] [EMAIL PROTECTED]

Description:

The POST form data is always empty, while GET works.

In linux with PHP 5.1 built: Feb 20 2005 14:51:15, I don't have any
problem.






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


#32122 [Opn->Fbk]: header("Status: 404 Not Found"); doesn't work

2005-02-27 Thread tony2001
 ID:   32122
 Updated by:   [EMAIL PROTECTED]
 Reported By:  OvdSpek at LIACS dot NL
-Status:   Open
+Status:   Feedback
-Bug Type: *General Issues
+Bug Type: Apache2 related
 Operating System: Windows XP
 PHP Version:  5.0.3
 New Comment:

The docs clearly state that this example is for PHP3 and you should use
 for versions >3.
Please check if it works fine for you.


Previous Comments:


[2005-02-26 23:08:38] OvdSpek at LIACS dot NL

Description:

I tried to use the code from the example, but it doesn't work. It
appears the status header has been ignored completely.

http://php.net/header

GET /temp/404.php HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---


Expected result:

HTTP/1.1 404 Not Found

Actual result:
--
HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1






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


#32115 [Opn->Asn]: dateTime encoding of timezone incorrect

2005-02-27 Thread tony2001
 ID:  32115
 Updated by:  [EMAIL PROTECTED]
 Reported By: rtroll at yahoo-inc dot com
-Status:  Open
+Status:  Assigned
 Bug Type:SOAP related
 PHP Version: 5CVS-2005-02-25 (dev)
-Assigned To: 
+Assigned To: dmitry


Previous Comments:


[2005-02-25 22:22:27] rtroll at yahoo-inc dot com

Description:

It looks like PHP's encoding of a dateTime value is incorrectly
encoding the timezone.  For example, encoding unix time:

  1109366152

results in

  2005-02-25T13:15:52-0800

instead of:

  2005-02-25T13:15:52-08:00

The timezone offset must contain a colon, according to

  http://www.w3.org/TR/xmlschema-2/

Section 3.2.7.3: Timezones


Reproduce code:
---
http://ws1.api.re2.yahoo.com/ws/soap-demo/full.wsdl";;
$client = new SoapClient( $WSDL, array( "trace" => true,
"exceptions" => 0,
));
function dump_xml( $title, $body )
{
$nl = preg_replace( "/\>\\n<", $body );
$clean = htmlspecialchars( $nl );
print "\n$title\n$clean\n";
}
$t = time();
$r = $client->dateInfo( array( 'dtval' => $t ) );
$dateTime_pst = strftime( "%Y-%m-%dT%H:%M:%S-08:00", time() ); # Works
'cause server is in PST zone
$dateTime_utc = gmstrftime( "%Y-%m-%dT%H:%M:%SZ", time() );
echo "BugRequest should have converted unix timestamp [$t] to
xs:dateTime string [$dateTime_utc] or [$dateTime_pst].  Instead,
request is:\n";

dump_xml( "Request", $client->__getLastRequest() );


Expected result:

Request should be similiar to:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="urn:yahoo:platform:soap:demo:full">


2005-02-25T13:19:10-08:00




Actual result:
--
Request is currently:



http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="urn:yahoo:platform:soap:demo:full">


2005-02-25T13:19:10-0800








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


#32122 [Fbk->Opn]: Multiple small packets send for HTTP request

2005-02-27 Thread OvdSpek at LIACS dot NL
 ID:   32122
 User updated by:  OvdSpek at LIACS dot NL
-Summary:  header("Status: 404 Not Found"); doesn't work
 Reported By:  OvdSpek at LIACS dot NL
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
-Operating System: Windows XP
+Operating System: Linux, Windows XP, 2003
-PHP Version:  5.0.3
+PHP Version:  5.0
 New Comment:

Where do the docs state that?

> Note: In PHP 3, this only works when PHP is compiled as an Apache
module. You can achieve the same effect using the Status header. 

This states that if you're using PHP 3, it only works as Apache
module.
It doesn't state that it only works in PHP 3.


Previous Comments:


[2005-02-27 12:38:47] [EMAIL PROTECTED]

The docs clearly state that this example is for PHP3 and you should use
 for versions >3.
Please check if it works fine for you.



[2005-02-26 23:08:38] OvdSpek at LIACS dot NL

Description:

I tried to use the code from the example, but it doesn't work. It
appears the status header has been ignored completely.

http://php.net/header

GET /temp/404.php HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---


Expected result:

HTTP/1.1 404 Not Found

Actual result:
--
HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1






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


#30266 [Ver->Asn]: Invalid opcode 137/1/8

2005-02-27 Thread sniper
 ID:   30266
 Updated by:   [EMAIL PROTECTED]
 Reported By:  sorin at intersol dot ro
-Status:   Verified
+Status:   Assigned
 Bug Type: Reproducible crash
-Operating System: WinXP
+Operating System: *
-PHP Version:  5.0.2
+PHP Version:  5CVS-2005-02-27
 Assigned To:  andi
 New Comment:

Hartmut verified, Andi fix. :)



Previous Comments:


[2005-02-11 00:07:11] [EMAIL PROTECTED]

Reproduceable using array_walk as well:

b = $val;
throw new Exception("ex");
}
}

$fruits = array ("d"=>"lemon", "a"=>"orange", "b"=>"banana",
"c"=>"apple");
$myobj = new testc();

function test_print ($item2, $key, $userd) {
$userd->crash($item2);
}
array_walk ($fruits, 'test_print', $myobj);
?>

comment out either line in the crash() method and it works fine
otherwise: Invalid opcode when run under HEAD and segfault when run
under 5_0 branch. same results as Hartmut's script



[2005-02-06 01:37:41] [EMAIL PROTECTED]

The following code gives me 

Fatal error: Invalid opcode 137/1/8. in
/home/hartmut/tmp/PECL_Gen.test/pecl-gen on line 24

using latest CVS HEAD on Linux:

dummy = "b";
  throw new Exception("ex");
}

  function endHandler($XmlParser, $tag)
{
}
}

  $p1 = new Xml_Parser();
  $p1->parse(''); // this crashes
#   $p1->parse(''); // this doesn't crash


?>




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

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



[2004-11-28 14:35:33] [EMAIL PROTECTED]

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

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

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





[2004-09-29 18:24:58] [EMAIL PROTECTED]

Can you please post a working piece of reproducing code? Preferably no
more than 20 lines.
Thanks.



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

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


#32127 [NEW]: is_numeric() not binary safe

2005-02-27 Thread M dot Kooiman at MAP-IS dot nl
From: M dot Kooiman at MAP-IS dot nl
Operating system: Linux 2.6
PHP version:  4.3.10
PHP Bug Type: Unknown/Other Function
Bug description:  is_numeric() not binary safe

Description:

Hi,

It seems is_numeric() isn't binary safe. Which, in itself isn't a big
problem, but it becomes a problem when is_numeric () is used as input
(GET/POST) validation. 





Reproduce code:
---
alert(document.cookie);
*/

if (is_numeric($_GET['whatever']))
{
echo "Whatever: {$_GET['whatever']}";
} else{
echo 'The string isn't numeric.';
}

?>


Expected result:

is_numeric() should fail the string because it contains extra arbitrary
data.


Actual result:
--
is_numeric() will validate a string that has a number + null char +
arbitrary data as a valid number.

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


#32127 [Opn->Asn]: is_numeric() not binary safe

2005-02-27 Thread derick
 ID:   32127
 Updated by:   [EMAIL PROTECTED]
 Reported By:  M dot Kooiman at MAP-IS dot nl
-Status:   Open
+Status:   Assigned
 Bug Type: Unknown/Other Function
 Operating System: Linux 2.6
 PHP Version:  4.3.10
-Assigned To:  
+Assigned To:  derick


Previous Comments:


[2005-02-27 12:58:18] M dot Kooiman at MAP-IS dot nl

Description:

Hi,

It seems is_numeric() isn't binary safe. Which, in itself isn't a big
problem, but it becomes a problem when is_numeric () is used as input
(GET/POST) validation. 





Reproduce code:
---
alert(document.cookie);
*/

if (is_numeric($_GET['whatever']))
{
echo "Whatever: {$_GET['whatever']}";
} else{
echo 'The string isn't numeric.';
}

?>


Expected result:

is_numeric() should fail the string because it contains extra arbitrary
data.


Actual result:
--
is_numeric() will validate a string that has a number + null char +
arbitrary data as a valid number.





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


#32121 [Fbk->Opn]: Form fields with names like fname[1] are not accessible

2005-02-27 Thread jbeall at heraldic dot us
 ID:   32121
 User updated by:  jbeall at heraldic dot us
 Reported By:  jbeall at heraldic dot us
-Status:   Feedback
+Status:   Open
 Bug Type: Arrays related
 Operating System: Linux
 PHP Version:  5.0.3
 New Comment:

You are right.  I must not be truly understanding what is causing the
problem (I am definitely having the problem that I cannot access array
values from a form), but it must be something other than the
name='fname[1]' field name.

I was trying to simplify my code down to less than 20 lines for the
post and I was missing $_REQUEST.

What I may have to do is simply save is serialize the variable that I
have that is causing me so much trouble and post a link to that.  I'm
really at a loss at this point as to what might be the cause since it
is apparently not the form problem.  Sorry for messing up the reproduce
code.


Previous Comments:


[2005-02-27 12:30:14] [EMAIL PROTECTED]







Works fine here, debug your code.



[2005-02-26 23:58:10] jbeall at heraldic dot us

Mozilla autofilled some of the fields when I submitted this bug and so
it had a completely unrelated/unhelpful summary.  Hopefully it should
be corrected now, sorry for the confusion...



[2005-02-26 20:47:52] jbeall at heraldic dot us

Description:

If you give a form input a name that should be a numerically indexed
array, such as



It is not possible to directly access the variable via $_GET, $_POST,
or $_REQUEST.

Dumping the entire contents of the request using e.g. print_r reveals
that the form data is submitted, but it cannot be accessed via e.g.
$_POST['fname']['1'] or $_POST['fname'][1]

Presumably this happens because the PHP engine is doing type juggling. 
When a request variable is submitted and looks like an array, the PHP
puts it in an array and indexes the value at the string value '1'. 
However, when you try to access $_POST['fname']['1'] it sees that '1'
could be an integer, converts to an integer transparently to the
developer, and of course there is nothing stored at $_POST['fname'][1].
 The data was stored at $_POST['fname']['1'].

For whatever reason, embedding the variable in a string appears to
solve the problem.  E.g., "{$_POST['test'][1]}" works

Reproduce code:
---
echo ""; // So we can use \n for formatting
echo <<



EOT;

echo '('.gettype($test[1]).') value='.$test[1]."\n";
echo '('.gettype($test[1]).') value='.$test['1']."\n";
echo "But it works if we embed in a string --->
{$_REQUEST['test'][1]}\n";
var_dump($_REQUEST['test']);

// Put a string variable in the textbox and submit.
// If using GET method, URL might look like 
// bugTest.php?test%5B1%5D=any+string+here

Expected result:

(string) value=any string here
(string) value=any string here
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)

Actual result:
--
(NULL) value=
(NULL) value=
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)





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


#32122 [Opn->Fbk]: Multiple small packets send for HTTP request

2005-02-27 Thread sniper
 ID:   32122
 Updated by:   [EMAIL PROTECTED]
 Reported By:  OvdSpek at LIACS dot NL
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: Linux, Windows XP, 2003
 PHP Version:  5.0
 New Comment:

Please try using this CVS snapshot:

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




Previous Comments:


[2005-02-27 12:42:29] OvdSpek at LIACS dot NL

Where do the docs state that?

> Note: In PHP 3, this only works when PHP is compiled as an Apache
module. You can achieve the same effect using the Status header. 

This states that if you're using PHP 3, it only works as Apache
module.
It doesn't state that it only works in PHP 3.



[2005-02-27 12:38:47] [EMAIL PROTECTED]

The docs clearly state that this example is for PHP3 and you should use
 for versions >3.
Please check if it works fine for you.



[2005-02-26 23:08:38] OvdSpek at LIACS dot NL

Description:

I tried to use the code from the example, but it doesn't work. It
appears the status header has been ignored completely.

http://php.net/header

GET /temp/404.php HTTP/1.0

HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1


Reproduce code:
---


Expected result:

HTTP/1.1 404 Not Found

Actual result:
--
HTTP/1.1 200 OK
Date: Sat, 26 Feb 2005 22:02:43 GMT
Server: Apache/2.0.53 (Win32) PHP/5.0.3
X-Powered-By: PHP/5.0.3
Status: 404 Not Found
Content-Length: 0
Connection: close
Content-Type: text/html; charset=ISO-8859-1






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


#32129 [NEW]: Header doen't work on an individual script

2005-02-27 Thread fambizzari at tm4b dot com
From: fambizzari at tm4b dot com
Operating system: Windows XP
PHP version:  4.3.10
PHP Bug Type: HTTP related
Bug description:  Header doen't work on an individual script

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this case,
it is restrcited to pa particular script which is no different to the
others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.

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


#32121 [Fbk->Opn]: Form fields with names like fname[1] are not accessible

2005-02-27 Thread jbeall at heraldic dot us
 ID:   32121
 User updated by:  jbeall at heraldic dot us
 Reported By:  jbeall at heraldic dot us
-Status:   Feedback
+Status:   Open
 Bug Type: Arrays related
 Operating System: Linux
 PHP Version:  5.0.3
 New Comment:

Actually I just had a possible epiphany - I am serializing the entire
$_POST variable using WDDX and recovering on a subsequent page by
deserializing the WDDX packet.

I wonder if when WDDX deserializes an array, it stores everything at
string indices, even if the indices are integers.  Note that for
convenience reasons the arrays in question start at [1], not [0]; that
may be significant, I don't know enough about PHP's WDDX functionality
to say.

I will not be able to investigate this further for several days, but I
will post back when I can.


Previous Comments:


[2005-02-27 13:25:43] [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

ALWAYS try the snapshots first.




[2005-02-27 13:09:59] jbeall at heraldic dot us

You are right.  I must not be truly understanding what is causing the
problem (I am definitely having the problem that I cannot access array
values from a form), but it must be something other than the
name='fname[1]' field name.

I was trying to simplify my code down to less than 20 lines for the
post and I was missing $_REQUEST.

What I may have to do is simply save is serialize the variable that I
have that is causing me so much trouble and post a link to that.  I'm
really at a loss at this point as to what might be the cause since it
is apparently not the form problem.  Sorry for messing up the reproduce
code.



[2005-02-27 12:30:14] [EMAIL PROTECTED]







Works fine here, debug your code.



[2005-02-26 23:58:10] jbeall at heraldic dot us

Mozilla autofilled some of the fields when I submitted this bug and so
it had a completely unrelated/unhelpful summary.  Hopefully it should
be corrected now, sorry for the confusion...



[2005-02-26 20:47:52] jbeall at heraldic dot us

Description:

If you give a form input a name that should be a numerically indexed
array, such as



It is not possible to directly access the variable via $_GET, $_POST,
or $_REQUEST.

Dumping the entire contents of the request using e.g. print_r reveals
that the form data is submitted, but it cannot be accessed via e.g.
$_POST['fname']['1'] or $_POST['fname'][1]

Presumably this happens because the PHP engine is doing type juggling. 
When a request variable is submitted and looks like an array, the PHP
puts it in an array and indexes the value at the string value '1'. 
However, when you try to access $_POST['fname']['1'] it sees that '1'
could be an integer, converts to an integer transparently to the
developer, and of course there is nothing stored at $_POST['fname'][1].
 The data was stored at $_POST['fname']['1'].

For whatever reason, embedding the variable in a string appears to
solve the problem.  E.g., "{$_POST['test'][1]}" works

Reproduce code:
---
echo ""; // So we can use \n for formatting
echo <<



EOT;

echo '('.gettype($test[1]).') value='.$test[1]."\n";
echo '('.gettype($test[1]).') value='.$test['1']."\n";
echo "But it works if we embed in a string --->
{$_REQUEST['test'][1]}\n";
var_dump($_REQUEST['test']);

// Put a string variable in the textbox and submit.
// If using GET method, URL might look like 
// bugTest.php?test%5B1%5D=any+string+here

Expected result:

(string) value=any string here
(string) value=any string here
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)

Actual result:
--
(NULL) value=
(NULL) value=
But it works if we embed in a string ---> any string here
Array
(
[1] => any string here
)





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


#32124 [Bgs->Asn]: echo sometimes strips double-quotes from tags

2005-02-27 Thread sniper
 ID:   32124
 Updated by:   [EMAIL PROTECTED]
 Reported By:  daniel dot kauffman at rocksolidsolutions dot org
-Status:   Bogus
+Status:   Assigned
 Bug Type: Output Control
 Operating System: *
 PHP Version:  4CVS-2005-02-27 (stable)
-Assigned To:  
+Assigned To:  sniper
 New Comment:

I can actually reproduce this, but I have to try again when I get
home..the php version installed on my laptop is not the most recent CVS
checkout. :)



Previous Comments:


[2005-02-27 12:15:35] [EMAIL PROTECTED]

Use "View source" and see the expected results.
That's your browser's problem.



[2005-02-27 11:27:01] daniel dot kauffman at rocksolidsolutions dot org

PHP is running as Apache module in each case.



[2005-02-27 11:19:06] daniel dot kauffman at rocksolidsolutions dot org

Description:

Echo sometimes strips double-quotes from tags.

It seems impossible to echo the following string literal:

 

Tested on localhost with:

 PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
 PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98

Tested remotely with:

 PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28

Reproduce code:
---
# Echo strips double-quotes from these strings... (unexpected
behaviour)

echo '';
echo "";


# But does not strip double-quotes from these strings... (exepected
behaviour)

echo '< " >';
echo "< \" >";

echo '';
echo "";


# Character references are output as character references, not as
literal characters... (expected behaviour)

echo '< " >';
echo '< " >';

Expected result:

< " >< " >< " >< " >

Actual result:
--
< " >< " >< " >< " >





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


#32129 [Opn]: Header doen't work on an individual script

2005-02-27 Thread fambizzari at tm4b dot com
 ID:   32129
 User updated by:  fambizzari at tm4b dot com
 Reported By:  fambizzari at tm4b dot com
 Status:   Open
 Bug Type: HTTP related
-Operating System: Windows XP
+Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

OS is Linux


Previous Comments:


[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32129 [Opn->Fbk]: Header doen't work on an individual script

2005-02-27 Thread sniper
 ID:   32129
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fambizzari at tm4b dot com
-Status:   Open
+Status:   Feedback
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

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

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

Thank you for your interest in PHP.





Previous Comments:


[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32109 [Opn->Fbk]: POST data is empty

2005-02-27 Thread sniper
 ID:   32109
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Open
+Status:   Feedback
 Bug Type: Apache2 related
 Operating System: windows
 PHP Version:  5CVS-2005-02-25 (dev)
 New Comment:

Reproduce script? (fyi: works fine here)



Previous Comments:


[2005-02-27 13:54:45] [EMAIL PROTECTED]

Sorry Derick, but I don't have any more info.

I simply upgraded PHP (that was one or two weeks old) to the most
recent CVS version and the POST vars are broken.



[2005-02-27 12:32:02] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.




[2005-02-25 14:17:59] [EMAIL PROTECTED]

Description:

The POST form data is always empty, while GET works.

In linux with PHP 5.1 built: Feb 20 2005 14:51:15, I don't have any
problem.






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


#32129 [Fbk->Opn]: Header doen't work on an individual script

2005-02-27 Thread fambizzari at tm4b dot com
 ID:   32129
 User updated by:  fambizzari at tm4b dot com
 Reported By:  fambizzari at tm4b dot com
-Status:   Feedback
+Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.


Previous Comments:


[2005-02-27 14:30:46] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32128 [Opn->Fbk]: Memory leak

2005-02-27 Thread sniper
 ID:   32128
 Updated by:   [EMAIL PROTECTED]
 Reported By:  i at downfire dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Performance problem
 Operating System: linux RH 8.0 Kernel 2.4.x
 PHP Version:  4.3.10
 New Comment:

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

And if it still happens, provide the configure line you used.



Previous Comments:


[2005-02-27 13:40:00] i at downfire dot com

Description:

I get a memory leak from the php on the server. (i'm a webhost)

The first second i got 200MB+ and the next my swap is full and memory
down to 3700 K.

There is a normal script ran. I redused the usage of php memory to 1M
but this does not help us solve te problem.

I use apache 2.0.53 with php 4.3.10 and Asp sun one 4.0.1L.

I have never had this problem with php 4.3.9. it started when i
upgraded to 4.3.10. 

I'm gone downgrade to 4.3.9 untill this problem is solved since i can't
have my server crash every time.

Can you please help us :)






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


#32129 [Opn->Bgs]: Header doen't work on an individual script

2005-02-27 Thread sniper
 ID:   32129
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fambizzari at tm4b dot com
-Status:   Open
+Status:   Bogus
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

Cache problems are not PHP bugs. Please ask further questions on the
php-general mailing list.



Previous Comments:


[2005-02-27 14:32:43] fambizzari at tm4b dot com

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.



[2005-02-27 14:30:46] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32129 [Bgs->Opn]: Header doen't work on an individual script

2005-02-27 Thread fambizzari at tm4b dot com
 ID:   32129
 User updated by:  fambizzari at tm4b dot com
 Reported By:  fambizzari at tm4b dot com
-Status:   Bogus
+Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

I apologise, but i didn't realise that.


Previous Comments:


[2005-02-27 14:34:16] [EMAIL PROTECTED]

Cache problems are not PHP bugs. Please ask further questions on the
php-general mailing list.




[2005-02-27 14:32:43] fambizzari at tm4b dot com

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.



[2005-02-27 14:30:46] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32116 [Opn]: mysql_connect() - client_flags broken

2005-02-27 Thread sniper
 ID:   32116
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mstuhu at web dot de
 Status:   Open
 Bug Type: MySQL related
 Operating System: Windows 2000
 PHP Version:  4.3.10
 New Comment:

Looks a lot like the whole compression thingie is disabled
for windows for some reason:

config-win.h:/* #define HAVE_COMPRESS -- not with PHP, please */ 




Previous Comments:


[2005-02-25 23:09:12] mstuhu at web dot de

Description:

None of the function calls below does establish a compressed connection
to a remote mySQL 4.0.21 server:

mysql_connect($server, $user, $password, false, 32);
mysql_connect($server, $user, $password, false,
MYSQL_CLIENT_COMPRESS);
mysql_connect($server, $user, $password, false, CLIENT_COMPRESS);

There's neither a performance boost using these calls nor is the
connection crippled (verified with Etherreal)

Interestingly establishing a compressed connection from a Linux box
with 4.3.10 to the remote mySQL server works fine.

So I suppose there's a bug in the mySQL windows client libs which the
mysql_connect function relies on.






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


#32129 [Opn->Bgs]: Header doen't work on an individual script

2005-02-27 Thread sniper
 ID:   32129
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fambizzari at tm4b dot com
-Status:   Open
+Status:   Bogus
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

It sometimes happens that you hit a blank page (unrelated to header())
and that is cached -> next request gives the same blank page from
cache.. there are ways to avoid this, but please discuss this on
php-general@lists.php.net



Previous Comments:


[2005-02-27 14:37:28] fambizzari at tm4b dot com

I apologise, but i didn't realise that.



[2005-02-27 14:34:16] [EMAIL PROTECTED]

Cache problems are not PHP bugs. Please ask further questions on the
php-general mailing list.




[2005-02-27 14:32:43] fambizzari at tm4b dot com

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.



[2005-02-27 14:30:46] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






[2005-02-27 13:59:25] fambizzari at tm4b dot com

Description:

I'e been using header("location: http://www.tm4b.com "); throughout my
codes to redirect users after db functions are completed. 

Suddenly, for one individual script, it produces a blank screen.

I've seen a similar bug report which is not useful, because, in this
case, it is restrcited to pa particular script which is no different to
the others in anyway.

For your info, any code placed after the header does not get processed
e.g. .

Reproduce code:
---
http://www.tm4b.com "); 
?>

Expected result:

To redirect the user to the homepage.

Actual result:
--
Blank screen.





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


#32129 [Bgs->Opn]: Header doen't work on an individual script

2005-02-27 Thread fambizzari at tm4b dot com
 ID:   32129
 User updated by:  fambizzari at tm4b dot com
 Reported By:  fambizzari at tm4b dot com
-Status:   Bogus
+Status:   Open
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

THankyou.


Previous Comments:


[2005-02-27 14:43:24] [EMAIL PROTECTED]

It sometimes happens that you hit a blank page (unrelated to header())
and that is cached -> next request gives the same blank page from
cache.. there are ways to avoid this, but please discuss this on
php-general@lists.php.net




[2005-02-27 14:37:28] fambizzari at tm4b dot com

I apologise, but i didn't realise that.



[2005-02-27 14:34:16] [EMAIL PROTECTED]

Cache problems are not PHP bugs. Please ask further questions on the
php-general mailing list.




[2005-02-27 14:32:43] fambizzari at tm4b dot com

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.



[2005-02-27 14:30:46] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.






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

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


#32128 [Fbk->Opn]: Memory leak

2005-02-27 Thread i at downfire dot com
 ID:   32128
 User updated by:  i at downfire dot com
 Reported By:  i at downfire dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Performance problem
 Operating System: linux RH 8.0 Kernel 2.4.x
 PHP Version:  4.3.10
 New Comment:

I already used the CVS. That does not solve the problem.

I used ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql to configure the php since i don't use any other modules
in php.

I'm now compiling apache 1.3.33 with php 4.3.9 to have a look what this
does.


Previous Comments:


[2005-02-27 14:33:02] [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

And if it still happens, provide the configure line you used.




[2005-02-27 13:40:00] i at downfire dot com

Description:

I get a memory leak from the php on the server. (i'm a webhost)

The first second i got 200MB+ and the next my swap is full and memory
down to 3700 K.

There is a normal script ran. I redused the usage of php memory to 1M
but this does not help us solve te problem.

I use apache 2.0.53 with php 4.3.10 and Asp sun one 4.0.1L.

I have never had this problem with php 4.3.9. it started when i
upgraded to 4.3.10. 

I'm gone downgrade to 4.3.9 untill this problem is solved since i can't
have my server crash every time.

Can you please help us :)






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


#32067 [Fbk->Opn]: DSO problems

2005-02-27 Thread j dot lammerts at chello dot nl
 ID:   32067
 User updated by:  j dot lammerts at chello dot nl
 Reported By:  j dot lammerts at chello dot nl
-Status:   Feedback
+Status:   Open
 Bug Type: *Configuration Issues
 Operating System: AIX 5.2
 PHP Version:  4CVS-2005-02-22 (stable)
 New Comment:

Will put up a link to this file. Please give me a bit to re-setup my
webserver. Will have it ready by the end of this month.


Previous Comments:


[2005-02-22 23:09:27] [EMAIL PROTECTED]

It's most likely because their version string has a different format,
please put the config.log online and provide a link to it here.



[2005-02-22 16:14:15] j dot lammerts at chello dot nl

Description:

Hi,
I seem to be unable to get the latetst stable php4 to compile.
I'm using AIX 5.2 and IBM HTTPServer 2.0.47.1
If I try to configure with --apxs=/usr/IBMIHS/bin/apxs
I get the message :
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... expr:
non-numeric argument
yes
Then, at the end :
WARNING: Your /usr/IBMIHS/bin/apxs script is most likely broken.

If I try to configure with --apxs2=/usr/IBMIHS/bin/apxs
I get the message:
checking for Apache 2.0 filter-module support via DSO through APXS...
no
checking for Apache 2.0 handler-module support via DSO through APXS...
expr: non-numeric a
rgument
configure: error: You have enabled Apache 2 support while your server
is Apache 1.3.  Plea
se use the appropiate switch --with-apxs (without the 2)
(although I'm using 2.0.47.1 ??)

Is this due to the fact that IBM messes around with standard Apache
configs, and makes up their own apxs ?

Cheers






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


#32129 [Opn->Bgs]: Header doen't work on an individual script

2005-02-27 Thread tony2001
 ID:   32129
 Updated by:   [EMAIL PROTECTED]
 Reported By:  fambizzari at tm4b dot com
-Status:   Open
+Status:   Bogus
 Bug Type: HTTP related
 Operating System: Linux
 PHP Version:  4.3.10
 New Comment:

No bug -> bogus.


Previous Comments:


[2005-02-27 14:44:26] fambizzari at tm4b dot com

THankyou.



[2005-02-27 14:43:24] [EMAIL PROTECTED]

It sometimes happens that you hit a blank page (unrelated to header())
and that is cached -> next request gives the same blank page from
cache.. there are ways to avoid this, but please discuss this on
php-general@lists.php.net




[2005-02-27 14:37:28] fambizzari at tm4b dot com

I apologise, but i didn't realise that.



[2005-02-27 14:34:16] [EMAIL PROTECTED]

Cache problems are not PHP bugs. Please ask further questions on the
php-general mailing list.




[2005-02-27 14:32:43] fambizzari at tm4b dot com

It appears that there has been some type of issue with the cache, which
has caused this error. I am investigating it and will return shortly.



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

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


#32109 [Fbk->Opn]: POST data is empty

2005-02-27 Thread nlopess
 ID:   32109
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
-Status:   Feedback
+Status:   Open
 Bug Type: Apache2 related
 Operating System: windows
 PHP Version:  5CVS-2005-02-25 (dev)
 New Comment:

I had apache 2.0.52 and I upgraded it to 2.0.53 and still doesn't
work.

Any simple script like the above helps to reproduce:
';
}
?>


Previous Comments:


[2005-02-27 14:31:36] [EMAIL PROTECTED]

Reproduce script? (fyi: works fine here)




[2005-02-27 13:54:45] [EMAIL PROTECTED]

Sorry Derick, but I don't have any more info.

I simply upgraded PHP (that was one or two weeks old) to the most
recent CVS version and the POST vars are broken.



[2005-02-27 12:32:02] [EMAIL PROTECTED]

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

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

Thank you for your interest in PHP.




[2005-02-25 14:17:59] [EMAIL PROTECTED]

Description:

The POST form data is always empty, while GET works.

In linux with PHP 5.1 built: Feb 20 2005 14:51:15, I don't have any
problem.






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


#31915 [Com]: session_start randomly hangs

2005-02-27 Thread elmway at spray dot se
 ID:   31915
 Comment by:   elmway at spray dot se
 Reported By:  map at infinitum dot ch
 Status:   Open
 Bug Type: Session related
 Operating System: FreeBSD 5.3 stable
 PHP Version:  5.0.3
 New Comment:

I had the exact same problem on a Win2003/IIS machine. Even stranger, I
had another identical machine where the problem didn't appear. 
Solution: After adding session_write_close(); to the scripts, the
problem seems to have been resolved.


Previous Comments:


[2005-02-11 18:20:48] map at infinitum dot ch

I can only reproduce this behaviour in the production site. There are
like 5 different page types that have a different initialization but
basically we do some #includes and assignments and then comes the
following code:

session_cache_limiter('none');
@session_start ();

There are other places where I just use 'session_start' without
'session_cache_limiter'.



[2005-02-10 21:28:34] [EMAIL PROTECTED]

It would be good if you provide a reproduce script or at least some
info on how to reproduce this issue.
Just saying that something is wrong doesn't help much, as you may
guess.

Have you already tried latest CVS snapshot, btw ?



[2005-02-10 15:52:17] map at infinitum dot ch

Description:

On a production site using PHP5 5.0.3 with Apache 1.3.33 we see random
session_start hangs. It does NOT happen always on the same page, with
the same client, the same frequency or unter the same load.
If it happens the process eats up all CPU time util it reaches the
'max_execution_time'. It then leaves a trace in the error log saying:
PHP Fatal error:  Maximum execution time of 15 seconds exceeded in XXX
on line XXX. There are always other pages and lines.
I already tried a lot of stuff to see if there is any influence like
using 'session_destroy'. I do not use any special session parameters.
The actual parameters are:

[Session]
session.save_handler = files
session.save_path = /home/teviaqui/session
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0
session.cookie_path = /
session.cookie_domain =
session.serialize_handler = php
session.gc_probability = 1
session.gc_divisor = 1000
session.gc_maxlifetime = 1440
session.bug_compat_42 = 0
session.bug_compat_warn = 1
session.referer_check =
session.entropy_length = 0
session.entropy_file =
;session.entropy_length = 16
;session.entropy_file = /dev/urandom
session.cache_limiter = nocache
session.cache_expire = 180
session.use_trans_sid = 0

I am also a developer and might help to debug the code but I need some
advice where to lock at!

Reproduce code:
---
session_start ();

Expected result:

I would like to see no processes eating up all the CPU time of our
sever.

Actual result:
--
The the moment I have several httpd processes hanging at the same time
eating up all CPU time. There are about 120 users browsing the site.
At the moment it happens like 30 times every hour!





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


#32130 [NEW]: ArrayIterator::seek() does not throw an Exception on invalid index

2005-02-27 Thread joh at deworks dot net
From: joh at deworks dot net
Operating system: Linux
PHP version:  Irrelevant
PHP Bug Type: SPL related
Bug description:  ArrayIterator::seek() does not throw an Exception on invalid 
index

Description:

ArrayIterator::seek() should (according to the manual:
http://www.php.net/~helly/php/ext/spl/interfaceSeekableIterator.html) 
"throw an exception if it is not possible to seek to the given position".

ArrayIterator::seek() does not. Instead, it sets the current element to
NULL (as returned by ArrayIterator::current()).

Reproduce code:
---
$o = new ArrayIterator(array(1,2,3));
$o->seek(3);
var_dump($o->current());

Expected result:

Fatal error: Uncaught exception 'Exception' with message 'Could not seek
to position...' ...

Actual result:
--
NULL

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


#32124 [Asn->Csd]: echo sometimes strips double-quotes from tags

2005-02-27 Thread daniel dot kauffman at rocksolidsolutions dot org
 ID:   32124
 User updated by:  daniel dot kauffman at rocksolidsolutions dot org
 Reported By:  daniel dot kauffman at rocksolidsolutions dot org
-Status:   Assigned
+Status:   Closed
 Bug Type: Output Control
 Operating System: *
 PHP Version:  4CVS-2005-02-27 (stable)
 Assigned To:  sniper
 New Comment:

Firefox 0.9.2 continues to exhibit described behaviour even after php
is disabled.

IE 6.0.2800.1106, Opera 7.53, and Curl 7.13.0 do not exhibit described
behaviour.

So, this appears to be browser-related.

[EMAIL PROTECTED] -- are you using Firefox?


Previous Comments:


[2005-02-27 13:59:37] [EMAIL PROTECTED]

I can actually reproduce this, but I have to try again when I get
home..the php version installed on my laptop is not the most recent CVS
checkout. :)




[2005-02-27 12:15:35] [EMAIL PROTECTED]

Use "View source" and see the expected results.
That's your browser's problem.



[2005-02-27 11:27:01] daniel dot kauffman at rocksolidsolutions dot org

PHP is running as Apache module in each case.



[2005-02-27 11:19:06] daniel dot kauffman at rocksolidsolutions dot org

Description:

Echo sometimes strips double-quotes from tags.

It seems impossible to echo the following string literal:

 

Tested on localhost with:

 PHP 4.3.11-dev as CGI with Apache 1.3.33 on Windows 98
 PHP 4.3.10 as CGI with Apache 1.3.33 on Windows 98

Tested remotely with:

 PHP 4.3.10 as CGI with Apache 1.3.33 on Linux kernal 2.4.28

Reproduce code:
---
# Echo strips double-quotes from these strings... (unexpected
behaviour)

echo '';
echo "";


# But does not strip double-quotes from these strings... (exepected
behaviour)

echo '< " >';
echo "< \" >";

echo '';
echo "";


# Character references are output as character references, not as
literal characters... (expected behaviour)

echo '< " >';
echo '< " >';

Expected result:

< " >< " >< " >< " >

Actual result:
--
< " >< " >< " >< " >





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


#25876 [Com]: session_start(): Failed to initialize storage module

2005-02-27 Thread etamme at softhome dot net
 ID:   25876
 Comment by:   etamme at softhome dot net
 Reported By:  golden at riscom dot com
 Status:   No Feedback
 Bug Type: Session related
 Operating System: freebsd 4.8
 PHP Version:  4.3.9-4.3.10
 New Comment:

I am running a FreeBSD 5.3 system and am having the same problem.  I
checked my php.ini and session.use_trans_sid = 0 is already there.
  This is a very important bug.. not having sessions renders nearly all
our scripts useless.


Previous Comments:


[2005-02-20 01:00:07] 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-19 23:34:41] daniel at mainframe dot ath dot cx

> Set "session.use_trans_sid = 0" in your php.ini.  Problem
> solved!

This is not the case - My php.ini has _always_ had use_trans_sid
disabled, and yet I am still experiencing the problem



[2005-02-19 00:46:18] friend at nowhere dot com

Set "session.use_trans_sid = 0" in your php.ini.  Problem solved!



[2005-02-13 15:32:00] johan at dotco dot co dot za

I've had the same problem after upgrading to PHP 4.3.10, in that I also
started getting "Fatal error: session_start(): Failed to initialize
storage module: user (path: /tmp) " every now and then.  The solution
was to upgrade to the latest ZendOptimizer here:
http://zend.com/store/products/zend-optimizer.php.  There is a comment
posted about an "incompatibility" with older ZendOptimizer versions on
the Zend site.  I believe they are refering to this error.



[2005-02-12 03:55:39] [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





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

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


#32088 [Csd->Opn]: Reference fails after use of unset() on array

2005-02-27 Thread karl at posmaster dot com dot au
 ID:   32088
 User updated by:  karl at posmaster dot com dot au
 Reported By:  karl at posmaster dot com dot au
-Status:   Closed
+Status:   Open
 Bug Type: Zend Engine 2 problem
 Operating System: Slackware Linux 2.4.26
 PHP Version:  5.0.3
 New Comment:

No, the bug is still present.  The reference that should be present is
still broken.


Previous Comments:


[2005-02-25 14:30:13] [EMAIL PROTECTED]

So it's fixed and working -> closed.




[2005-02-25 05:19:45] karl at posmaster dot com dot au

Using that snapshot (PHP Version 5.0.4-dev) the second var_dump()
produces:
array(3) {
  [1]=>
  array(2) {
[0]=>
string(3) "one"
[1]=>
string(3) "two"
  }
  [3]=>
  array(2) {
[0]=>
string(4) "five"
[1]=>
string(3) "six"
  }
  [5]=>
  array(2) {
[0]=>
string(4) "nine"
[1]=>
string(3) "ten"
  }
}

Expecting:
array(3) {
  [1]=>
  array(2) {
[0]=>
string(3) "one"
[1]=>
string(3) "foo"
  }
  [3]=>
  array(2) {
[0]=>
string(4) "five"
[1]=>
string(3) "foo"
  }
  [5]=>
  array(2) {
[0]=>
string(4) "nine"
[1]=>
string(3) "foo"
  }
}

Using Apache 1.3.31
PHP Configure string:
'./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' '--enable-dbase' '--enable-ftp'
'--with-iconv' '--with-exif' '--with-gd' '--enable-gd-native-ttf'
'--with-jpeg-dir=/usr' '--with-png' '--with-gmp'
'--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' '--with-pgsql' '--with-mysql'



[2005-02-24 23:50:30] [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

I can't reproduce it.



[2005-02-23 23:30:05] karl at posmaster dot com dot au

Description:

Using "for each" I wanted to remove some items and change others.  It
seems that the reference in the loop no longer works once unset() has
been called on the array.

The commented line achieves the desired end, but circumvents the
reference.

The reference works if the unset() line is commented.

This is reproduced without the use of Zend or 3rd part extensions.

---



Reproduce code:
---
 &$values) {
print "on key:$key";
if(($key%2)==0){
print "Running unset for $key ";
unset ($stuff[$key]);
}else{
print "Running change for $key ";
$values[1]='foo';
//  $stuff[$key][1] = 'foo';
}
}
var_dump($stuff);
?>

Expected result:

I expected to see elements $stuff[1][1], $stuff[3][1] and $stuff[5][1]
to be set to 'foo'

Actual result:
--
The elements are left unchanged. Are values 'two', 'six' and 'ten'
respectively.





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


#32128 [Opn->Fbk]: Memory leak

2005-02-27 Thread sniper
 ID:   32128
 Updated by:   [EMAIL PROTECTED]
 Reported By:  i at downfire dot com
-Status:   Open
+Status:   Feedback
 Bug Type: Performance problem
 Operating System: linux RH 8.0 Kernel 2.4.x
 PHP Version:  4.3.10
 New Comment:

Can not reproduce, please provide a short example script.



Previous Comments:


[2005-02-27 15:03:32] i at downfire dot com

I already used the CVS. That does not solve the problem.

I used ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql to configure the php since i don't use any other modules
in php.

I'm now compiling apache 1.3.33 with php 4.3.9 to have a look what this
does.



[2005-02-27 14:33:02] [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

And if it still happens, provide the configure line you used.




[2005-02-27 13:40:00] i at downfire dot com

Description:

I get a memory leak from the php on the server. (i'm a webhost)

The first second i got 200MB+ and the next my swap is full and memory
down to 3700 K.

There is a normal script ran. I redused the usage of php memory to 1M
but this does not help us solve te problem.

I use apache 2.0.53 with php 4.3.10 and Asp sun one 4.0.1L.

I have never had this problem with php 4.3.9. it started when i
upgraded to 4.3.10. 

I'm gone downgrade to 4.3.9 untill this problem is solved since i can't
have my server crash every time.

Can you please help us :)






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


#32067 [Opn->Fbk]: DSO problems

2005-02-27 Thread sniper
 ID:   32067
 Updated by:   [EMAIL PROTECTED]
 Reported By:  j dot lammerts at chello dot nl
-Status:   Open
+Status:   Feedback
-Bug Type: *Configuration Issues
+Bug Type: Apache2 related
 Operating System: AIX 5.2
 PHP Version:  4CVS-2005-02-22 (stable)
 New Comment:

Just provide the output of this set of commands:

# httpd=`/usr/IBMIHS/bin/apxs -q SBINDIR`/`/usr/IBMIHS/bin/apxs -q
TARGET`
# $httpd -v 2>&1 | grep version
# $httpd -v



Previous Comments:


[2005-02-27 15:51:57] j dot lammerts at chello dot nl

Will put up a link to this file. Please give me a bit to re-setup my
webserver. Will have it ready by the end of this month.



[2005-02-22 23:09:27] [EMAIL PROTECTED]

It's most likely because their version string has a different format,
please put the config.log online and provide a link to it here.



[2005-02-22 16:14:15] j dot lammerts at chello dot nl

Description:

Hi,
I seem to be unable to get the latetst stable php4 to compile.
I'm using AIX 5.2 and IBM HTTPServer 2.0.47.1
If I try to configure with --apxs=/usr/IBMIHS/bin/apxs
I get the message :
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... expr:
non-numeric argument
yes
Then, at the end :
WARNING: Your /usr/IBMIHS/bin/apxs script is most likely broken.

If I try to configure with --apxs2=/usr/IBMIHS/bin/apxs
I get the message:
checking for Apache 2.0 filter-module support via DSO through APXS...
no
checking for Apache 2.0 handler-module support via DSO through APXS...
expr: non-numeric a
rgument
configure: error: You have enabled Apache 2 support while your server
is Apache 1.3.  Plea
se use the appropiate switch --with-apxs (without the 2)
(although I'm using 2.0.47.1 ??)

Is this due to the fact that IBM messes around with standard Apache
configs, and makes up their own apxs ?

Cheers






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


#32060 [Opn->Asn]: configure host type detection broken

2005-02-27 Thread sniper
 ID:   32060
 Updated by:   [EMAIL PROTECTED]
 Reported By:  dg at orbhost dot net
-Status:   Open
+Status:   Assigned
 Bug Type: Compile Failure
 Operating System: tru64 5.1b
 PHP Version:  4CVS-2005-02-22 (stable)
-Assigned To:  
+Assigned To:  sniper


Previous Comments:


[2005-02-24 21:20:23] [EMAIL PROTECTED]

file received. investigating.




[2005-02-23 07:24:03] [EMAIL PROTECTED]

I was really interested in the whole output, so let's try this again:

#/bin/sh -x configure 2> debug.txt

And send debug.txt file to me via email.

!!!DO NOT add that huge file to this bug report!!!




[2005-02-23 04:56:14] dg at orbhost dot net

/bin/sh -x configure tries to display the help info and ends in this:

Libtool:

  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]  optimize for fast installation
[default=yes]
  --with-gnu-ld   assume the C compiler uses GNU ld
[default=no]
+ test X != Xset 
+ uname 
UNAME=OSF1
lt_cv_sys_path_separator=:
PATH_SEPARATOR=:
SHELL=/bin/sh
echo=echo
+ test X = X--no-reexec 
+ test X = X--fallback-echo 
+ test X = X\t 
+ exec /bin/sh configure --no-reexec 
loading cache ./config.cache
checking host system type... configure: error: can not guess host type;
you must specify one



[2005-02-23 04:53:18] dg at orbhost dot net

sorry, I didn't think about running config.guess, it does guess:

alphaev56-dec-osf5.1

which is the right one



[2005-02-23 04:52:11] [EMAIL PROTECTED]

And if that above command works, run this:

# /bin/sh -x configure




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

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


#32116 [Opn->Asn]: mysql_connect() - client_flags broken

2005-02-27 Thread sniper
 ID:   32116
 Updated by:   [EMAIL PROTECTED]
 Reported By:  mstuhu at web dot de
-Status:   Open
+Status:   Assigned
 Bug Type: MySQL related
 Operating System: Windows 2000
 PHP Version:  4.3.10
-Assigned To:  
+Assigned To:  sniper


Previous Comments:


[2005-02-27 14:42:05] [EMAIL PROTECTED]

Looks a lot like the whole compression thingie is disabled
for windows for some reason:

config-win.h:/* #define HAVE_COMPRESS -- not with PHP, please */ 





[2005-02-25 23:09:12] mstuhu at web dot de

Description:

None of the function calls below does establish a compressed connection
to a remote mySQL 4.0.21 server:

mysql_connect($server, $user, $password, false, 32);
mysql_connect($server, $user, $password, false,
MYSQL_CLIENT_COMPRESS);
mysql_connect($server, $user, $password, false, CLIENT_COMPRESS);

There's neither a performance boost using these calls nor is the
connection crippled (verified with Etherreal)

Interestingly establishing a compressed connection from a Linux box
with 4.3.10 to the remote mySQL server works fine.

So I suppose there's a bug in the mySQL windows client libs which the
mysql_connect function relies on.






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


#30828 [Opn->Ver]: debug_backtrace reports incorrect class in overridden methods

2005-02-27 Thread sniper
 ID:   30828
 Updated by:   [EMAIL PROTECTED]
 Reported By:  lists at infospleen dot com
-Status:   Open
+Status:   Verified
-Bug Type: Scripting Engine problem
+Bug Type: Zend Engine 2 problem
-Operating System: 
+Operating System: *
-PHP Version:  5.0.1
+PHP Version:  5CVS-2005-02-28


Previous Comments:


[2005-01-07 13:39:43] vargusz at freemail dot hu

Possibly the same underlying code causes inherited static method calls
to be misreported:
class A {
  static function f () {
$bt = debug_backtrace();
echo "{$bt['class']}\n";
  }
}
class B extends A {}
And both A::f() and B::f() produce 'A'.



[2004-11-18 16:32:47] lists at infospleen dot com

Description:

If class B extends class A, and overrides a method of class A,
debug_backtrace() reports that the method of class A is a method of
class B instead.

Reproduce code:
---
class A {
function __construct() {
$bt = debug_backtrace();
foreach ($bt as $t)
print 
$t['class'].'::'.
$t['function'].'';
}
}

class B extends A {
function __construct() {
parent::__construct();
}
}

$b = new B();

Expected result:

Expected output:

A::__construct
B::__construct


Actual result:
--
Actual output:

B::__construct
B::__construct






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


#31894 [Fbk->NoF]: Calling restore_error_handler inside destructor crashes PHP

2005-02-27 Thread php-bugs
 ID:   31894
 Updated by:   php-bugs@lists.php.net
 Reported By:  adove at mindrage dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: Zend Engine 2 problem
 Operating System: WinXP
 PHP Version:  5.0.3
 New Comment:

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


Previous Comments:


[2005-02-09 23:44:31] [EMAIL PROTECTED]

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

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

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

Also, please try CVS snapshot first - I can't reproduce it with the
parts of the code you've posted.



[2005-02-09 12:24:28] adove at mindrage dot com

Description:

This may be related to an older bug that was fixed (#24708) but I can
reproduce reliably (having spent days and hours chasing!). Basically,
if you call restore_error_handler from __destruct() things go horribly
ary. Interestingly enough, calling restore_exception_handler works just
fine.

This happens both CLI and Apache 2.x. 

Note that it does not matter if you use $this or &$this in the
constructor. 

Reproduce code:
---
function __construct(
&$aConfig
)
{
if(is_array($aConfig))
{
$this->m_aConfig = &$aConfig; // Extraneous but it's in my
constructor.
set_error_handler(array &$this,
"handleRuntimeException"));
set_exception_handler(array($this, "handleException"));
}
}

function __destruct()
{
//restore_error_handler();
restore_exception_handler();
unset($this->m_aConfig);
}



Expected result:

Proper ending of PHP script execution. 

Actual result:
--
Segfault in php5ts.dll, ModVer: 5.0.3.3 Offset: 0004d661





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


#31572 [Fbk->NoF]: Temporary files are not deleted

2005-02-27 Thread php-bugs
 ID:   31572
 Updated by:   php-bugs@lists.php.net
 Reported By:  teasoft at 21cn dot com
-Status:   Feedback
+Status:   No Feedback
 Bug Type: GD related
 Operating System: win32 only
 PHP Version:  4CVS-2005-01-19
 Assigned To:  iliaa
 New Comment:

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


Previous Comments:


[2005-02-20 18:45:04] [EMAIL PROTECTED]

That's just the data copying code, the source should never be 0 bytes
and even if it was due to some error it does not change the deletion
logic.



[2005-02-19 18:23:33] teasoft at 21cn dot com

It's my first time to look into the source codes of PHP.
I found line 1716 in gd.c:

while ((b = fread(buf, 1, sizeof(buf), tmp)) > 0)

is it means a NOT empty file? and i notice .tmp files left are all 0
byte, simply empty. Maybe try >=0 instead will work?



[2005-02-10 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-02 16:59:46] [EMAIL PROTECTED]

Cannot replicate using latest cvs.
The temporary file removal code is identical in *NIX and Win32



[2005-01-19 17:23:02] teasoft at 21cn dot com

The snapshot for Windows provided above does the same thing as 4.3.10,
tmp files are still created and remain.



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

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


#32128 [Fbk->Opn]: Memory leak

2005-02-27 Thread i at downfire dot com
 ID:   32128
 User updated by:  i at downfire dot com
 Reported By:  i at downfire dot com
-Status:   Feedback
+Status:   Open
 Bug Type: Performance problem
 Operating System: linux RH 8.0 Kernel 2.4.x
 PHP Version:  4.3.10
 New Comment:

My english is not that good so here goes:

The script i tried to execute on the server(or better to say, a user
tried to) is found at www.subdreamer.com witch is, as the creators of
it state "a good pice of php scripting". 
Now i made some changes to the webservers here and now the problem
seems to be gone. So i think it's more php with Apache 2.x then the
script it self.

Explanation:
I had a linux RH 8.0 server running apache 2.0.53 with php 4.3.10 with
a mysql at the side witch would be 3.39.x.

On that configuration the script got out of control and the memory got
down to 3700K witch is the minimum of the server memory.

I now `downgraded` the server to Apache 1.3.33 with php 4.3.9. Nou i
tested the script that sucked all the memory on this configuration and
it runs great.

Could this has something to do with Apache 2.0.53? I looks like php
does not work right with the 2.x version of Apache and gets memory
leaks.


Previous Comments:


[2005-02-27 23:22:13] [EMAIL PROTECTED]

Can not reproduce, please provide a short example script.




[2005-02-27 15:03:32] i at downfire dot com

I already used the CVS. That does not solve the problem.

I used ./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql to configure the php since i don't use any other modules
in php.

I'm now compiling apache 1.3.33 with php 4.3.9 to have a look what this
does.



[2005-02-27 14:33:02] [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

And if it still happens, provide the configure line you used.




[2005-02-27 13:40:00] i at downfire dot com

Description:

I get a memory leak from the php on the server. (i'm a webhost)

The first second i got 200MB+ and the next my swap is full and memory
down to 3700 K.

There is a normal script ran. I redused the usage of php memory to 1M
but this does not help us solve te problem.

I use apache 2.0.53 with php 4.3.10 and Asp sun one 4.0.1L.

I have never had this problem with php 4.3.9. it started when i
upgraded to 4.3.10. 

I'm gone downgrade to 4.3.9 untill this problem is solved since i can't
have my server crash every time.

Can you please help us :)






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


#32089 [Fbk->Opn]: Crash during Make with Oracle Instant Client Support

2005-02-27 Thread andrew dot nagy at villanova dot edu
 ID:   32089
 User updated by:  andrew dot nagy at villanova dot edu
 Reported By:  andrew dot nagy at villanova dot edu
-Status:   Feedback
+Status:   Open
 Bug Type: OCI8 related
 Operating System: Fedora Core 3
 PHP Version:  4CVS-2005-02-23 (stable)
 New Comment:

I deleted my source and started from scratch with the same release:
php4-STABLE-200502230130

Here is the output from the configure and make processes:

http://www.webitecture.org/config.log
http://www.webitecture.org/config_output
http://www.webitecture.org/make_log

Im now way past my sys-admin skills, so Im not sure what else to check
for that may be causing this problem.


Previous Comments:


[2005-02-25 22:02:44] [EMAIL PROTECTED]

Well, your config.log doesn't help much as it contains no results at
all.
I just want to see why in hell your compiler doesn't use -rpath and
what ./configure says about it.
Could you try to figure out what's happening there? 



[2005-02-25 19:26:59] andrew dot nagy at villanova dot edu

gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)

http://webitecture.org/config.log

Anything else?

Thanks!



[2005-02-25 18:15:08] [EMAIL PROTECTED]

Erm... "post" -> "give us link to". 



[2005-02-25 18:13:24] [EMAIL PROTECTED]

Thanks.
Please post also your config.log and tell us what GCC version do you
use.



[2005-02-25 15:36:59] andrew dot nagy at villanova dot edu

http://www.webitecture.org/make.log

This seems much shorter since the first time I ran it.  There was many
more compile statments before the error.  Let me know if you want me to
start over, or if this is enough.



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

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


#32099 [Fbk->Opn]: After opening ADO connection and closing it repeatedly, Apache stops service

2005-02-27 Thread terryoh at wins21 dot com
 ID:   32099
 User updated by:  terryoh at wins21 dot com
 Reported By:  terryoh at wins21 dot com
-Status:   Feedback
+Status:   Open
 Bug Type: COM related
 Operating System: Windows 2000 Server
 PHP Version:  4.3.8
 New Comment:

I downloaded the latest php.
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

After upgrading the php module, I tried the same test. But the result
was same. Memory and the count of the handles were increased. After the
session.gc_maxlifetime(php.ini), the result was same.

[Presumption]
I read something about zend engine on a webpage(I can't remeber the web
address exactly), it is that the zend engine doesn't release database
connection to reuse exceptionally. It might be this process causes
trouble between ADO and Zend engine.


Previous Comments:


[2005-02-25 14:20:25] [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-02-25 01:52:36] terryoh at wins21 dot com

Description:

Today, my apache server stopped service. So I tested whether the apache
daemon was ok or not. It worked, because the telnet 80 connection(like
C:/telnet.exe 127.0.0.1 80) was successful. But I could not open any
php pages on the internet explorer.

I checked the memory with windows task manager and I found something
strange. The allocated memory for apache was almost 1GB(998MB) and the
count of the handles was almost 4(39890). 

Finally I found that it was ADO-PHP problem. I could see memory and the
count of handles increased when opening database and closing it
repeatedly(1 try/1 second for an hour). Especially the handles were
never decreased.

[Steps]
1) Register any ODBC DSN(driver=SQL Server)in the control panel.
2) In PHP.INI, set the key name(odbc.default_db) with the DSN;user
ID;password.
3) Start an apache service.
4) Open a test page(in the reproduce code section)in your web browser.
5) Refresh the test page repeatedly once a second.
6) Open windows task manager. If you can not see handle column on the
process tab, add it(Menu->View->Column Selection->Handle).
7) After 1 minute or later, you can see the count of apache handle
increase like 400->401->402->403 Also you can see the memory
increase.




Reproduce code:
---
Open($ConnectionString);

  $AdoConn->Close();
  unset($AdoConn);
?>

* Web Server  : Apache 1.3.28
* PHP : 4.3.8
* OS  : Windows 2000 Server
* DBMS: MSSQL2000 Enterprise Edition
* OTHERS  : MDAC 2.8


Expected result:

Windows Task Manager(Process Tab)
Image name  Memory   Handle
Apache.exe  10,840KB 200 11:00 AM
Apache.exe  10,857KB 201 11:02 AM
Apache.exe  10,867KB 202 11:04 AM
Apache.exe  10,867KB 202 11:06 AM
Apache.exe  10,867KB 202 11:08 AM
Apache.exe  10,867KB 202 11:10 AM
Apache.exe  10,867KB 202 11:12 AM


Actual result:
--
Windows Task Manager(Process Tab)
Image name  Memory   Handle
Apache.exe  10,840KB 200 11:00 AM
Apache.exe  10,857KB 201 11:02 AM
Apache.exe  10,867KB 202 11:04 AM
Apache.exe  10,877KB 203 11:06 AM
Apache.exe  10,886KB 204 11:08 AM
Apache.exe  10,899KB 205 11:10 AM
Apache.exe  10,910KB 206 11:12 AM

Apache.exe  998MB39890





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


#32105 [Fbk->Csd]: imap_sort hangs up on retrieving msg numbers

2005-02-27 Thread bosco at musehub dot com
 ID:   32105
 User updated by:  bosco at musehub dot com
 Reported By:  bosco at musehub dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: IMAP related
 Operating System: Linux RH9
 PHP Version:  4.3.10
 New Comment:

problems arisen not from imap_sort, but with parsing imap structure
with imap_fetchstructure. imap_sort is OK


Previous Comments:


[2005-02-25 14:21:54] [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

If that does not work either check the c-client version you're using.




[2005-02-25 12:12:03] bosco at musehub dot com

Description:

imap_sort hangs up when retrieving a particular email message. Not sure
what is in the mail header or content that causes the hang.

PLEASE NOTE: the same imap_sort function call causes no problems at all
for other e-mail (so far). It is only when I receive such an email when
the php hangs up.




Return-Path: <>
Received: from mail01.opesware.com ([unix socket])
 by mail.opesware.com (Cyrus v2.2.12-1) with LMTPA;
 Fri, 25 Feb 2005 18:33:48 +0800
X-Sieve: CMU Sieve 2.2
MIME-Version: 1.0
Subject: Considered UNSOLICITED BULK EMAIL from you
In-Reply-To: <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>
Content-Type: multipart/report; report-type=delivery-status;
boundary="--=_1109327810-27663-7"
From: amavisd-new <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT)

This is a multi-part message in MIME format...

=_1109327810-27663-7
Content-Type: text/plain; charset="iso-8859-1"
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Your message to:
-> [EMAIL PROTECTED]

was considered unsolicited bulk e-mail (UBE).
Subject: Emailing: www.yahoo.com
Return-Path: <[EMAIL PROTECTED]>

Delivery of the email was stopped!

=_1109327810-27663-7
Content-Type: message/delivery-status
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Content-Description: Delivery error report

Reporting-MTA: dns; mx1.opesware-gateway.com
Received-From-MTA: smtp; mx1.opesware-gateway.com ([127.0.0.1])
Arrival-Date: Fri, 25 Feb 2005 18:36:43 +0800 (HKT)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.7.1
Diagnostic-Code: smtp; 550 5.7.1 Message content rejected, UBE,
id=27663-07
Last-Attempt-Date: Fri, 25 Feb 2005 18:36:50 +0800 (HKT)

=_1109327810-27663-7
Content-Type: text/rfc822-headers
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Content-Description: Undelivered-message headers

Received: from BOSCOWKSTATION (unknown [210.184.55.205])
by mx1.opesware-gateway.com (Postfix) with ESMTP id 89713572D3
for <[EMAIL PROTECTED]>; Fri, 25 Feb 2005 18:36:42 +0800 (HKT)
Message-ID: <[EMAIL PROTECTED]>
From: "Bosco Lau" <[EMAIL PROTECTED]>
To: "Bosco Lau" <[EMAIL PROTECTED]>
Subject: Emailing: www.yahoo.com
Date: Fri, 25 Feb 2005 18:36:02 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="multipart/alternative";
boundary="=_NextPart_000_0007_01C51B68.DBCE8260"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180

=_1109327810-27663-7--



Reproduce code:
---
Basically making a standard and simple call of imap_sort

$sorted_array =
imap_sort($mbox_stream,SORTDATE,1,SE_NOPREFETCH,"","UTF-8");

Expected result:

returning $sorted_array = array(0); <-- 0 being the msg id of the
particular email

Actual result:
--
nothing happens  waiting for eternity ...





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