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

Use separate namespaces for examples

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.16.1
    • Affects Version/s: 1.15.0
    • Component/s: None
    • None

      Hello!

      I believe I may have found a small issue when using mongodb/mongodb with
      "appstract/laravel-opcache": "^4.0".
      Appstract\Opcache\Http\Controllers\OpcacheController@compile results in:
      Symfony\Component\ErrorHandler\Error\FatalError: Cannot redeclare MongoDB\Examples\toJSON() (previously declared in /var/www/html/vendor/mongodb/mongodb/examples/command_logger.php:22)
      #0 /vendor/mongodb/mongodb/examples/with_transaction.php(19): null
       
      and this

      Symfony\Component\ErrorHandler\Error\FatalError: Cannot redeclare MongoDB\Examples\toJSON() (previously declared in /var/www/html/vendor/mongodb/mongodb/examples/command_logger.php:22)

            Assignee:
            andreas.braun@mongodb.com Andreas Braun
            Reporter:
            andrew@mk-dir.com Andrew Schwartz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: