Skip to content

Instantly share code, notes, and snippets.

View Tyrael's full-sized avatar

Ferenc Kovacs Tyrael

View GitHub Profile
@Tyrael
Tyrael / gist:973681
Created May 15, 2011 23:34
php src tests
Index: ext/standard/tests/file/bug39863.phpt
===================================================================
--- ext/standard/tests/file/bug39863.phpt (revision 311062)
+++ ext/standard/tests/file/bug39863.phpt (working copy)
@@ -14,11 +14,6 @@
echo "PASS\n";
}
?>
-===DONE===
<?php exit(0); ?>
@Tyrael
Tyrael / gist:934020
Created April 21, 2011 09:00
random bash stuff
ps auxfw|egrep -i "apache|httpd"|egrep -iv "root|grep"|head -1|cut -f1 -d
# how to apply multiple patches, suhosin patches for example:
for patchfile in `find ./php-5.3.4/ -type f -print`;do
filename=${patchfile/php-5.3.4/php-5.3.6};
filename=${filename//\.diff};
patch $filename $patchfile;
done;
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>[windows|wiki].php.net is down for maintenance</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, Sans-Serif;
font-size: 85%;
margin: 0;
padding: 0;
tyrael@thor:~/checkouts$ nslookup -type=NS php.net
Server: 109.74.194.20
Address: 109.74.194.20#53
Non-authoritative answer:
php.net nameserver = remote2.easydns.com.
php.net nameserver = ns2.easydns.com.
php.net nameserver = remote1.easydns.com.
php.net nameserver = ns1.easydns.com.