#28842 [NEW]: Wrong example in ftp_exec documentation

From: Date: Sat, 19 Jun 2004 15:21:18 +0000
Subject: #28842 [NEW]: Wrong example in ftp_exec documentation
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969361433@lists.php.net to get a copy of this message
From: demenev at on-line dot jar dot ru Operating system: N/A PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Wrong example in ftp_exec documentation Description: ------------ ftp_exec returns boolean, and example of this function in manual uses return value of this function as it was a string: if ($res = ftp_exec($conn_id, $command)) { echo "$command executed successfully<br />\n"; echo nl2br($res); } else { echo 'could not execute ' . $command; } -- Edit bug report at http://bugs.php.net/?id=28842&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28842&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28842&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28842&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28842&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28842&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28842&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28842&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28842&r=support Expected behavior: http://bugs.php.net/fix.php?id=28842&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28842&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28842&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28842&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28842&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28842&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28842&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28842&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28842&r=float

« previous php.doc (#969361433) next »