Skip to content

Commit 7386f8e

Browse files
author
Nikita Siniachenko
committed
small settings
1 parent 0648c09 commit 7386f8e

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

builtin-functions/kphp-light/stdlib/string-functions.txt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ function pack ($pattern ::: string, ...$args) ::: string;
130130

131131
function unpack ($pattern ::: string, $data ::: string) ::: mixed[] | false;
132132

133+
function getimagesize ($name ::: string) ::: mixed;
134+
133135
/**
134136
* @kphp-pure-function
135137
*/
@@ -148,7 +150,3 @@ function zstd_uncompress(string $data) ::: string | false;
148150
function zstd_compress_dict(string $data, string $dict) ::: string | false;
149151
/** @kphp-extern-func-info stub generation-required */
150152
function zstd_uncompress_dict(string $data, string $dict) ::: string | false;
151-
152-
/** @kphp-extern-func-info stub generation-required */
153-
function getimagesize ($name ::: string) ::: mixed;
154-

runtime-light/stdlib/file/file-system-functions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ inline mixed f$getimagesize(const string& name) {
325325
// TODO implement k2_fstat, with fd as parameter !!!
326326
struct stat stat_buf;
327327
int32_t res = k2_stat(name.c_str(), name.size(), &stat_buf);
328-
if (res != k2::errno_einval) {
328+
if (res != k2::errno_ok) {
329329
return false;
330330
}
331331

tests/phpt/dl/476_getimagesize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@ok benchmark k2_skip
1+
@ok benchmark
22
<?php
33
var_dump (php_uname());
44
var_dump (php_uname('s'));

0 commit comments

Comments
 (0)