Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-1274

Implement $slice aggregation operator

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • builder-0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      $slice aggregation operator have an optional argument in the middle of required arguments. This is not supported by PHP function arguments. 

      We can move <position> to the end, and rely on named arguments only, but that doesn't match with the documentation and the array encoding generates [ <array>, <n>, <position> ] (<position> is last) instead of [ <array>, <position>, <n> ] 

            Assignee:
            Unassigned Unassigned
            Reporter:
            jerome.tamarelle@mongodb.com Jérôme Tamarelle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: