zendframework / zend-httphandlerrunner Goto Github PK
View Code? Open in Web Editor NEWExecute PSR-15 RequestHandlerInterface instances and emit responses they generate.
License: BSD 3-Clause "New" or "Revised" License
Execute PSR-15 RequestHandlerInterface instances and emit responses they generate.
License: BSD 3-Clause "New" or "Revised" License
Hi, in my framework, ofter need output someting with ob content, like a image captcha, then I get this error
`
Uncaught Zend\HttpHandlerRunner\Exception\EmitterException: Output has been emitted previously; cannot emit response
`
so I 'm curious, why do I have to perform a $this->assertNoPreviousOutput(); check?
composer require zendframework/zend-httphandlerrunner
[InvalidArgumentException]
Package zendframework/zend-httphandlerrunner at version has a PHP requirement incompatible with your PHP version (5.6.40)
I'm not be able to include this package in my project (server is PHP 7.2). I execute "composer require zendframework/zend-httphandlerunner" and here's the error output:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for zendframework/zend-httphandlerrunner ^1.1 -> satisfiable by zendframework/zend-httphandlerrunner[1.1.0].
- zendframework/zend-httphandlerrunner 1.1.0 requires psr/http-message-implementation ^1.0 -> no matching package found.
I noticed the HTTP status code gets applied with every individual header()
call:
But headers get emitted before the status line:
And the status line gets emitted last, with the status code:
Any reason why it isn't enough to just apply the status code last with emitStatusLine()
?
Note that this isn't an issue with the code, merely a bit of a comprehension difficulty.
I'm sure it isn't harmful to apply the status code repeatedly - but unless it's meaningful, it's probably confusing more than it is helpful to a person reading the code?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.