note 81310 deleted from function.rmdir by aidan

From: Date: Wed, 15 Apr 2009 04:22:04 +0000
Subject: note 81310 deleted from function.rmdir by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153238@lists.php.net to get a copy of this message
Note Submitter: anonymous ---- WARNING: the code posted by Anonymous on Feb 15 2008 contains a serious typo that will delete everything in the hierarchy of the deleted path. The line <?php if ( (!strcmp($item, '.')) OR (!strcmp($item, '..')) ) continue; // WRONG! ?> should be <?php if ( (!strcmp($item, '.')) AND (!strcmp($item, '..')) ) continue; // correct ?>

« previous php.notes (#153238) next »