Skip to content

Commit 68e3dca

Browse files
committed
fixed typo
1 parent 37045d7 commit 68e3dca

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

filebin.c

+2-5
Original file line numberDiff line numberDiff line change
@@ -178,14 +178,11 @@ PHP_FUNCTION(filebin) {
178178
flags |= getenv("POSIXLY_CORRECT") ? MAGIC_SYMLINK : 0;
179179
#endif
180180

181-
if (
182-
zend_parse_parameters (
183-
chkargs, "S|zS", &path, &zflag, &mpath) == FAILURE
184-
)
181+
if ( zend_parse_parameters ( chkargs, "S|zS", &path, &zflag, &mpath) == FAILURE )
185182
return;
186183

187184
if ( ZSTR_LEN (path) == 0 ) {
188-
php_error (E_WARNING, "Must need filename for checking.");
185+
php_error (E_WARNING, "The value of 1st argument was empty.");
189186
RETURN_NULL ();
190187
}
191188

manage.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,17 @@ case "${mode}" in
7373
;;
7474
test)
7575
if [[ -f tests/${3}.php ]]; then
76-
/usr/bin/php${2} -d "extension_dir=./modules/" -d "extension=korean.so" tests/${3}.php
76+
/usr/bin/php${2} -d "extension_dir=./modules/" -d "extension=filebin.so" tests/${3}.php
7777
exit $?
7878
elif [[ -f ${3} ]]; then
79-
/usr/bin/php${2} -d "extension_dir=./modules/" -d "extension=korean.so" ${3}
79+
/usr/bin/php${2} -d "extension_dir=./modules/" -d "extension=filebin.so" ${3}
8080
exit $?
8181
fi
8282

8383
if [[ -z $3 ]]; then
8484
./manage.sh clean
8585
echo "phpize${2} ./configure"
86-
phpize${2} && ./configure --with-libdir=lib64 && make -j8 || exit 0
86+
phpize${2} && ./configure && make -j8 || exit 0
8787
fi
8888
echo "make test PHP_EXECUTABLE=/usr/bin/php${2}"
8989
make test PHP_EXECUTABLE=/usr/bin/php${2} <<< n
@@ -99,7 +99,7 @@ case "${mode}" in
9999
exit 1
100100
fi
101101
phpcmd="/usr/bin/php80"
102-
perl -pi -e 's/ext_functions/korean_functions/g' build/gen_stub.php
102+
perl -pi -e 's/ext_functions/filebin_functions/g' build/gen_stub.php
103103
${phpcmd} build/gen_stub.php -f *.stub.php
104104
;;
105105
*)

0 commit comments

Comments
 (0)