Bug #14782 Updated: key_exists renamed to array_key_exists

From: Date: Mon, 31 Dec 2001 21:59:42 +0000
Subject: Bug #14782 Updated: key_exists renamed to array_key_exists
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-75464@lists.php.net to get a copy of this message
ID: 14782 Updated by: zak Reported By: mike@newfangled.com Old Status: Feedback Status: Closed Bug Type: Feature/Change Request Operating System: all PHP Version: 4.1.1 Assigned To: zak New Comment: As "Someone Who Shall Not Be Named Because They Are Also On Vacation" has pointed out to me off list, it would be a bad thing to have functions disappearing and reappearing between versions. The function shall stay as is - please adjust your scripts accordingly. Thank you. Previous Comments: ------------------------------------------------------------------------ [2001-12-31 16:37:26] zak@php.net Assigning to myself ------------------------------------------------------------------------ [2001-12-31 16:21:14] zak@php.net Hi Mike, Unless one of the developers objects, I will add the alias - however, if the change is made, it would not show up 'til the next release. I would recommend that you modify your files anyway. It is a small amount of work using gawk or vim. :) Alternately, you can modify your local copy of PHP until next release. Add the following line to ext/standard/basic_functions.c: PHP_FALIAS(key_exists, array_key_exists, NULL) The line should go after the line that looks like: PHP_FE(array_key_exists, NULL) Once you have made the change and saved, recompile PHP. ------------------------------------------------------------------------ [2001-12-31 15:33:39] mike@newfangled.com I have a very large PHP application running on my Linux web server that uses the 4.0.6 function key_exists. The problem is that I have 30 copies of this application running on the server. If I upgrade my server to php 4.1.1, I will be forced to upgrade all 30 sites with a new version of my application where array_key_exists is used instead. This is a HUGE undertaking. Is there any way to put the key_exists alias back in so that PHP compatiblity is not broken? Thank you ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=14782&edit=1

« previous php.dev (#75464) next »