Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Parse error: syntax error, unexpected T_STRING #99

Closed
n01ukn0w opened this issue Apr 1, 2016 · 6 comments
Closed

Error: Parse error: syntax error, unexpected T_STRING #99

n01ukn0w opened this issue Apr 1, 2016 · 6 comments
Assignees

Comments

@n01ukn0w
Copy link

n01ukn0w commented Apr 1, 2016

I am getting the following error:

Parse error: syntax error, unexpected T_STRING in /path/to/unirest-php/src/Unirest/Exception.php on line 3

I swapped out my real path for /path/to/.

PHP Version 5.4.45

Thanks.

@ahmadnassri ahmadnassri self-assigned this Apr 1, 2016
@n01ukn0w
Copy link
Author

n01ukn0w commented Apr 2, 2016

Any ideas?

@ahmadnassri
Copy link
Contributor

will look into it today.

@ahmadnassri
Copy link
Contributor

@n01ukn0w I can't seem to be able to replicate ... can you give me the code / steps to re-create this issue?

@n01ukn0w
Copy link
Author

n01ukn0w commented Apr 6, 2016

<?php

/**
 * @author 
 * @copyright 2016
 */
?>
<html>
 <head>
  <title>PHP Test</title>
 </head>
 <body>
 <?php echo '<p>Unirest Test</p>';?>

 <?php

if (is_file('/home/XXXXX/unirest-php/src/Unirest.php'))
    {
            require_once('/home/XXXXXX/unirest-php/src/Unirest.php');
            echo '<p>Found /home/XXXXXX/unirest-php/src/Unirest.php</p>';
    }
    Else {

    echo '<p>Not working</p>';
    }

?> 
 </body>
</html>

@n01ukn0w
Copy link
Author

n01ukn0w commented Apr 9, 2016

Status update?

@hutchic
Copy link
Contributor

hutchic commented Apr 10, 2016

php 5.4 is no longer supported http://php.net/eol.php

The following worked fine for me in PHP 5.5 through to PHP 7

@hutchic hutchic closed this as completed Apr 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants