(this actually happens with the cocoa driver!)tags/v0.99.beta17
@@ -16,6 +16,9 @@ | |||||
* http://sam.zoy.org/wtfpl/COPYING for more details. | * http://sam.zoy.org/wtfpl/COPYING for more details. | ||||
*/ | */ | ||||
if (php_sapi_name() != "cli") { | |||||
die("You have to run this program with php-cli!\n"); | |||||
} | |||||
$pig_str = <<<EOT | $pig_str = <<<EOT | ||||
@@ -17,6 +17,10 @@ | |||||
* http://sam.zoy.org/wtfpl/COPYING for more details. | * http://sam.zoy.org/wtfpl/COPYING for more details. | ||||
*/ | */ | ||||
if (php_sapi_name() != "cli") { | |||||
die("You have to run this program with php-cli!\n"); | |||||
} | |||||
$cv = caca_create_canvas(80, 24); | $cv = caca_create_canvas(80, 24); | ||||
if(!$cv) | if(!$cv) | ||||
{ | { | ||||
@@ -18,6 +18,10 @@ | |||||
* http://sam.zoy.org/wtfpl/COPYING for more details. | * http://sam.zoy.org/wtfpl/COPYING for more details. | ||||
*/ | */ | ||||
if (php_sapi_name() != "cli") { | |||||
die("You have to run this program with php-cli!\n"); | |||||
} | |||||
define('CACA', "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊"); | define('CACA', "쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊쫊"); | ||||
$cv = caca_create_canvas(0, 0); | $cv = caca_create_canvas(0, 0); | ||||
@@ -1,6 +1,10 @@ | |||||
#!/usr/bin/php5 | #!/usr/bin/php5 | ||||
<? | <? | ||||
if (php_sapi_name() != "cli") { | |||||
die("You have to run this program with php-cli!\n"); | |||||
} | |||||
$pig_str = <<<EOT | $pig_str = <<<EOT | ||||
_._ _..._ .-', _.._(`)) | _._ _..._ .-', _.._(`)) | ||||
@@ -18,6 +18,10 @@ | |||||
* http://sam.zoy.org/wtfpl/COPYING for more details. | * http://sam.zoy.org/wtfpl/COPYING for more details. | ||||
*/ | */ | ||||
if (php_sapi_name() != "cli") { | |||||
die("You have to run this program with php-cli!\n"); | |||||
} | |||||
$cv = caca_create_canvas(32, 16); | $cv = caca_create_canvas(32, 16); | ||||
if(!$cv) { | if(!$cv) { | ||||
die("Failed to create canvas\n"); | die("Failed to create canvas\n"); | ||||