Object serialization should not include private or protected properties

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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
              Reporter:
              Derick Rethans
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: