Comments (10)
Same issue with Forms test suite
-- FAILED: Nette\Forms HTTP data. | tests/Forms/Forms.submittedBy.phpt
Exited with error code 255 (expected 0)
E_DEPRECATED: The each() function is deprecated. This message will be suppressed on further calls
from http.
Is there file name and line where error is occured?
from http.
Full output
-- FAILED: /dev/shm/BUILD/security-8a3051f9b16d4d7bfa18b6b0ff6f9f6f418f9801/tests/Security.DI/SecurityExtension.user.phpt
Exited with error code 255 (expected 0)
E_DEPRECATED: The each() function is deprecated. This message will be suppressed on further calls
in Nette/Http/RequestFactory.php(114)
in Nette/Http/RequestFactory.php(114) each()
in tests/Security.DI/SecurityExtension.user.phpt(22) : eval()'d code(63) Nette\Http\RequestFactory->createHttpRequest()
in Nette/DI/Container.php(178) Container->createServiceFoo__request()
in Nette/DI/Container.php(104) Nette\DI\Container->createService()
in tests/Security.DI/SecurityExtension.user.phpt(22) : eval()'d code(42) Nette\DI\Container->getService()
in Nette/DI/Container.php(178) Container->createServiceBar__session()
in Nette/DI/Container.php(104) Nette\DI\Container->createService()
in tests/Security.DI/SecurityExtension.user.phpt(22) : eval()'d code(92) Nette\DI\Container->getService()
in Nette/DI/Container.php(178) Container->createServiceSecurity__userStorage()
in Nette/DI/Container.php(104) Nette\DI\Container->createService()
in tests/Security.DI/SecurityExtension.user.phpt(25) Nette\DI\Container->getService()
from http.
AFAICS, each is only used in Nette/Http/RequestFactory.php (grep in all the framework)
from http.
There should be @ operator to silent notice.
from http.
@dg There is, but only in 2.4-dev, there is no stable version with this fix yet.
from http.
silent operator = the rope to hang yourself.
- while (list($key, $val) = each($list)) {
+ foreach ($list as $key => $val) {
from http.
@remicollet See commit message of 4667ae0
foreach ($arr as &$el) fails in PHP 5.6 with single-item array
from http.
How it is possible that tests do not pass when there is a silent operator?
If you use your own error handler, you need to modify it as follows https://github.com/nette/code-checker/blob/master/src/bootstrap.php#L24-L26
from http.
fixed 4667ae0
from http.
Related Issues (20)
- Force close HTTP request/response HOT 12
- Unable to extend UrlScript HOT 2
- Creating array property in SessionSection has no effect HOT 1
- Feature request: fight against Google FLoC
- IRequest::setCookie does mot match Request::setCookie HOT 1
- UrlImmutable should implement static get() method HOT 5
- Session id handler HOT 4
- Allow hostname in http > proxy
- Allow disabling same-site cookie
- Invalid session configuration option 'readAndClose'
- Notices are ignored on session_start() HOT 4
- SessionSection::setExpiration checks session's expiration, but session may not be started yet -> warning HOT 2
- IRequest::getFile does mot match Request::getFile
- If website has nginx restricted access by `auth_basic_user_file` $httpRequest->getUrl()->getAbsoluteUrl() returns path with auth parameters included HOT 1
- Call request->getRemoteHost() can cause to stuck app HOT 2
- Unfortunate crossover of `HTTP_HOST` and `SERVER_PORT` variables HOT 3
- Htmlspecialchars for this? HOT 1
- Unable to set 'session.gc_maxlifetime'
- Error: Call to undefined function Nette\Http\imagetypes() HOT 5
- setCookie() expire type issue HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http.