pear:faq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pear:faq [2010/08/17 02:34]
clockwerx
pear:faq [2017/09/22 13:28] (current)
Line 1: Line 1:
 ====== FAQ ====== ====== FAQ ======
 .. and other mailing list answers. .. and other mailing list answers.
 +
 +This page is meant to be a quick and easy scratchpad of good answers and ideas - candidates to be polished and migrated into the proper FAQs.
 +
 +===== Where'​s the proper FAQs? ======
 +  * [[http://​pear.php.net/​manual/​en/​faq.users.php|Users]]
 +  * [[http://​pear.php.net/​manual/​en/​faq.devs.php|Developers]]
 +
 +===== How do I become a PEAR developer? =====
 +http://​pear.php.net/​manual/​en/​developers-newmaint.php
  
 =====  Non-PEAR, PHP package deployment through official PEAR channel? ===== =====  Non-PEAR, PHP package deployment through official PEAR channel? =====
Line 25: Line 34:
 Fixing a unit test / E_DEPRECATED problem: Let's take for example, [[pear:​package:​Net_DNS]] - http://​pear.php.net/​package/​Net_DNS/​ Fixing a unit test / E_DEPRECATED problem: Let's take for example, [[pear:​package:​Net_DNS]] - http://​pear.php.net/​package/​Net_DNS/​
  
-<​code>​+<​code ​bash>
 # Check the open bugs to see if there is one already # Check the open bugs to see if there is one already
 # http://​pear.php.net/​package/​Net_DNS/​ # http://​pear.php.net/​package/​Net_DNS/​
Line 57: Line 66:
  
 The first - the constructor of Net_DNS_RR_TXT has: The first - the constructor of Net_DNS_RR_TXT has:
-<​code>​+<​code ​php>
             ereg('​("​[^"​]*"​|[^ \t]*)[ \t]*$',​ $data, $regs);             ereg('​("​[^"​]*"​|[^ \t]*)[ \t]*$',​ $data, $regs);
 </​code>​ </​code>​
  
 It's probably best to start with a unit test that shows the error up: It's probably best to start with a unit test that shows the error up:
-<​code>​+<​code ​php>
     function Net_DNS_RR_TXT(&​$rro,​ $data, $offset = ''​) {     function Net_DNS_RR_TXT(&​$rro,​ $data, $offset = ''​) {
        ... snip ...        ... snip ...
Line 83: Line 92:
  
 Would be something like: Would be something like:
-<​code>​+<​code ​php>
 class Net_DNS_RR_TXTTest extends PHPUnit_Framework_TestCase { class Net_DNS_RR_TXTTest extends PHPUnit_Framework_TestCase {
  
Line 94: Line 103:
 </​code>​ </​code>​
 Run it to check it fails: Run it to check it fails:
-<​code>​+<​code ​bash>
 $ php tests/​AllTests.php $ php tests/​AllTests.php
 </​code>​ </​code>​
Line 103: Line 112:
  
 Make yourself a universal diff: Make yourself a universal diff:
-<​code>​$ svn diff > myPatch.txt</​code>​+<​code ​bash>$ svn diff > myPatch.txt</​code>​
  
 ... and upload it to a bug report / pastebin. ... and upload it to a bug report / pastebin.
 +
 +===== How do I edit this freakin'​ wiki? =====
 +Login with your SVN credentials.
 +
  
pear/faq.1282012445.txt.gz · Last modified: 2017/09/22 13:28 (external edit)