php-developer-list | 2001122
Date: 12/31/01
- Next message: zak <email protected>: "[PHP-DEV] Bug #14782 Updated: key_exists renamed to array_key_exists"
- Previous message: mfkahn2 <email protected>: "[PHP-DEV] Bug #14783: Using unlink causes segfault"
- In reply to: mike <email protected>: "[PHP-DEV] Bug #14782: key_exists renamed to array_key_exists"
- Next in thread: zak <email protected>: "[PHP-DEV] Bug #14782 Updated: key_exists renamed to array_key_exists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14782
Updated by: zak
Reported By: mike <email protected>
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.1.1
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2001-12-31 15:33:39] mike <email protected>
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
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: zak <email protected>: "[PHP-DEV] Bug #14782 Updated: key_exists renamed to array_key_exists"
- Previous message: mfkahn2 <email protected>: "[PHP-DEV] Bug #14783: Using unlink causes segfault"
- In reply to: mike <email protected>: "[PHP-DEV] Bug #14782: key_exists renamed to array_key_exists"
- Next in thread: zak <email protected>: "[PHP-DEV] Bug #14782 Updated: key_exists renamed to array_key_exists"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

