php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #32746 PHP command line option doesn't have verbose/debug output.
Submitted: 2005-04-18 17:50 UTC Modified: 2010-12-22 15:07 UTC
Votes:3
Avg. Score:4.3 ± 0.5
Reproduced:3 of 3 (100.0%)
Same Version:1 (33.3%)
Same OS:3 (100.0%)
From: scott at abcoa dot com Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.10 OS: AIX or any Unix(s)/Linux(s)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: scott at abcoa dot com
New email:
PHP Version: OS:

 

 [2005-04-18 17:50 UTC] 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-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--


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 03:38 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 03:38 UTC] johannes@php.net
Use a proper debugger like Xdebug.
 [2010-12-22 15:07 UTC] scott at abcoa dot com
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.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Aug 15 13:00:02 2025 UTC