I'm using PHP 7.2.0alpha2 where below command doesn't work, but it works in PHP 7.0.20.
And I've the following warnings when installing Drupal from scratch by drush quick-drupal, e.g.
$ drush qd
Project drupal (8.3.6) downloaded to drupal8/quick-drupal-20170812152339/drupal. [success]
Project drupal contains: [success]
- 1 profile: standard
- 14 themes: stark, stable, seven, twig, classy, bartik, testing_multilingual_with_english,
testing_multilingual, testing_missing_dependencies, testing_config_overrides, testing_config_import,
drupal_system_listing_compatible_test, testing, minimal
- 73 modules: workflows, views_ui, views, user, update, tracker, tour, toolbar, text, telephone,
taxonomy, system, syslog, statistics, simpletest, shortcut, serialization, search, rest,
responsive_image, rdf, quickedit, path, page_cache, outside_in, options, node, migrate_drupal_ui,
migrate_drupal, migrate, menu_ui, menu_link_content, locale, link, layout_discovery, language,
inline_form_errors, image, history, help, hal, forum, filter, file, field_ui, field_layout, field,
entity_reference, editor, dynamic_page_cache, dblog, datetime_range, datetime, contextual,
content_translation, content_moderation, contact, config_translation, config, comment, color, ckeditor,
breakpoint, book, block_place, block_content, block, big_pipe, basic_auth, ban, automated_cron,
aggregator, action
You are about to create a drupal8/quick-drupal-20170812152339/drupal/sites/default/settings.php file and CREATE the 'sites/default/files/quick-drupal-20170812152339.sqlite' database. Do you want to continue? (y/n): y
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:971
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:972
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:973
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:976
ini_set(): Headers already sent. You cannot change the session module's ini settings at this time [warning]
DrupalKernel.php:978
PHP Deprecated: assert(): Calling assert() with a string argument is deprecated in drupal8/quick-drupal-20170812152339/drupal/core/lib/Drupal/Core/Plugin/DefaultPluginManager.php on line 151
Code:
// Use session cookies, not transparent sessions that puts the session id in
// the query string.
ini_set('session.use_cookies', '1');
ini_set('session.use_only_cookies', '1');
ini_set('session.use_trans_sid', '0');
// Don't send HTTP headers using PHP's session handler.
// Send an empty string to disable the cache limiter.
ini_set('session.cache_limiter', '');
// Use httponly session cookies.
ini_set('session.cookie_httponly', '1');