Code Monkey home page Code Monkey logo

php_syntax_checker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

php_syntax_checker's Issues

Only works if php is installed on the machine

This plugin run the php interpreter and by this will make this work only if php is installed on the machine.
I am using a container to run php.
Saving make it pops a window /bin/sh php not found
Maybe a note in the documentation?

Big Sur upgrade, package no longer functional

After the Big Sur upgrade, the package is no longer functional, getting the following error when saving any file:
dyld: Library not loaded: /usr/lib/libpq.5.dylib
Referenced from: /usr/local/bin/php
Reason: image not found

Screen Shot 2020-12-04 at 2 53 53 PM

If I remove the package, i no longer get this error

'php' is not recognized as an internal or external command, operable program or batch file.

I get this error message whenever I save a php file with the php_syntax_checker package installed.

'php' is not recognized as an internal or external command, operable program or batch file.

(SublimeText2 on Windows7)

Edit: My guess is that this is because I don't have PHP installed on my local machine?

Edit2: I've installed PHP Via XAMPP but continue to get the same error, even after successfully running local php files in my browser

php 7 syntax not working

My code
empty($salary) === false ?? false;

Error message wen i save the file.
PHP Parse error: syntax error, unexpected '?'

Can you kindly fix this

Use syntax rather than file extension for detecting PHP files?

Perhaps it would be possible to use the file's syntax rather than the extension to detect PHP files (or a combination)? To get the file's syntax, use view.settings().get('syntax') - for PHP the standard syntax file is 'Packages/PHP/PHP.tmLanguage'. This way it's easier to use the plugin with PHP syntaxed files that have a different extension!

/bin/sh: php command not found error

Recently, I had some students install this package and many of them are getting this error on save.

/bin/sh: php command not found

Since this package hasn't been updated (because it likely doesn't have any reason to be) in three years, I can only guess that it has something to do with a change in Sublime / or more likely - a change with the most recent MacOS Mojave and/or MAMP.

So, it's not able to find PHP. That's likely because the new OS doesn't ship with PHP. So, it looks like if people run into this, they'll need to install PHP. https://formulae.brew.sh/formula/php

But - here's this little story for when many people inevitably end up here. : )

HTTP Error 400 with package control installation

Installing from package control I get in console:

Package Control: Error downloading package. HTTP error 400 downloading https://codeload.github.com/naomichi-y/php_syntax_checker/zipball/v1.0.0.
error: Package Control

Not exactly sure what's causing it other than possibly the github url scheme as various other packages result in the same error.

Not working in windows

I have tested in windows 7 and sublime text 2. I can install this package successfully, but showing some inappropriate message when i save the script
.
sublime-php_syntex_highlighter

Doesn't use the homebrew installed php

Thanks for your great job.
I have an issue~~~

PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pdo_pgsql.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pgsql.so' - dlopen(/Applications/Server.app/Contents/ServerRoot/usr/lib/php/extensions/no-debug-non-zts-20121212/pgsql.so, 9): image not found in Unknown on line 0

it uses the built-in php.

which php => /usr/local/opt/php55/bin/php
whereis php => /usr/bin/php

When I type /usr/bin/php -v, it shows the warning above.

Hope update the package form subl3.

Not working

Hi,
this package is simply not working for me. It does nothing. Can I see an error output somewhere to get information what is wrong?
I'm using sublime 3 on MacOS X 10.13.4

Thanks for the help

Error with ; on While params

// ERROR
while ($i = 0; $i <= 1000; $i++) {
	// stuf
}


// ACCEPT
$i = 0;
while($i <= 1000) {
	// stuf
	$i++;
}

This is aponted as error... Why?

Mac OSX Compatibility

PHP Syntax Checker seems to be not working in SublimeText 2.0.1 x64 and Mac OS Lion 10.8.3

php is not recognized

git

This error pops up while saving the php file in Sublime editor after the php_systax_checker

Issue about checking file containing space characters

(Sorry for my English.)

I've found that PHP Syntax Checker doesn't display any error message when I save file to directory containing space characters (e.g. D:\foo bar\app.php)

My workaround is to edit the phpSyntaxChecker.py @ line 10
from this
command_line = self.EXECUTE_COMMAND + " " + file_path

to this
command_line = self.EXECUTE_COMMAND + " \"" + file_path + "\""

and it works.

(my env)
PHP Syntax Checker Version: 2015.04.17.10.02.28
Sublime Text Version: 2.0.2
OS: Windows 7

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.