Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <?php // Simultaneous HTTP requests, prevent browser cache ?>
- <?php for ($i = 0; $i < 5 * 20; ++$i): ?>
- <link rel="stylesheet" href="test1.php?<?php echo md5(openssl_random_pseudo_bytes(10)); ?>" />
- <?php endfor; ?>
- </head>
- <body>Test1</body>
- </html>
- <?php
- // Test data
- class DUMMY implements \Serializable, \IteratorAggregate, \Countable, \ArrayAccess {
- public function serialize() {}
- public function unserialize($serialized) {}
- public function getIterator() {}
- public function offsetExists($offset) {}
- public function offsetGet($offset) {}
- public function offsetSet($offset, $value) {}
- public function offsetUnset($offset) {}
- public function count() {}
- }
- // Provoke error
- $cls = new \ReflectionClass('\DUMMY');
- foreach ($cls->getInterfaceNames() as $interfaceName)
- {
- class_implements($interfaceName); // Failure here
- }
- flush();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement