From:             [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:      4.0.6
PHP Bug Type:     YP/NIS related
Bug description:  Error in yp_match return value

After upgrading to PHP v4.0.6 from v4.0.5 this problem seems to have
started. When using yp_match() the documentation states:

"yp_match() returns the value associated with the passed key out of the
specified map or FALSE"

However, FALSE is *NOT* returned if the key does not exist. Instead, I get
the warning:

"Warning: no such key in map in [my script] on line [my line]"

As a quick fix, I surpress the error with @yp_match(). Has the function
changed or is the documentation wrong?

My config is as follows:
./configure  
--with-apxs=/afs/rcf/apps/apache/sun4x_57/1.3.20/bin/apxs 
--with-config-file-path=/afs/rcf/apps/apache/sun4x_57/1.3.20/conf
--prefix=/afs/rcf/apps/apache/sun4x_57/1.3.20 
--with-pgsql=/afs/rcf/apps/pgsql 
--with-imap=/afs/rcf/admin/local 
--with-ldap=/afs/rcf/admin/local 
--with-xml 
--without-mysql 
--enable-track-vars 
--enable-magic-quotes 
--enable-yp 
--enable-debug 
--disable-short-tags
-- 
Edit bug report at: http://bugs.php.net/?id=12345&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to