#24244 [Com]: odbc_errormsg() sometimes returns a bad string when no error occurs

2005-01-30 Thread zoop at lone dot ath dot cx
 ID:   24244
 Comment by:   zoop at lone dot ath dot cx
 Reported By:  bl at btn dot de
 Status:   No Feedback
 Bug Type: ODBC related
 Operating System: Red Hat Linux
 PHP Version:  4.3.2
 New Comment:

I thought I did have a problem running odbc_error() but it looks like
it's been clean everytime but as you can see the errormsg seems to get
random stuff.   I'll post to this bug if I see the problem again while
useing odbc_error()


I've just ran into this problem myself.  it's with db2. the error is
usually less frequent for me but sometimes it will happen many times in
a row.

this is the code I used to get the random garbage.

$conn_id = odbc_connect(netmap,user,pass);
$err=odbc_errormsg($conn_id);
if($err) {
var_dump(odbc_error());
print .$err.;
}


this is the output of an error.
@\y—¶Öçù 5Kbz“­Èä^o”¨½Óê5Pl‰§Ææ÷
0E[rŠ£½Øô/Nn‘¤¸Íãú+E`|™·Öö,@Uk‚š³Íè!?^~¡´ÈÝó ;UpŒ


This also happens: I just added the var_dump(odbc_error())here: 

string(0)  My Company Ltd [SSL_SERVER_I_DN_CN] = [EMAIL PROTECTED]
[SSL_SERVER_I_DN_EMAILADDRESS] = [EMAIL PROTECTED]
[SSL_SERVER_M_SERIAL] = 05 [SSL_SERVER_V_START] = Oct 13 22:08:48
2004 GMT [SSL_SERVER_V_END] = Oct 13 22:08:48 2005 GMT
[SSL_SERVER_M_VERSION] = 3 [GATEWAY_INÉ 


this one is also odd it seems to be loading other php files and
spitting them out here not sure how. this page wasn't being accessed
when this error occured. this is an a line for another .php file on the
system.

string(0)  r:cwa2.jar:. blueAuth .escapeshellcmd($user).
.escapeshellcmd($pass). \.escapeshellcmd($group) 3

Another:
string(0)  ÿÿ

I now changed the script to be a connect of course first.:

var_dump(odbc_error());
$err=odbc_errormsg($conn_id);
if($err) {
print .$err.;
}

string(0)  ÿÿ


Previous Comments:


[2003-08-01 06:09:31] [EMAIL PROTECTED]

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





[2003-07-27 13:19:29] [EMAIL PROTECTED]

Actually I wanted to see the error id not the error message. So please
tell me what is the output of:
var_dump(odbc_error())



[2003-06-26 18:23:37] [EMAIL PROTECTED]

Do not add comments to your own report, use this link:
http://bugs.php.net/bug.php?id=24244edit=2




[2003-06-26 04:07:16] mb at btn dot de

Output of var_dump(odbc_errormsg()) as follows:

string(146)
31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:

string(122)
1:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:

These are only two examples. I had to reproduce the error in a small
script to generate these. That's why the variety is not that great like
in our production environment where we currently use a dirty workaround.



[2003-06-18 10:24:52] [EMAIL PROTECTED]

What does var_dump(odbc_error()) return after a valid query?



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

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


#25393 [NEW]: Session Variable is cleared with every connection

2003-09-06 Thread zoop at lone dot ath dot cx
From: zoop at lone dot ath dot cx
Operating system: Solaris 2.8
PHP version:  4.3.3
PHP Bug Type: Session related
Bug description:  Session Variable is cleared with every connection

Description:

The problem occured in php 4.3.3 apache 1.3.27 solaris 2.8
I seemed to have a problem with the $_SESSION Variable I could set
something in the array and the print it but I couldn't go to another page.
It would have an empty array.
I downgraded to 4.3.2 and it works without any probems

Reproduce code:
---
if (!$_SESSION['the']) {
 print here;
}

$_SESSION['the'] = 1

html submit to load the page again

Expected result:

the first time you load the page it should print here and whatever html
there might be.  after you reload the page or post to it it shouldn't
print here.

Actual result:
--
it prints here every time you load the page.  if you print the value of
$_SESSION['the'] it is undefined.

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


#25393 [Bgs]: Session Variable is cleared with every connection

2003-09-06 Thread zoop at lone dot ath dot cx
 ID:   25393
 User updated by:  zoop at lone dot ath dot cx
 Reported By:  zoop at lone dot ath dot cx
 Status:   Bogus
 Bug Type: Session related
 Operating System: Solaris 2.8
 PHP Version:  4.3.3
 New Comment:

I thought that this session.auto_start = 1 option made it so you
didn't have to use session_start()

I am useing the same config file from version 4.3.2 and 4.3.3 and 4.3.3
doesn't keeps the session variable around.


Previous Comments:


[2003-09-06 05:05:41] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

YOu probably forgot about session_start()



[2003-09-06 02:45:21] zoop at lone dot ath dot cx

Description:

The problem occured in php 4.3.3 apache 1.3.27 solaris 2.8
I seemed to have a problem with the $_SESSION Variable I could set
something in the array and the print it but I couldn't go to another
page. It would have an empty array.
I downgraded to 4.3.2 and it works without any probems

Reproduce code:
---
if (!$_SESSION['the']) {
 print here;
}

$_SESSION['the'] = 1

html submit to load the page again

Expected result:

the first time you load the page it should print here and whatever html
there might be.  after you reload the page or post to it it shouldn't
print here.

Actual result:
--
it prints here every time you load the page.  if you print the value of
$_SESSION['the'] it is undefined.





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


#25393 [Bgs-Opn]: Session Variable is cleared with every connection

2003-09-06 Thread zoop at lone dot ath dot cx
 ID:   25393
 User updated by:  zoop at lone dot ath dot cx
 Reported By:  zoop at lone dot ath dot cx
-Status:   Bogus
+Status:   Open
 Bug Type: Session related
 Operating System: Solaris 2.8
 PHP Version:  4.3.3
 New Comment:

I don't know if I needed to change the status or if I could of this
bug.


Previous Comments:


[2003-09-06 10:34:17] zoop at lone dot ath dot cx

I thought that this session.auto_start = 1 option made it so you
didn't have to use session_start()

I am useing the same config file from version 4.3.2 and 4.3.3 and 4.3.3
doesn't keeps the session variable around.



[2003-09-06 05:05:41] [EMAIL PROTECTED]

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

Thank you for your interest in PHP.

YOu probably forgot about session_start()



[2003-09-06 02:45:21] zoop at lone dot ath dot cx

Description:

The problem occured in php 4.3.3 apache 1.3.27 solaris 2.8
I seemed to have a problem with the $_SESSION Variable I could set
something in the array and the print it but I couldn't go to another
page. It would have an empty array.
I downgraded to 4.3.2 and it works without any probems

Reproduce code:
---
if (!$_SESSION['the']) {
 print here;
}

$_SESSION['the'] = 1

html submit to load the page again

Expected result:

the first time you load the page it should print here and whatever html
there might be.  after you reload the page or post to it it shouldn't
print here.

Actual result:
--
it prints here every time you load the page.  if you print the value of
$_SESSION['the'] it is undefined.





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