Skip to content

the at sign (@) session_regenerate_id #10583

@gangbo

Description

@gangbo
  • php7.0.2
  • yii2.0.6

yii2/web/Session.php

public function regenerateID($deleteOldSession = false)
{
    // add @ to inhibit possible warning due to race condition
    // https://github.com/yiisoft/yii2/pull/1812
    @session_regenerate_id($deleteOldSession);
}

I know this is a php7's bug https://bugs.php.net/bug.php?id=71187 .
But when I use yii2 debug, there is no any error messages expect http 500.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions