#32746 [NEW]: PHP command line option doesn't have verbose/debug output.
| From: | scott at abcoa dot com | Date: | Mon, 18 Apr 2005 15:50:39 +0000 |
| Subject: | #32746 [NEW]: PHP command line option doesn't have verbose/debug output. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-77798@lists.php.net to get a copy of this message | ||
From: scott at abcoa dot com
Operating system: AIX or any Unix(s)/Linux(s)
PHP version: 4.3.10
PHP Bug Type: Unknown/Other Function
Bug description: PHP command line option doesn't have verbose/debug output.
Description:
------------
This is a request for enhancement for the command line option. I
couldn't find an earlier bug report via bug search, so forgive me if this
is a duplicate or something. As I looked up at
http://us2.php.net/features.commandline and it
doesn't have the option for
debugging or verbose output via the shell environment.
With most shell environment for bash, ksh, etc., I can do the -x or maybe
-d option to see the output via the O/S and I/O so I can see what is goign
on behind hte scene when I have problem with why am I not getting response.
A line by line trace is useful also...
Yes, I can do with exec() or system() but I had cURL compiled with PHP and
other stuffs, so it get more complicated than it look. Thanks...
Reproduce code:
---------------
#!/usr/local/bin/php
<?php
//blah blah blah codes...
?>
Expected result:
----------------
Something like this or close enough, whatever make it possible for us to
read the O/S output or I/O output...
--snip--
-=[/usr/local/bin]==>sh -x ./inquiry_pull_test.sh
+ 0< l
+ =
./inquiry_pull_test.sh[3]: =: not found.
+ Testing Inquiry Send...
* About to connect() to ec.equifax.com:443
* Connected to ec.equifax.com ((nil)) port 443
* SSL connection using RC4-MD5
* Server certificate:
* subject: /C=US/ST=Georgia/L=Alpharetta/O=Equifax
Inc/CN=ec.equifax.com
* start date: 2004-07-01 02:57:28 GMT
* expire date: 2005-07-01 02:57:28 GMT
* common name: ec.equifax.com (matched)
* issuer: /C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting
cc/OU=Certification Services Division/CN=Thawte Server
CA/Email=server-certs@thawte.com
> POST /servlet/stspost HTTP/1.1
Authorization: Basic blah blah
OpenSSL/0.9.6g
Host: ec.equifax.com
Pragma: no-cache
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
Content-Length: 396
Content-Type: application/x-www-form-urlencoded
site_id=00000&service_name=test&efx_request=DIAL blah blah
--snip--
--
Edit bug report at http://bugs.php.net/?id=32746&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32746&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32746&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32746&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32746&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32746&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32746&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32746&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32746&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32746&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32746&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=32746&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=32746&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32746&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32746&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32746&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32746&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32746&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32746&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32746&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32746&r=mysqlcfg