HARRISBURG - The state Senate on Wednesday voted to override Gov. Rendell's veto of a school-code bill that he contended gave unfair tax breaks to certain charter-school landlords.

In doing so, the Senate joined the House in overriding Rendell for the first time in the nearly eight years he has been governor. Rendell's second and last term ends in January.

He vetoed the bill - which includes numerous education initiatives - last month because of a provision to exempt from property taxes nonprofit foundations that rent their properties to charter schools.

In his veto message, Rendell said he believed it was unconstitutional to give the tax break to such nonprofit foundations because some, in his view, did not fit the definition of a purely public charity under a 1997 state law.

He said he also was concerned that for-profit landlords would take advantage of the law by converting to nonprofit status to get the tax break.

Rendell's veto infuriated many legislators, who believed he was ignoring a long list of good initiatives for a single item that he considered bad.

The House voted to override the bill on Monday. Both the House and Senate votes required a two-thirds majority.

On Tuesday, before the Senate override, Rendell reiterated his concerns with the bill and said that if the Senate returned for a vote, it would be breaking its promise not to take action on official legislative business in a lame-duck session.

"They will be breaking the promise they made to Pennsylvania's taxpayers," Rendell said.

But if senators did return for an override vote, Rendell added, they should also make good on another promise they made to taxpayers and reach an agreement on taxing the extraction of natural gas from the Marcellus Shale.

On the floor of the Senate Wednesday, Senate Majority Leader Dominic Pileggi (R., Delaware) said he did not believe the Senate was reneging on its promise.

He argued that the Senate had already voted on the school-code bill and would simply be reaffirming that vote. There was no vote on the Marcellus Shale tax.

"A vote to override the governor's veto is different in substance than a vote on new legislation," Pileggi said. "I believe the citizens of Pennsylvania understand the difference."

With the Senate's action Wednesday, the education bill will become law.

A provision in the bill requires instruction in public schools aimed at preventing date violence; another requires the state Education Department's Office of Safe Schools to direct all schools to submit school-violence reports by July 31 each year.

As for the charter-school provision, it appears that a relatively small group of charters would benefit immediately from the legislation.

This school year, there are 135 charter schools in Pennsylvania; 12 are so-called cyber charters that educate children at home using computers to provide instruction.

In 2008-09, the last year for which figures were available, 72 charter schools rented or leased some or all of their buildings from for-profit or nonprofit concerns.

Of those, at least 18 charters, 15 of them in the Philadelphia area, were renting from nonprofits that could be eligible for the tax break.

Most of those nonprofits do not pay tax on the properties they rent to charters.

But starting in late 2007, the Chester County Tax Assessment Office notified several charter-school nonprofits and a cyber charter nonprofit that school buildings they owned or rented were taxable.

A series of appeals followed, with Commonwealth Court ruling in favor of the county in two cases. The School Lane Charter School in Bucks County was also taxed.