|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-07-25 16:41 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 19:00:01 2025 UTC |
note: magic_quotes_gpc & runtime are both disabled (0). data for a jpeg: original length: 2061 after addslashes: 2229 after strip: 2061 after select before strip: 2061 after select after strip: 4 code that produced the error (was tracking the bug down): $mylink = mysql_connect( "localhost", "mike", "mypass"); mysql_select_db( "mydb",$mylink); $myqry = mysql_query( "delete from thumbs where oid = 999999",$mylink); $fh = fopen( "1a.jpg", "r"); $pic = fread($fh,filesize( "1a.jpg")); $mypic = addslashes($pic); $pic2 = stripslashes($mypic); $pics = strlen($pic); $mypics = strlen($mypic); $pic2s = strlen($pic2); $myqry = mysql_query( "insert into thumbs (oid,thumb) values ('999999','$mypic')",$mylink); $myqry = mysql_query( "select * from thumbs where oid = '999999'",$mylink); $myarr = mysql_fetch_array($myqry); $mypic2 = $myarr[ "thumb"]; $mypic2s = strlen($mypic2); $mypic3 = stripslashes($mypic2); $mypic3s = strlen($mypic3);