note 37182 added to function.fprintf

From: Date: Thu, 06 Nov 2003 03:09:16 +0000
Subject: note 37182 added to function.fprintf
Groups: php.notes 
Request: Send a blank email to php-notes+get-59969@lists.php.net to get a copy of this message
This is a fix for the wrapper function I posted in my previous note. If $format contains a " character when $substr is declared; the eval() call will fail. So add the line below _before_ $sprintf is declared and this will be fixed. $format = str_replace('"','\"',$format); ---- Manual Page -- http://www.php.net/manual/en/function.fprintf.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37182 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37182&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37182&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59969) next »