Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-356

Object serialization should not include private or protected properties

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The test at 10gen-labs/mongo-hhvm-driver-prototype/tests/bson-serialize-object-001.phpt tests as a second case to not include private/protected properties as per spect.

      ```
      class SolidClass

      { public $bread = "okay"; protected $cheese = "great"; private $cant = "touch that"; }

      ```

      Should get serialized to:

      ```

      { "bread" : "okay" }

      ```

      And not:
      ```

      { "bread" : "okay", "cheese" : "great", "cant" : "touch that" }

      ```

            Assignee:
            Unassigned Unassigned
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: