---
title: "laminas/laminas-diactoros 3.0.0 Breaking Changes"
description: "What each laminas/laminas-diactoros release removed, renamed or changed: 88 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/laminas/laminas-diactoros
last_updated: 2026-12-04
---

# laminas/laminas-diactoros breaking changes

laminas/laminas-diactoros 3.0.0 (May 4, 2023) is its newest release with breaking changes, 88 of them. The first: GD image support removed from the Stream implementation in laminas/laminas-diactoros 3.0.0. Every breaking API change we have recorded in laminas/laminas-diactoros on Packagist: 88 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.10.1`, released December 4, 2026. BSD-3-Clause license. [Source repository](https://github.com/laminas/laminas-diactoros)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

## laminas/laminas-diactoros 3.0.0 breaking changes

laminas/laminas-diactoros 3.0.0, released May 4, 2023: 88 breaking changes.

- **Removed**  

The Stream implementation no longer supports GD images. Code that passes GD image resources to streams must change. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Removed**  

The legacy helper functions in the Zend namespace have been dropped. Code that calls them must use the current equivalents. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Removed** `Laminas\Diactoros\marshalUriFromSapi`  

Laminas\\Diactoros\\marshalUriFromSapi was removed in laminas/laminas-diactoros 3.0.0 [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Laminas\Diactoros\PhpInputStream`  

Laminas\\Diactoros\\PhpInputStream was removed in laminas/laminas-diactoros 3.0.0 [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `marshalUriFromSapi`  

The marshalUriFromSapi function has been removed. Code that calls it must be updated. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Removed** `PhpInputStream`  

The PhpInputStream class has been removed. Code that uses it must stop depending on it. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Removed** `Zend\Diactoros\createUploadedFile`  

Use Laminas\\Diactoros\\createUploadedFile instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\marshalHeadersFromSapi`  

Use Laminas\\Diactoros\\marshalHeadersFromSapi instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\marshalMethodFromSapi`  

Use Laminas\\Diactoros\\marshalMethodFromSapi instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\marshalProtocolVersionFromSapi`  

Use Laminas\\Diactoros\\marshalProtocolVersionFromSapi instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\marshalUriFromSapi`  

Use Laminas\\Diactoros\\marshalUriFromSapi instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\normalizeServer`  

Use Laminas\\Diactoros\\normalizeServer instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\normalizeUploadedFiles`  

Use Laminas\\Diactoros\\normalizeUploadedFiles instead. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Removed** `Zend\Diactoros\parseCookieHeader`  

Zend\\Diactoros\\parseCookieHeader was removed in laminas/laminas-diactoros 3.0.0 [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Behavior changed**  

Integer header names are now filtered out during SAPI discovery, so code relying on them may behave differently. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Behavior changed** `ServerRequestFactory.fromGlobals`  

ServerRequestFactory::fromGlobals() now checks whether its arguments are truthy rather than set, so falsy values passed explicitly are treated differently. [github.com](https://github.com/laminas/laminas-diactoros/releases/tag/3.0.0)
- **Signature changed** `Laminas\Diactoros\CallbackStream::getMetadata`  

Was public function getMetadata($key = null); now public function getMetadata(?string $key = null). [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\CallbackStream::read`  

Was public function read($length): string; now public function read(int $length): string. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\CallbackStream::seek`  

Was public function seek($offset, $whence = SEEK_SET); now public function seek(int $offset, int $whence = SEEK_SET): void. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\CallbackStream::write`  

Was public function write($string): void; now public function write(string $string): int. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::getHeader`  

Was public function getHeader($header): array; now public function getHeader(string $header): array. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::getHeaderLine`  

Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::hasHeader`  

Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::withAddedHeader`  

Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::withHeader`  

Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::withoutHeader`  

Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\MessageTrait::withProtocolVersion`  

Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RelativeStream::getMetadata`  

Was public function getMetadata($key = null); now public function getMetadata(?string $key = null). [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RelativeStream::read`  

Was public function read($length): string; now public function read(int $length): string. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RelativeStream::seek`  

Was public function seek($offset, $whence = SEEK_SET): void; now public function seek(int $offset, int $whence = SEEK_SET): void. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RelativeStream::write`  

Was public function write($string): int; now public function write(string $string): int. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::getHeader`  

Was public function getHeader($name): array; now public function getHeader(string $name): array. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::getHeaderLine`  

Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::hasHeader`  

Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withAddedHeader`  

Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withHeader`  

Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withMethod`  

Was public function withMethod($method): RequestInterface; now public function withMethod(string $method): RequestInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withoutHeader`  

Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withProtocolVersion`  

Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withRequestTarget`  

Was public function withRequestTarget($requestTarget): RequestInterface; now public function withRequestTarget(string $requestTarget): RequestInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\Request::withUri`  

Was public function withUri(UriInterface $uri, $preserveHost = false): RequestInterface; now public function withUri(UriInterface $uri, bool $preserveHost = false): RequestInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::getHeader`  

Was public function getHeader($header): array; now public function getHeader(string $header): array. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::getHeaderLine`  

Was public function getHeaderLine($name): string; now public function getHeaderLine(string $name): string. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::hasHeader`  

Was public function hasHeader($header): bool; now public function hasHeader(string $header): bool. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withAddedHeader`  

Was public function withAddedHeader($name, $value): MessageInterface; now public function withAddedHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withHeader`  

Was public function withHeader($name, $value): MessageInterface; now public function withHeader(string $name, $value): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withMethod`  

Was public function withMethod($method): RequestInterface; now public function withMethod(string $method): RequestInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withoutHeader`  

Was public function withoutHeader($name): MessageInterface; now public function withoutHeader(string $name): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withProtocolVersion`  

Was public function withProtocolVersion($version): MessageInterface; now public function withProtocolVersion(string $version): MessageInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)
- **Signature changed** `Laminas\Diactoros\RequestTrait::withRequestTarget`  

Was public function withRequestTarget($requestTarget): RequestInterface; now public function withRequestTarget(string $requestTarget): RequestInterface. [packagist.org](https://packagist.org/packages/laminas/laminas-diactoros#3.0.0)

And 38 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Related packages

- [laminas/laminas-servicemanager](https://since.dev/packages/packagist/laminas/laminas-servicemanager.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
