Zend Framework

null values are treated as missing data instead of an empty value

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.9.2
  • Component/s: Zend_Filter_Input
  • Labels:
    None

Description

A couple of BC breaks occurred in the latest releases of Zend Framework (1.8.3/1.8.4) to Zend_Filter_Input. Specifically, the way "allowEmpty" and empty fields are being handled. Part of it is that isset() is being used on line 830 of Zend/Filter/Input.php, so null data values are considered missing, even though the key exists in the array. The usage of isset() should be changed to array_key_exists() on that line. This is a huge BC break as it now requires me to mark the presence of fields optional where I only previously had to allow them to be empty.

Activity

Hide
Thomas Weidner added a comment -

Fixed with r17757

Show
Thomas Weidner added a comment - Fixed with r17757

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: