Doc #52132 [Opn->Csd]: Incorrect unlink example

From: Date: Mon, 21 Jun 2010 11:47:40 +0000
Subject: Doc #52132 [Opn->Csd]: Incorrect unlink example
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4579@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52132&edit=1 ID: 52132 Updated by: salathe@php.net Reported by: paul dot lautman at gmail dot com Summary: Incorrect unlink example -Status: Open +Status: Closed Type: Documentation Problem Package: Documentation problem PHP Version: Irrelevant -Assigned To: +Assigned To: salathe New Comment: This bug has been fixed in the documentation's XML sources. Since the online and downloadable versions of the documentation need some time to get updated, we would like to ask you to be a bit patient. Thank you for the report, and for helping us make our documentation better. Previous Comments: ------------------------------------------------------------------------ [2010-06-21 13:46:37] salathe@php.net Automatic comment from SVN on behalf of salathe Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=300632 Log: remove bad example (unlink a directory) - closes doc #52132 ------------------------------------------------------------------------ [2010-06-21 13:37:32] paul dot lautman at gmail dot com Description: ------------ On the manual page: http://nl2.php.net/manual/en/function.unlink.php the Examples show: Basic unlink() usage: <?php $fh = fopen('test.html', 'a'); fwrite($fh, '<h1>Hello world!</h1>'); fclose($fh); mkdir('testdir', 0777); unlink('test.html'); unlink('testdir'); ?> But unlink is not valid for a directory (php issues a warning and does not delete the directory) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52132&edit=1

« previous php.doc.bugs (#4579) next »