-
Notifications
You must be signed in to change notification settings - Fork 209
Closed
Description
Hey all,
Alright, I give in. I've been trying to figure this out for the past 72 hours with no luck.
When I updated to MacOS High Sierra, I get ERR_EMPTY_RESPONSE
in Chrome when I have PHP code with a database operation.
<?php
// Works just fine
$collection = $mongo->collectionname;
// Does not work
$foo = $collection->find(); // Causes seg fault and ERR_EMPTY_RESPONSE in Chrome
$bar = $collection->insert(["foo" => "bar"]); // Same as above
?>
As far as I can tell, I can't perform any CRUD action...
The only thing I get in Apache error log is:
[Wed Sep 27 14:51:36.208861 2017] [core:notice] [pid 26589] AH00052: child pid 26590 exit signal Segmentation fault (11)
If I comment out the MongoDB PHP code, the page loads just like it should. I have no clue what happened, everything was working fine.
For what it's worth, I also get a warning of PHP trying to load the MongoDB driver if I run php -v
in Terminal.
I also have the MongoDB Library from Composer.
Setup
- MacOS High Sierra (10.13)
- Built in Apache 2.4
- Built in PHP 7.1.7
$ php -v
PHP Warning: Module 'mongodb' already loaded in Unknown on line 0
PHP 7.1.7 (cli) (built: Jul 15 2017 18:08:09) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
- Latest MongoDB Driver Version 1.3 installed from
$ brew install php71-mongodb --without-homebrew-php
(I have also tried it manually, and by usingpecl
)
$ php -i | grep -E 'mongodb|libmongoc|libbson'
PHP Warning: Module 'mongodb' already loaded in Unknown on line 0
Additional .ini files parsed => /etc/phpini.d/ext-mongodb.ini
mongodb
libbson bundled version => 1.8.0
libmongoc bundled version => 1.8.0
libmongoc SSL => enabled
libmongoc SSL library => OpenSSL
libmongoc crypto => enabled
libmongoc crypto library => libcrypto
libmongoc crypto system profile => disabled
libmongoc SASL => enabled
mongodb.debug => no value => no value
Any help is greatly appreciated, I'm stumped.
Thanks!
Metadata
Metadata
Assignees
Labels
No labels