Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ All notable changes to `php-vips` will be documented in this file.
- better ffi startup diagnostics [ping-localhost]
- add setBlock() and setBlockUntrusted() to control operation blocking [jcupitt]
- remove debug logging from hot paths [guillaume-sainthillier]
- add psalm taint hints [danog]

## 2.6.1 - 2025-12-10

Expand Down
6 changes: 6 additions & 0 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,8 @@ private function callEnum(
* @param string $filename The file to test.
*
* @return string|null The name of the load operation, or null.
*
* @psalm-taint-sink file $filename
*/
public static function findLoad(string $filename): ?string
{
Expand All @@ -711,6 +713,8 @@ public static function findLoad(string $filename): ?string
* @throws Exception
*
* @return Image A new Image.
*
* @psalm-taint-sink file $name
*/
public static function newFromFile(
string $name,
Expand Down Expand Up @@ -955,6 +959,8 @@ public static function newFromSource(Source $source, string $string_options = ''
* @throws Exception
*
* @return void
*
* @psalm-taint-sink file $name
*/
public function writeToFile(string $name, array $options = []): void
{
Expand Down
2 changes: 2 additions & 0 deletions src/Source.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ public static function newFromDescriptor(int $descriptor): self
*
* You can pass this source to (for example) @see Image::newFromSource()
* @throws Exception
*
* @psalm-taint-sink file $filename
*/
public static function newFromFile(string $filename): self
{
Expand Down
2 changes: 2 additions & 0 deletions src/Target.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public static function newToDescriptor(int $descriptor): self
*
* You can pass this target to (for example) @see Image::writeToTarget()
* @throws Exception
*
* @psalm-taint-sink file $filename
*/
public static function newToFile(string $filename): self
{
Expand Down