Edit report at http://bugs.php.net/bug.php?id=32746&edit=1

 ID:                 32746
 User updated by:    scott at abcoa dot com
 Reported by:        scott at abcoa dot com
 Summary:            PHP command line option doesn't have verbose/debug
                     output.
 Status:             Bogus
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   AIX or any Unix(s)/Linux(s)
 PHP Version:        4.3.10
 Block user comment: N
 Private report:     N

 New Comment:

No, that's not how it works...   If you have Bash shell environment or
Korn shell environment, you typed the "-v" option and you get the
verbose output.  PHP doesn't do that which is the point here.


Previous Comments:
------------------------------------------------------------------------
[2010-12-22 03:38:20] johan...@php.net

Use a proper debugger like Xdebug.

------------------------------------------------------------------------
[2005-04-18 17:50:38] scott at abcoa dot com

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-ce...@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 this bug report at http://bugs.php.net/bug.php?id=32746&edit=1

Reply via email to