#48943 [NEW]: Connection Reset

2009-07-16 Thread guillermog at tricuspide dot com
From: guillermog at tricuspide dot com
Operating system: Windows 7 RC
PHP version:  5.3.0
PHP Bug Type: Unknown/Other Function
Bug description:  Connection Reset

Description:

I have a web page with several iframes and iterations on rows from a mysql
database.

The problem is that when I load the page the iframes will show Connection
Reset in Firefox like if the server was overloaded.

Besides, in Apache's error.log the following error is shown:
Parent: child process exited with status 255

The same happens in 1 of 2 times if I load the page alone (not as an
iframe). The Iframe prints several rows (maybe 1000, from a mysql table)
but just after finishing the Connection is Reset

The system works perfectly up to 5.2.9 but doesnt works with 5.3.0 nor
5.3.1-dev, this is why I thing is a php5.3-related problem.

I'm sorry but i could not reproduce this problem in a short script.

Windows 7 RC
Apache 2.2.11

Expected result:

Page loaded

Actual result:
--
Connection Reset by server

-- 
Edit bug report at http://bugs.php.net/?id=48943edit=1
-- 
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=48943r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=48943r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=48943r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=48943r=fixedcvs
Fixed in CVS and need be documented: 
http://bugs.php.net/fix.php?id=48943r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=48943r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=48943r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=48943r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=48943r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=48943r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=48943r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=48943r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=48943r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=48943r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=48943r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=48943r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=48943r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=48943r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=48943r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=48943r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=48943r=mysqlcfg



#48943 [Fbk-Opn]: Connection Reset

2009-07-16 Thread guillermog at tricuspide dot com
 ID:   48943
 User updated by:  guillermog at tricuspide dot com
 Reported By:  guillermog at tricuspide dot com
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Windows 7 RC
 PHP Version:  5.3.0
 New Comment:

I really privided all the information I have. I think this is a real 
problem.

Do you need anything else in specific?

I really want to help to have this solved!


Previous Comments:


[2009-07-16 13:01:44] j...@php.net

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.






[2009-07-16 12:49:07] guillermog at tricuspide dot com

Description:

I have a web page with several iframes and iterations on rows from a
mysql database.

The problem is that when I load the page the iframes will show
Connection Reset in Firefox like if the server was overloaded.

Besides, in Apache's error.log the following error is shown:
Parent: child process exited with status 255

The same happens in 1 of 2 times if I load the page alone (not as an
iframe). The Iframe prints several rows (maybe 1000, from a mysql table)
but just after finishing the Connection is Reset

The system works perfectly up to 5.2.9 but doesnt works with 5.3.0 nor
5.3.1-dev, this is why I thing is a php5.3-related problem.

I'm sorry but i could not reproduce this problem in a short script.

Windows 7 RC
Apache 2.2.11

Expected result:

Page loaded

Actual result:
--
Connection Reset by server





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



#48943 [Fbk-Opn]: Connection Reset

2009-07-16 Thread guillermog at tricuspide dot com
 ID:   48943
 User updated by:  guillermog at tricuspide dot com
 Reported By:  guillermog at tricuspide dot com
-Status:   Feedback
+Status:   Open
 Bug Type: *General Issues
 Operating System: Windows 7 RC
 PHP Version:  5.3.0
 New Comment:

Thanks Jani,

I debugged my script trying to find if there's any command that could 
make this happen. I could isolated the problem so the code that 
reproduces the error is:

?
$dbh=mysql_connect (localhost, root, mysqluser) or die 
('I cannot connect to the database because');
mysql_select_db (bbbac_globaldata) or die( Unable to select 
database);


mysql_close();

?

Comment out mysql_close() and no error will happen.

Guillermo


Previous Comments:


[2009-07-16 13:28:03] j...@php.net

You need to come up with a simple script that shows the problem. Most
likely it has to do with mysql stuff. Search this bug db for mysql*
related issues for PHP 5.3 and you'll propably find the real problem.



[2009-07-16 13:22:00] guillermog at tricuspide dot com

I really privided all the information I have. I think this is a real 
problem.

Do you need anything else in specific?

I really want to help to have this solved!



[2009-07-16 13:01:44] j...@php.net

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.






[2009-07-16 12:49:07] guillermog at tricuspide dot com

Description:

I have a web page with several iframes and iterations on rows from a
mysql database.

The problem is that when I load the page the iframes will show
Connection Reset in Firefox like if the server was overloaded.

Besides, in Apache's error.log the following error is shown:
Parent: child process exited with status 255

The same happens in 1 of 2 times if I load the page alone (not as an
iframe). The Iframe prints several rows (maybe 1000, from a mysql table)
but just after finishing the Connection is Reset

The system works perfectly up to 5.2.9 but doesnt works with 5.3.0 nor
5.3.1-dev, this is why I thing is a php5.3-related problem.

I'm sorry but i could not reproduce this problem in a short script.

Windows 7 RC
Apache 2.2.11

Expected result:

Page loaded

Actual result:
--
Connection Reset by server





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



#48943 [Opn]: Connection Reset

2009-07-16 Thread guillermog at tricuspide dot com
 ID:   48943
 User updated by:  guillermog at tricuspide dot com
 Reported By:  guillermog at tricuspide dot com
 Status:   Open
 Bug Type: *General Issues
 Operating System: Windows 7 RC
 PHP Version:  5.3.0
 New Comment:

In brief, if no link Identifier is given to mysql_close() the function

makes apache crash.

regards,
Guillermo


Previous Comments:


[2009-07-16 13:56:17] guillermog at tricuspide dot com

Thanks Jani,

I debugged my script trying to find if there's any command that could 
make this happen. I could isolated the problem so the code that 
reproduces the error is:

?
$dbh=mysql_connect (localhost, root, mysqluser) or die 
('I cannot connect to the database because');
mysql_select_db (bbbac_globaldata) or die( Unable to select 
database);


mysql_close();

?

Comment out mysql_close() and no error will happen.

Guillermo



[2009-07-16 13:28:03] j...@php.net

You need to come up with a simple script that shows the problem. Most
likely it has to do with mysql stuff. Search this bug db for mysql*
related issues for PHP 5.3 and you'll propably find the real problem.



[2009-07-16 13:22:00] guillermog at tricuspide dot com

I really privided all the information I have. I think this is a real 
problem.

Do you need anything else in specific?

I really want to help to have this solved!



[2009-07-16 13:01:44] j...@php.net

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.






[2009-07-16 12:49:07] guillermog at tricuspide dot com

Description:

I have a web page with several iframes and iterations on rows from a
mysql database.

The problem is that when I load the page the iframes will show
Connection Reset in Firefox like if the server was overloaded.

Besides, in Apache's error.log the following error is shown:
Parent: child process exited with status 255

The same happens in 1 of 2 times if I load the page alone (not as an
iframe). The Iframe prints several rows (maybe 1000, from a mysql table)
but just after finishing the Connection is Reset

The system works perfectly up to 5.2.9 but doesnt works with 5.3.0 nor
5.3.1-dev, this is why I thing is a php5.3-related problem.

I'm sorry but i could not reproduce this problem in a short script.

Windows 7 RC
Apache 2.2.11

Expected result:

Page loaded

Actual result:
--
Connection Reset by server





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



#48754 [Com]: mysql_close() crash php when no handle specified

2009-07-16 Thread guillermog at tricuspide dot com
 ID:   48754
 Comment by:   guillermog at tricuspide dot com
 Reported By:  busia at tiscali dot it
 Status:   Verified
 Bug Type: MySQL related
 Operating System: *
 PHP Version:  5.3.0 (as of 21-07-2008)
 Assigned To:  mysql
 New Comment:

Still in the release, I really think lot's of people are having the
same 
problem with their sctripts!!

I filled a bug report hours ago to later accidentally find that it was
a 
very simple problem. Once I found the problem I looked for mysql_close

and version 5.3 to find this bug report.

Uff finnally after the whole day!!!

Regards,

Guillermo


Previous Comments:


[2009-07-14 01:50:03] sujoe_2006 at 163 dot com

my development evioronment is 
   windows xp sp2
   apache 2.2
   php 5.3.0
   mysql 5.1.36

I write some code in test.php
?php
   $conn = mysql_connect('ip','user','password');
   mysql_close();
?
then ,I Will be catched a error by apache 2.2,it is:
...
0x006e2072 in httpd.exe: 0xC005:
Access violation when reading location 0x.
...

but when check the mysql_close function like this for test.php
?php
   $conn = mysql_connect('ip','user','password');
   mysql_close($conn);
?
it will work no any error.
so ,i want to know its reason of the mysql_close(),please mail to me
Thanks!



[2009-07-07 14:47:28] xektrum at gmail dot com

Description:
--
I can confirm this, I'm having the same issue with php 5.3 and apache2
when calling mysql_close without a mysql_link as parameter.

Reproduce code: 
--
?php

mysql_connect('localhost','root','password');
mysql_close(); // win32 uncaught exception catched by MSVS

?

Workaround/not crashing:
--
?php
$link = mysql_connect('localhost','root','password');
mysql_close($link);
?

Exception :
--
Not handled Exception in 0x006e2072 in httpd.exe: 0xC005:
Access violation when reading location 0x.

Note : The Exception has been translated so it is not literal



[2009-07-02 16:45:00] u...@php.net

Really a great one.

The bug exists since 21-07-2008. That is 11 months and 1 week ago.
Sometimes I which users would try non-GA versions just in case test
suites don't catch issues...

This is when the bug was introduced:
http://cvs.php.net/viewvc.cgi/php-src/ext/mysql/php_mysql.c?r1=1.213.2.6.2.16.2.22r2=1.213.2.6.2.16.2.23;

mysql_link points to NULL and that's causing a crash. 

Possible workaround (as suggested by Johannes):

nixn...@linux-en61:~/src/login/php5 cvs diff ext/mysql/tests/
cvs diff: Diffing .
cvs diff: Diffing ext
cvs diff: Diffing ext/mysql
cvs diff: Diffing ext/mysql/tests
nixn...@linux-en61:~/src/login/php5 cvs diff ext/mysql/
cvs diff: Diffing ext/mysql
Index: ext/mysql/php_mysql.c
===
RCS file: /repository/php-src/ext/mysql/php_mysql.c,v
retrieving revision 1.213.2.6.2.16.2.37
diff -r1.213.2.6.2.16.2.37 php_mysql.c
372a373,376
 #ifdef MYSQL_USE_MYSQLND
   mysqlnd_end_psession(link-conn);
 #endif

987,995c991
 #ifdef MYSQL_USE_MYSQLND
   {
   int tmp;
   if ((mysql = zend_list_find(Z_RESVAL_P(mysql_link),
tmp))  tmp == le_plink) {
   mysqlnd_end_psession(mysql-conn);
   }
   }
 #endif
   if (mysql_link) { /* explicit resource number */
---
   if (mysql_link) {
cvs diff: Diffing ext/mysql/tests


Someone may want to review that.



[2009-07-02 13:05:17] u...@php.net

This one is funny. It may have existed since more than one year now and
nobody has ever found it.



[2009-07-01 21:59:31] busia at tiscali dot it

1) The sleep function is not needed
2) The connection is successfull

An other information: if I save in $a the mysql_connect return value
and pass it to mysql_close php doesn't crash. In othe words this script
works well:
?
$a=mysql_connect('127.0.0.1', 'root', 'root');
mysql_close($a);
?

This instead crashes php:
?
mysql_connect('127.0.0.1', 'root', 'root');
mysql_close();
?



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

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