# i guess it is a bug of sorts, but how to report it

- Thread: https://externals.io/message/63242
- Original archive: https://news-web.php.net/php.internals/63242
- Started by Michael Felt on 2012-09-28T20:01:02+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #63242 — Michael Felt — 2012-09-28T20:01:02+00:00

URL: https://externals.io/message/63242#63242

At the start of 'make test' I get a strange bin/sh error that I think keeps
the result from being saved in a file.

I answer 's' for save at the end, but no file is saved (that I can find).

I editted Makefile, so that the "test" command is echoed and get this...
(hoping it is useful to someone!)

Build complete.
Don't forget to run 'make test'.

if test ! -z "/data/prj/php/php-5.3.17/sapi/cli/php" && test -x
"/data/prj/php/php-5.3.17/sapi/cli/php"; then \
                INI_FILE=`/data/prj/php/php-5.3.17/sapi/cli/php -d
'display_errors=stderr' -r 'echo `php_ini_loaded_file()`;' 2> /dev/null`; \
                if test "$INI_FILE"; then \
                        grep -E -h -v
'^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
]*=' "$INI_FILE" > /data/prj/php/php-5.3.17/tmp-php.ini; \
                else \
                        echo > /data/prj/php/php-5.3.17/tmp-php.ini; \
                fi; \
                INI_SCANNED_PATH=`/data/prj/php/php-5.3.17/sapi/cli/php -d
'display_errors=stderr' -r '$a = explode(",\n",
trim(php_ini_scanned_files())); echo $a[0];' 2> /dev/null`; \
                if test "$INI_SCANNED_PATH"; then \

INI_SCANNED_PATH=`/data/prj/php/php-5.3.17/build/shtool path -d
$INI_SCANNED_PATH`; \
                        grep -E -h -v
'^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
]*=' "$INI_SCANNED_PATH"/*.ini >> /data/prj/php/php-5.3.17/tmp-php.ini; \
                fi; \
                TEST_PHP_EXECUTABLE=/data/prj/php/php-5.3.17/sapi/cli/php \
                TEST_PHP_SRCDIR=/data/prj/php/php-5.3.17 \
                CC="xlc_r" \
                        /data/prj/php/php-5.3.17/sapi/cli/php -n -c
/data/prj/php/php-5.3.17/tmp-php.ini -d 'open_basedir=' -d
'output_buffering=0' -d 'memory_limit=-1'
/data/prj/php/php-5.3.17/run-tests.php -n -c
/data/prj/php/php-5.3.17/tmp-php.ini -d extension_dir=/d
ata/prj/php/php-5.3.17/modules/ ` if test
"x/data/prj/php/php-5.3.17/modules/bcmath.so
/data/prj/php/php-5.3.17/modules/curl.so
/data/prj/php/php-5.3.17/modules/dba.so
/data/prj/php/php-5.3.17/modules/ftp.so
/data/prj/php/php-5.3.17/modules/zip.so" != "x"; then for i in
 /data/prj/php/php-5.3.17/modules/bcmath.so
/data/prj/php/php-5.3.17/modules/curl.so
/data/prj/php/php-5.3.17/modules/dba.so
/data/prj/php/php-5.3.17/modules/ftp.so
/data/prj/php/php-5.3.17/modules/zip.so""; do . $i;
/data/prj/php/php-5.3.17/build/shtool echo -n -- " -d
 extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do .
$i; /data/prj/php/php-5.3.17/build/shtool echo -n -- " -d
zend_extension=/data/prj/php/php-5.3.17/modules/$dlname"; done; fi` ; \
                rm /data/prj/php/php-5.3.17/tmp-php.ini; \
        else \
                echo "ERROR: Cannot run tests without CLI sapi."; \
        fi
/bin/sh[13]: 0403-057 Syntax error at line 20 : `(' is not expected.


=====================================================================
PHP         : /data/prj/php/php-5.3.17/sapi/cli/php
 `PHP_SAPI`    : cli
 `PHP_VERSION` : 5.3.17
ZEND_VERSION: 2.3.0
 `PHP_OS`      : AIX - AIX x104 1 6 00C39B8D4C00
INI actual  : /data/prj/php/php-5.3.17/tmp-php.ini
More .INIs  :
CWD         : /data/prj/php/php-5.3.17
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2012-09-28 19:04:24
=====================================================================
TEST 1/9306 [tests/run-test/test001.phpt]^MPASS EXPECT
[tests/run-test/test001.phpt]
TEST 2/9306 [tests/run-test/test002.phpt]^MPASS EXPECTF
[tests/run-test/test002.phpt]
TEST 3/9306 [tests/run-test/test003.phpt]^MPASS EXPECTREGEX
[tests/run-test/test003.phpt]

And the tests complete.

p.s. I copied/pasted the summary to the qa mail address.

---

## #63245 — Pierre Joye — 2012-09-29T18:08:12+00:00

URL: https://externals.io/message/63242#63245 · In reply to: #63242

hi Michael,

Please open a bug at bugs.php.net with all the details (linux version, etc.).


> At the start of 'make test' I get a strange bin/sh error that I think keeps
> the result from being saved in a file.
>
> I answer 's' for save at the end, but no file is saved (that I can find).
>
> I editted Makefile, so that the "test" command is echoed and get this...
> (hoping it is useful to someone!)
>
> Build complete.
> Don't forget to run 'make test'.
>
> if test ! -z "/data/prj/php/php-5.3.17/sapi/cli/php" && test -x
> "/data/prj/php/php-5.3.17/sapi/cli/php"; then \
>                 INI_FILE=`/data/prj/php/php-5.3.17/sapi/cli/php -d
> 'display_errors=stderr' -r 'echo `php_ini_loaded_file()`;' 2> /dev/null`; \
>                 if test "$INI_FILE"; then \
>                         grep -E -h -v
> '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
> ]*=' "$INI_FILE" > /data/prj/php/php-5.3.17/tmp-php.ini; \
>                 else \
>                         echo > /data/prj/php/php-5.3.17/tmp-php.ini; \
>                 fi; \
>                 INI_SCANNED_PATH=`/data/prj/php/php-5.3.17/sapi/cli/php -d
> 'display_errors=stderr' -r '$a = explode(",\n",
> trim(php_ini_scanned_files())); echo $a[0];' 2> /dev/null`; \
>                 if test "$INI_SCANNED_PATH"; then \
>
> INI_SCANNED_PATH=`/data/prj/php/php-5.3.17/build/shtool path -d
> $INI_SCANNED_PATH`; \
>                         grep -E -h -v
> '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
> ]*=' "$INI_SCANNED_PATH"/*.ini >> /data/prj/php/php-5.3.17/tmp-php.ini; \
>                 fi; \
>                 TEST_PHP_EXECUTABLE=/data/prj/php/php-5.3.17/sapi/cli/php \
>                 TEST_PHP_SRCDIR=/data/prj/php/php-5.3.17 \
>                 CC="xlc_r" \
>                         /data/prj/php/php-5.3.17/sapi/cli/php -n -c
> /data/prj/php/php-5.3.17/tmp-php.ini -d 'open_basedir=' -d
> 'output_buffering=0' -d 'memory_limit=-1'
> /data/prj/php/php-5.3.17/run-tests.php -n -c
> /data/prj/php/php-5.3.17/tmp-php.ini -d extension_dir=/d
> ata/prj/php/php-5.3.17/modules/ ` if test
> "x/data/prj/php/php-5.3.17/modules/bcmath.so
> /data/prj/php/php-5.3.17/modules/curl.so
> /data/prj/php/php-5.3.17/modules/dba.so
> /data/prj/php/php-5.3.17/modules/ftp.so
> /data/prj/php/php-5.3.17/modules/zip.so" != "x"; then for i in
>  /data/prj/php/php-5.3.17/modules/bcmath.so
> /data/prj/php/php-5.3.17/modules/curl.so
> /data/prj/php/php-5.3.17/modules/dba.so
> /data/prj/php/php-5.3.17/modules/ftp.so
> /data/prj/php/php-5.3.17/modules/zip.so""; do . $i;
> /data/prj/php/php-5.3.17/build/shtool echo -n -- " -d
>  extension=$dlname"; done; fi; if test "x" != "x"; then for i in ""; do .
> $i; /data/prj/php/php-5.3.17/build/shtool echo -n -- " -d
> zend_extension=/data/prj/php/php-5.3.17/modules/$dlname"; done; fi` ; \
>                 rm /data/prj/php/php-5.3.17/tmp-php.ini; \
>         else \
>                 echo "ERROR: Cannot run tests without CLI sapi."; \
>         fi
> /bin/sh[13]: 0403-057 Syntax error at line 20 : `(' is not expected.
>
>
> =====================================================================
> PHP         : /data/prj/php/php-5.3.17/sapi/cli/php
> `PHP_SAPI`    : cli
> `PHP_VERSION` : 5.3.17
> ZEND_VERSION: 2.3.0
> `PHP_OS`      : AIX - AIX x104 1 6 00C39B8D4C00
> INI actual  : /data/prj/php/php-5.3.17/tmp-php.ini
> More .INIs  :
> CWD         : /data/prj/php/php-5.3.17
> Extra dirs  :
> VALGRIND    : Not used
> =====================================================================
> TIME START 2012-09-28 19:04:24
> =====================================================================
> TEST 1/9306 [tests/run-test/test001.phpt]^MPASS EXPECT
> [tests/run-test/test001.phpt]
> TEST 2/9306 [tests/run-test/test002.phpt]^MPASS EXPECTF
> [tests/run-test/test002.phpt]
> TEST 3/9306 [tests/run-test/test003.phpt]^MPASS EXPECTREGEX
> [tests/run-test/test003.phpt]
>
> And the tests complete.
>
> p.s. I copied/pasted the summary to the qa mail address.



-- 
Pierre

@pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #63246 — Michael Felt — 2012-09-29T18:57:20+00:00

URL: https://externals.io/message/63242#63246 · In reply to: #63245

Done: https://bugs.php.net/bug.php?id=63187



> hi Michael,
>
> Please open a bug at bugs.php.net with all the details (linux version,
> etc.).
>
> 
> > […]
> keeps
> > […]
> '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
> > […]
> -d
> > […]
> '^(define_syslog_variables|register_(globals|long_arrays)?|safe_mode|magic_quotes_(gpc|runtime|sybase)?|(zend_)?extension(_debug)?(_ts)?)[\t\
> > […]
> TEST_PHP_EXECUTABLE=/data/prj/php/php-5.3.17/sapi/cli/php \
> > […]
>
>
>
> --
> Pierre
>
> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org

---

## #63263 — Michael Felt — 2012-10-05T11:48:32+00:00

URL: https://externals.io/message/63242#63263 · In reply to: #63246

Seems to be fixed/not occuring in 5.3.18RC1 - make test submitted saved
successfully.

This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.  You can then email it to qa-reports@lists.php.netlater.
Do you want to send this report now? [Yns]: s
Please send /data/prj/php/php-5.3.18RC1/php_test_results_20121005_1110.txt
to qa-reports@lists.php.net manually, thank you.




> Done: https://bugs.php.net/bug.php?id=63187
>
> 
>
> > […]
