#15333 [Com]: strndup access violation

2002-11-05 Thread darkwings
 ID:   15333
 Comment by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Open
 Bug Type: IIS related
 Operating System: Windows 2000 Pro
 PHP Version:  4.3.0-dev
 New Comment:

I think this may be caused by some memory used for each page
loading,these memory are allocated but not being released properly.
May be the environment variables used.
The memory leap accumulated until crash the IIS.

Any thing done when a page loaded need to be noticed.


Previous Comments:


[2002-10-29 08:28:56] [EMAIL PROTECTED]

regarding the asp not loading with php as ISAPI...

Try commenting out all the extra loaded extensions in php.ini. (execpt
ones that are in use and necessary)

I had to do this to fix a form submit problem running in .cgi mode that
stripped off characters on submit from normal form posts in PostNuke.

This also made the access violations much much less frequent for ISAPI.



[2002-10-28 13:52:30] [EMAIL PROTECTED]

We are locked in to using IIS with Crystal Reports ASP for web
reporting.  When I run PHP in CGI mode I experience some problems with
pages rendering with errors (if anyone has suggestions in that area I
would love to hear them) - pages will occasionally render with slightly
scrambles source code ... javascript visible in the browser, html
visible in the browser, form fields in the wrong place or the wrong
size.

When PHP is run as an ISAPI mod all of the page scrambling problems go
away.  However, my ASP apps start failing.

Here are the server stats:


PHP Version 4.2.3
Windows NT 5.0 build 2195
SP3



[2002-10-24 14:28:47] [EMAIL PROTECTED]

Ran into this bug again. This happens either when I'm using the old
style of using global variables or repeatedly accessing codes that have
mistakes.



[2002-10-24 13:31:11] [EMAIL PROTECTED]

Dual Proc Win2k sp2+hotfixes...

4.2.3 as CGI no prob.  As ISAPI Same prob as everyone else works for a
few minutes then...  access violations... then ISAPI stops responding
but I have a virtual DIR with set as CGI and that continues working...

can be seen with the simple phpinfo.php idea.  

Please continue to investigate.   

Thanks.

Matt W.



[2002-10-22 06:08:12] [EMAIL PROTECTED]

I'm trying to use the Webfroot Shoutbox script for testing
purposes.This had happened to me about everytime I tried to execute the
script.

I'm using PHP 4.2.3 and Windows XP. Today, I finally able to stop the
error from reproducing by changing the settings in php.ini
register_globals = Off to register_globals = On.



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

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




Bug #15771: cannot pass value to image field by ado

2002-02-27 Thread darkwings

From: [EMAIL PROTECTED]
Operating system: windows
PHP version:  4.0.6
PHP Bug Type: COM related
Bug description:  cannot pass value to image field by ado

Since PHP can support COM and I usually use php in windows,
I try to use database like mssql through ado.
All things work properly but the image datatype of mysql cannot be set 
correctly.
I use it just like this
Open("Provider=sqloledb;Data Source=ndht;Initial
Catalog=printers;User Id=printers;Password=printers;");
$fp=fopen("5.gif","r") or die ("file opening error");
$content = fread ($fp, filesize ("5.gif"));
fclose ($fp);
echo filesize ("5.gif");
$rec=new COM("ADODB.recordset");
$rec->open("select * from sav",$dbconn);
$rec->addnew();
$rec->fields["datas"]->AppendChunk($content);
$rec->update();
$rec->close();
$rec=null;
$dbconn->close();
$dbconn=null;
?>

I think that windows use two type text for strings and binary for the 8bit
chars, but in php string are both of
these.
So when trans the data to mssql,the variables be string of
window first, and the information were lost.
-- 
Edit bug report at http://bugs.php.net/?id=15771&edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=15771&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=15771&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=15771&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15771&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15771&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15771&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15771&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15771&r=submittedtwice




Bug #15771 Updated: cannot pass value to image field by ado

2002-03-12 Thread darkwings

 ID:   15771
 Updated by:   [EMAIL PROTECTED]
 Reported By:  [EMAIL PROTECTED]
 Status:   Suspended
 Bug Type: COM related
 Operating System: windows
 PHP Version:  4.0.6
 New Comment:

i think it is not necessary to rewrite,just use a function
like binarywrite() in asp(Active Server Page),
int binarywrite ($variant,$source)
return the length copied.


Previous Comments:


[2002-03-11 13:04:50] [EMAIL PROTECTED]

hmm, this is a bit difficult because strings become usually translated
into unicode which is usually a good thing(tm) but unfortunatelly not
in this case.
as i'm actually rewriting the whole thing for php5/ZE2 i don't think
that i'll address this yet.

harald

ps: don't use ado, it's slw :)



[2002-02-27 21:29:09] [EMAIL PROTECTED]

Since PHP can support COM and I usually use php in windows,
I try to use database like mssql through ado.
All things work properly but the image datatype of mysql cannot be set 
correctly.
I use it just like this
Open("Provider=sqloledb;Data Source=ndht;Initial
Catalog=printers;User Id=printers;Password=printers;");
$fp=fopen("5.gif","r") or die ("file opening error");
$content = fread ($fp, filesize ("5.gif"));
fclose ($fp);
echo filesize ("5.gif");
$rec=new COM("ADODB.recordset");
$rec->open("select * from sav",$dbconn);
$rec->addnew();
$rec->fields["datas"]->AppendChunk($content);
$rec->update();
$rec->close();
$rec=null;
$dbconn->close();
$dbconn=null;
?>

I think that windows use two type text for strings and binary for the
8bit chars, but in php string are both of
these.
So when trans the data to mssql,the variables be string of
window first, and the information were lost.




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