cvs: php4 /ext/standard/ dir.c

From: Date: Sun, 04 Jun 2000 07:57:40 +0000
Subject: cvs: php4 /ext/standard/ dir.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-16125@lists.php.net to get a copy of this message
stas Sun Jun 4 00:57:40 2000 EDT Modified files: /php4/ext/standard dir.c Log: chdir returns 0 on success, compare against it Index: php4/ext/standard/dir.c diff -u php4/ext/standard/dir.c:1.34 php4/ext/standard/dir.c:1.35 --- php4/ext/standard/dir.c:1.34 Tue May 23 08:13:16 2000 +++ php4/ext/standard/dir.c Sun Jun 4 00:57:40 2000 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: dir.c,v 1.34 2000/05/23 15:13:16 sas Exp $ */ +/* $Id: dir.c,v 1.35 2000/06/04 07:57:40 stas Exp $ */ /* {{{ includes/startup/misc */ @@ -212,7 +212,7 @@ ret = V_CHDIR((*arg)->value.str.val); - if (ret < 0) { + if (ret != 0) { php_error(E_WARNING, "ChDir: %s (errno %d)", strerror(errno), errno); RETURN_FALSE; }

« previous php.version4 (#16125) next »