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 @@ -6,6 +6,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]

## 2.6.1 - 2025-12-10

Expand Down
1 change: 0 additions & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
*/
class Config
{

/**
* The logger instance.
*/
Expand Down
1 change: 0 additions & 1 deletion src/FFI.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
*/
class FFI
{

/**
* The FFI handle we use for the glib binary.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Introspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,14 @@ public function __construct($operation_name)
!($flags & ArgumentFlags::DEPRECATED)) {
$this->required_output[] = $name;
}

# we let deprecated optional args through, but warn about them
# if they get used, see below
if (($flags & ArgumentFlags::INPUT) &&
!($flags & ArgumentFlags::REQUIRED)) {
$this->optional_input[] = $name;
}

if (($flags & ArgumentFlags::OUTPUT) &&
!($flags & ArgumentFlags::REQUIRED)) {
$this->optional_output[] = $name;
Expand Down
4 changes: 0 additions & 4 deletions src/VipsObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ public function get(string $name)
g_object_get_property($this->gObject, $name, $gvalue->pointer);
$value = $gvalue->get();

Utils::debugLog("get", [$name => var_export($value, true)]);

return $value;
}

Expand All @@ -172,8 +170,6 @@ public function get(string $name)
*/
public function set(string $name, $value): void
{
Utils::debugLog("set", [$name => $value]);

$name = str_replace("-", "_", $name);
$gvalue = new GValue();
$gvalue->setType($this->getType($name));
Expand Down
9 changes: 0 additions & 9 deletions src/VipsOperation.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,6 @@ public static function callBase(
?Image $instance,
array $arguments
) {
Utils::debugLog($operation_name, [
'instance' => $instance,
'arguments' => $arguments
]);

$operation = self::newFromName($operation_name);
$operation->introspect = self::introspect($operation_name);
$introspect = $operation->introspect;
Expand Down Expand Up @@ -339,10 +334,6 @@ public static function callBase(

$result = self::wrapResult($result);

Utils::debugLog($operation_name, [
'result' => var_export($result, true)
]);

return $result;
}

Expand Down
Loading