]> granicus.if.org Git - php/commitdiff
Merge branch 'PHP-7.0'
authorAnatol Belski <ab@php.net>
Fri, 29 Jan 2016 20:07:19 +0000 (21:07 +0100)
committerAnatol Belski <ab@php.net>
Fri, 29 Jan 2016 20:07:19 +0000 (21:07 +0100)
* PHP-7.0:
  Revert "refix #69111 and one related test"
  Revert "fix yet another leak"
  add XFAIL
  Revert "refix #69111 and one related test"
  Revert "fix tests"
  Revert "fix leak in 7.0"
  add XFAIL
  Revert "fix leak in 5.6"

Conflicts:
ext/session/tests/rfc1867_sid_invalid.phpt

1  2 
ext/session/tests/bug69111.phpt

index f5def0ed35957ec496b72c1cb2176c047d8dbaf6,70f3a1921e40013337186c5997394b4ef9915529..4b65c026ed8f485e7c44ba7d4f2ec4675d22662e
@@@ -1,10 -1,8 +1,12 @@@
  --TEST--
 -Bug #69111 Crash in SessionHandler::read()
 +Bug #69111 (Crash in SessionHandler::read())
 +--INI--
 +session.save_path=
 +session.save_handler=files
 +session.name=PHPSESSID
  --SKIPIF--
+ --XFAIL--
+ It is still a leak
  <?php include('skipif.inc'); ?>
  --FILE--
  <?php
@@@ -18,19 -16,8 +20,19 @@@ $sessionName = ini_get('session.name')
  
  $sh->open($savePath, $sessionName);
  $sh->write("foo", "bar");
 -var_dump($sh->read(@$id));
 +$sh->read($id);
 +$sh->gc(1245);
 +$sh->close();
  ?>
  --EXPECTF--
 -Warning: SessionHandler::read(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in %sbug69111.php on line %d
 -bool(false)
 +Warning: SessionHandler::open(): Session is not active in %s on line 10
 +
 +Warning: SessionHandler::write(): Session is not active in %s on line 11
 +
 +Notice: Undefined variable: id in %s on line 12
 +
 +Warning: SessionHandler::read(): Session is not active in %s on line 12
 +
 +Warning: SessionHandler::gc(): Session is not active in %s on line 13
 +
- Warning: SessionHandler::close(): Session is not active in %s on line 14
++Warning: SessionHandler::close(): Session is not active in %s on line 14