Menu

#89 zend 2.0/PHP 4.3 breaks functions

open-postponed
nobody
Session (11)
5
2002-09-25
2002-06-19
No

Zend 2.0 changes the way classes are handled.
http://www.php.net/ZEND_CHANGES.txt

first problem that sticks out it delele() can no longer
be a function name. delete() is a functions in
session.inc and sessions4.inc

from the change long
* Forced deletion of objects.

The Zend Engine 1.0 had no means to force
deletion of an object
if there are still references to it. The newly
introduced delete
statement calls the object's destructor and frees
it even if the
object is referenced by some other places in the
engine. Other
references to the deleted object become stale
and trying to
access them results in a fatal error.

Note that if you have a user-defined function
delete() in an old
script, this script will yield a parser error with the
Zend
Engine 2.0, since 'delete' is now a reserved word.

Discussion

  • Anonymous

    Anonymous - 2002-09-25
    • labels: --> Session
    • status: open --> open-postponed
     
  • Anonymous

    Anonymous - 2002-09-25

    Logged In: YES
    user_id=279065

    This is easy to change in the PHPLIB code to fix, but anybody
    upgrading will find their existing applications which use the
    session delete method failing. Thus, we need to carefully
    schedule this change into the release cycle so that it is part of a
    major release, where users upgrading have a good expectation of
    having to modify their code to use the new PHPLIB.
    Documentation will also need to be changed in concert with this
    change.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.