Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F626293
mongoc_log_error-002.phpt
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
579 B
Referenced Files
None
Subscribers
None
mongoc_log_error-002.phpt
View Options
--TEST--
MongoDB\Driver\Monitoring\mongoc_log(): Domain contains null bytes
--FILE--
<?php
require_once __DIR__ . "/../utils/basic.inc";
use MongoDB\Driver\Monitoring\LogSubscriber;
use function MongoDB\Driver\Monitoring\mongoc_log;
echo throws(function() {
mongoc_log(LogSubscriber::LEVEL_ERROR, "domain\0", 'message');
}, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n";
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
OK: Got MongoDB\Driver\Exception\InvalidArgumentException
Domain cannot contain null bytes. Unexpected null byte after "domain".
===DONE===
File Metadata
Details
Attached
Mime Type
application/javascript
Expires
Sun, Nov 15, 12:33 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
141352
Default Alt Text
mongoc_log_error-002.phpt (579 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline