Justtechjobs.com Find a programming school near you






Online Campus Both


php-developer-list | 2001122

[PHP-DEV] Bug #14782 Updated: key_exists renamed to array_key_exists From: zak <email protected>
Date: 12/31/01

ID: 14782
Updated by: zak
Reported By: mike <email protected>
Status: Feedback
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.1.1
Old Assigned To:
Assigned To: zak
New Comment:

Assigning to myself

Previous Comments:
------------------------------------------------------------------------

[2001-12-31 16:21:14] zak <email protected>

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 <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>