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

CreateIndexes should check types of values within keys document

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      If the user happens to pass a non-scalar value within the keys document (i.e. index specification), PHP may produce a notice for an array-to-string conversion when the library attempts to construct an index name. Depending on the user's configuration, this notice could be ignored. Considering validating that all values within keys are scalars (or more strictly, numbers and strings).

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: