PHP 7 News & Updates v7.0 - 7.4 by Adam Omelak & Igor Pochyly

PHP 7 News & Updates v7.0 - 7.4 by Adam Omelak & Igor Pochyly

Author:Adam Omelak & Igor Pochyly [Omelak, Adam]
Language: eng
Format: azw3
Published: 2018-09-30T16:00:00+00:00


echo session_id()."\n";

$_SESSION['test'] = 1;

echo "stop session\n";

session_write_close();

fastcgi_finish_request();

session_start();

$_SESSION['test'] = 2;

session_write_close();

$status = session_start();

// $start will now produce the TRUE result

#75781. substr_count() display incorrect results for big string objects, larger than 4GB as a result.

$size = 9*1024*1024*1024;

$buf = str_repeat(chr(0),$size);

for( $i=0; $i < $size; $i++ ) {

if( $i % 3 == 0 ) {

$buf{$i}=chr(255);

}

}

$cnt=substr_count($buf,chr(255));

var_dump($cnt);



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.