Ticket #186 (new enhancement)

Opened 2 years ago

Last modified 2 years ago

RFE: eaccelerator_isset() function

Reported by: kmike Assigned to: somebody
Priority: major Milestone: 0.9.6
Component: eAccelerator Version: 0.9.5
Keywords: Cc:

Description

It would be nice to have eaccelerator_isset() function which will check for the existance of a cached object/variable/array in the shared memory. Right now it's impossible to distinguish between the stored NULL and the "key doesn't exist" error when using eaccelerator_get(). The proposed function would resolve this ambiguity.

Change History

10/20/06 00:34:57 changed by tomlove

PHP itself doesn't distinguish between NULL and "doesn't exist". isset(), is_null() etc. return false for both.

I think this would just introduce an ambiguity rather than solve one. Seems more like a design issue.

10/26/06 23:49:19 changed by blueyed

But PHP has array_key_exists() :)